/* Magazine layout: airy header and footer, calm article reading, story cards, chips and bands. */

/* ---------- Header and footer ---------- */

.cihc-theme .site-header .site-header-row-container-inner {
	border-bottom: 1px solid var(--cihc-line);
	background: var(--cihc-white);
}

.cihc-theme .main-navigation .primary-menu-container > ul > li.menu-item > a,
.cihc-theme .header-navigation .header-menu-container > ul > li.menu-item > a {
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	background-image: linear-gradient(var(--cihc-gold), var(--cihc-gold));
	background-repeat: no-repeat;
	background-position: 50% calc(100% - 0.55em);
	background-size: 0 1px;
	transition: background-size 0.35s var(--cihc-ease), color 0.2s ease;
}

.cihc-theme .main-navigation .primary-menu-container > ul > li.menu-item > a:hover,
.cihc-theme .main-navigation .primary-menu-container > ul > li.current-menu-item > a,
.cihc-theme .header-navigation .header-menu-container > ul > li.menu-item > a:hover {
	color: var(--cihc-blue);
	background-size: 60% 1px;
}

.cihc-theme .site-footer {
	border-top: 1px solid var(--cihc-line);
	background: var(--cihc-paper);
	font-size: 0.875rem;
	color: var(--cihc-muted);
}

/* ---------- Articles ---------- */

.cihc-theme.single-post .entry-header {
	max-width: 820px;
	margin-right: auto;
	margin-left: auto;
	text-align: center;
}

.cihc-theme.single-post .entry-title {
	margin-bottom: 0.5em;
}

.cihc-theme.single-post .entry-meta,
.cihc-theme .loop-entry .entry-meta {
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--cihc-muted);
}

.cihc-theme.single-post .entry-taxonomies a,
.cihc-theme .loop-entry .entry-taxonomies a {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--cihc-gold);
}

.cihc-theme.single-post .entry-content > *:not(.alignwide):not(.alignfull):not(.cihc-scope) {
	max-width: 720px;
	margin-right: auto;
	margin-left: auto;
}

.cihc-theme.single-post .post-thumbnail img {
	width: 100%;
	height: auto;
}

/* ---------- Kadence listings, quieter ---------- */

.cihc-theme .loop-entry {
	border: 0;
	background: transparent;
	box-shadow: none;
}

.cihc-theme .loop-entry .entry-content-wrap {
	padding: 1.4rem 0 1rem;
}

.cihc-theme .loop-entry .entry-title {
	font-size: clamp(1.25rem, 2vw, 1.55rem);
	line-height: 1.3;
}

.cihc-theme .loop-entry .post-thumbnail-inner {
	overflow: hidden;
}

.cihc-theme .loop-entry .post-thumbnail-inner img {
	transition: transform 0.9s var(--cihc-ease);
}

.cihc-theme .loop-entry:hover .post-thumbnail-inner img {
	transform: scale(1.04);
}

.cihc-theme .archive-title {
	text-align: center;
}

/* ---------- Shared components ---------- */

.cihc-page-head {
	max-width: 860px;
	margin: clamp(32px, 6vw, 72px) auto clamp(28px, 4vw, 48px);
}

.cihc-page-head--center {
	text-align: center;
}

.cihc-page-title {
	margin: 0.3em 0 0.4em;
}

.cihc-page-head .cihc-lead {
	margin: 0 auto;
	max-width: 62ch;
}

.cihc-viewing {
	margin-top: 1.2em;
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cihc-blue);
}

.cihc-section-title {
	margin: 0;
	font-family: var(--cihc-serif);
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	font-weight: 600;
	color: var(--cihc-ink);
}

.cihc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cihc-chips li {
	margin: 0;
	list-style: none;
}

.cihc-chip {
	display: inline-block;
	padding: 7px 15px;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1.3;
	text-decoration: none;
	text-transform: uppercase;
	color: var(--cihc-text);
	border: 1px solid var(--cihc-line);
	transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.cihc-chip:hover {
	color: var(--cihc-blue);
	border-color: var(--cihc-gold);
}

.cihc-chip.is-active {
	color: #ffffff;
	background: var(--cihc-blue);
	border-color: var(--cihc-blue);
}

.cihc-chips--small .cihc-chip {
	padding: 5px 12px;
	font-size: 0.68rem;
}

.cihc-catnav {
	margin: clamp(24px, 4vw, 44px) 0;
	padding: 18px 0;
	border-top: 1px solid var(--cihc-line);
	border-bottom: 1px solid var(--cihc-line);
}

/* Buttons and links. */
.cihc-button {
	display: inline-block;
	padding: 15px 34px;
	font-family: var(--cihc-sans);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	color: #ffffff;
	background: var(--cihc-blue);
	border: 1px solid var(--cihc-blue);
	border-radius: 0;
	box-shadow: inset 0 -3px 0 var(--cihc-gold);
	cursor: pointer;
	transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.cihc-button:hover,
.cihc-button:focus-visible {
	color: #ffffff;
	background: var(--cihc-ink);
	border-color: var(--cihc-ink);
}

.cihc-button:focus-visible,
.cihc-textlink:focus-visible,
.cihc-chip:focus-visible {
	outline: 2px solid var(--cihc-gold);
	outline-offset: 3px;
}

.cihc-button--light {
	color: var(--cihc-blue);
	background: #ffffff;
	border-color: #ffffff;
}

.cihc-button--light:hover {
	color: #ffffff;
	background: var(--cihc-gold);
	border-color: var(--cihc-gold);
}

.cihc-button--ghost {
	color: #ffffff;
	background: transparent;
	border-color: rgba(255, 255, 255, 0.6);
	box-shadow: none;
}

.cihc-button--ghost:hover {
	color: var(--cihc-blue);
	background: #ffffff;
	border-color: #ffffff;
}

.cihc-textlink,
.cihc-textlink:visited {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-decoration: none;
	text-transform: uppercase;
	color: var(--cihc-blue);
	border-bottom: 1px solid var(--cihc-gold);
	padding-bottom: 3px;
}

.cihc-textlink:hover {
	color: var(--cihc-ink);
}

.cihc-link-button {
	padding: 0;
	font-size: 0.8rem;
	text-decoration: underline;
	color: var(--cihc-blue);
	background: none;
	border: 0;
	cursor: pointer;
}

/* ---------- Front page: hero, story cards, sections, band ---------- */

.cihc-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: var(--cihc-gap);
	margin-top: clamp(24px, 4vw, 48px);
}

.cihc-hero__side {
	display: grid;
	gap: var(--cihc-gap);
	align-content: start;
}

.cihc-story {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
}

.cihc-story__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	background: var(--cihc-soft);
}

