/* The membership (plan) title, rendered by the theme — Libre Baskerville,
   centered. On briefing/workshop singles the theme headline is swapped to the
   plan title too (headline_is_plan_title), so it gets the same treatment. */
.single-iwai_membership_plan .wp-block-post-title,
.single-iwai_membership_plan .entry-title,
.single-iwai_member_content .wp-block-post-title,
.single-iwai_member_content .entry-title {
	font-family: 'Libre Baskerville', Georgia, serif;
	text-align: center;
	color: #08365b;
	margin-bottom: 7px;
}

/* A briefing/workshop's own title, moved below the tabs. Rendered as an <h2>
   (the plan title is the page <h1>) but sized like a page headline. */
.iwai-content-title {
	margin: 0 0 10px;
	font-size: clamp(30px, 4.5vw, 42px);
	font-weight: 700;
	line-height: 1.15;
	color: var(--iwai-text, #111);
}

/* Byline under the title — author (briefings only) + publish date. */
.iwai-content-byline {
	margin: 0 0 18px;
	font-size: 14px;
	color: #687380;
}
.iwai-content-author { font-weight: 600; }
.iwai-content-byline-sep { margin: 0 2px; opacity: 0.7; }

/* Special title treatment (hard-coded plans): yellow marker highlight on the
   last word + a green sprout, matching the marketing page. Applies on plan
   singles and on briefing/workshop singles (headline swapped to the plan). */
.single-iwai_membership_plan .iwai-hl,
.single-iwai_member_content .iwai-hl {
	background-image: linear-gradient(transparent 55%, rgba(255, 204, 1, 0.55) 55%);
	padding: 0 0.1em;
}
.single-iwai_membership_plan .iwai-title-sprout,
.single-iwai_member_content .iwai-title-sprout {
	display: inline-block;
	margin-left: 0.2em;
	color: #1f7a4d;
	vertical-align: -0.2em;
}
.single-iwai_membership_plan .iwai-title-sprout svg,
.single-iwai_member_content .iwai-title-sprout svg {
	width: 1.15em;
	height: 1.15em;
}

/* Wide outer container — the tabs + carousel span this; the body column below
   stays narrow (see .iwai-membership-body). */
.iwai-membership {
	max-width: 1440px;
	margin: 0 auto;
}

/* Feed posts, archives, and single pages stay in a comfortable reading column. */
.iwai-membership-body {
	max-width: 680px;
	margin: 0 auto;
}

.iwai-membership-nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center; /* center the tabs — reads well at every page width */
	column-gap: 8px;
	row-gap: 14px; /* breathing room so the count badge doesn't crowd a wrapped row */
	list-style: none;
	margin: 0 0 1.5em;
	padding: 0;
}

/* Outlined "chip" tabs — the outline gives the count badge an edge to overlap. */
.iwai-membership-nav li a {
	position: relative;
	display: inline-block;
	padding: 8px 16px;
	text-decoration: none;
	color: #50575e;
	border: 1px solid var(--iwai-border, #dce3ea);
	border-radius: 8px;
}

.iwai-membership-nav li a:hover {
	background: #f6f8fa;
}

.iwai-membership-nav li.is-active a {
	color: var(--iwai-navy, #00538c);
	border-color: var(--iwai-navy, #00538c);
	background: rgba(0, 83, 140, 0.06);
	font-weight: 600;
}

/* Calendar tab leaves the membership for the global calendar — small arrow cue. */
.iwai-membership-nav li.iwai-nav-external a { display: inline-flex; align-items: center; gap: 5px; }
.iwai-membership-nav li.iwai-nav-external .iwai-icon { width: 13px; height: 13px; opacity: 0.65; }

.iwai-membership-gate,
.iwai-membership-welcome {
	padding: 20px;
	background: #f6f7f7;
	border-left: 4px solid #1d2327;
	border-radius: 4px;
}

.iwai-membership-join-btn {
	display: inline-block;
	padding: 12px 24px;
	background: #1d2327;
	color: #fff !important;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
}

/* Editorial content: archive cards + single */

.iwai-content-card {
	padding: 16px 0;
	border-bottom: 1px solid #e0e0e0;
}

.iwai-content-card h3 {
	margin: 0 0 4px;
}

.iwai-membership-summary {
	font-size: 17px;
	color: #50575e;
	margin-bottom: 1em;
}

.iwai-membership-content-body {
	margin-top: 1.25em;
}