.cihc-story--lead .cihc-story__media {
	aspect-ratio: 16 / 10;
}

.cihc-story__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s var(--cihc-ease);
}

.cihc-story:hover .cihc-story__media img {
	transform: scale(1.04);
}

.cihc-story__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(160deg, var(--cihc-paper), var(--cihc-gold-soft));
}

.cihc-story__title {
	margin: 6px 0 8px;
	font-family: var(--cihc-serif);
	font-size: clamp(1.2rem, 2vw, 1.5rem);
	font-weight: 600;
	line-height: 1.3;
}

.cihc-story--lead .cihc-story__title {
	font-size: clamp(1.7rem, 3.4vw, 2.5rem);
	line-height: 1.2;
}

.cihc-story__title a {
	text-decoration: none;
	color: var(--cihc-ink);
	background-image: linear-gradient(var(--cihc-gold), var(--cihc-gold));
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 1px;
	transition: background-size 0.4s var(--cihc-ease), color 0.2s ease;
}

.cihc-story__title a:hover {
	color: var(--cihc-blue);
	background-size: 100% 1px;
}

.cihc-story__excerpt {
	margin: 0 0 10px;
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--cihc-muted);
}

.cihc-story__meta {
	margin: 0;
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #8b8d99;
}

.cihc-storygrid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(28px, 4vw, 52px) var(--cihc-gap);
}

.cihc-section {
	margin: clamp(48px, 8vw, 96px) 0;
}

.cihc-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: clamp(24px, 3vw, 36px);
	padding-bottom: 16px;
	border-bottom: 1px solid var(--cihc-line);
}

.cihc-section__head .cihc-kicker {
	flex: 0 0 100%;
}

/* Full-width tinted sections that still sit inside Kadence's container. */
.cihc-section--soft,
.cihc-band {
	box-shadow: 0 0 0 100vmax var(--cihc-soft);
	clip-path: inset(0 -100vmax);
	background: var(--cihc-soft);
	padding-top: clamp(40px, 6vw, 72px);
	padding-bottom: clamp(40px, 6vw, 72px);
}

.cihc-band {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	margin: clamp(48px, 8vw, 96px) 0 0;
	color: #ffffff;
	box-shadow: 0 0 0 100vmax var(--cihc-blue);
	background: var(--cihc-blue);
}

.cihc-band > div:first-child {
	flex: 1 1 380px;
	max-width: 640px;
}

.cihc-band__title {
	margin: 0.3em 0 0.4em;
	font-size: clamp(1.6rem, 3.2vw, 2.3rem);
	color: #ffffff;
}

.cihc-band p {
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
}

.cihc-band .cihc-kicker {
	color: var(--cihc-gold-soft);
}

.cihc-band__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.cihc-home__intro {
	max-width: 760px;
	margin: clamp(24px, 4vw, 48px) auto 0;
	text-align: center;
}

/* ---------- Guest contributor note and form pages ---------- */

.cihc-contributor {
	max-width: 720px;
	margin: 3.5rem auto 0;
	padding-top: 1.8rem;
	border-top: 1px solid var(--cihc-line);
}

.cihc-contributor__name {
	margin: 0.3em 0 0.4em;
	font-size: 1.4rem;
}

.cihc-contributor p {
	margin: 0 0 0.8em;
	font-size: 0.95rem;
	color: var(--cihc-muted);
}

.cihc-form-page .cihc-intro {
	max-width: 62ch;
	margin: 0 auto clamp(28px, 4vw, 48px);
	text-align: center;
}

.cihc-pillars {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--cihc-gap);
	max-width: 960px;
	margin: 0 auto clamp(40px, 6vw, 72px);
	padding: 28px 0;
	border-top: 1px solid var(--cihc-line);
	border-bottom: 1px solid var(--cihc-line);
}

.cihc-pillars h2 {
	margin: 0 0 0.4em;
	font-size: 1.15rem;
}

.cihc-pillars p {
	margin: 0;
	font-size: 0.92rem;
	color: var(--cihc-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
	.cihc-hero {
		grid-template-columns: 1fr;
	}

	.cihc-hero__side {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cihc-storygrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.cihc-hero__side,
	.cihc-storygrid,
	.cihc-pillars {
		grid-template-columns: 1fr;
	}

	.cihc-band__actions .cihc-button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cihc-theme * {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
