/* RepPages — front end + editor styles */
/* ============================================================
   ACCORDION ITEM
   ============================================================ */

.repacc-item {
	border-top: 1px solid #e0e0e0;
	border-bottom: 1px solid #e0e0e0;
	margin-top: -1px;
}

.repacc-summary {
	list-style: none;
	cursor: pointer;
	padding: 18px 20px;
	background: #f4f4f4;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.repacc-summary::-webkit-details-marker {
	display: none;
}

.repacc-heading {
	display: flex;
	flex-direction: column;
}

.repacc-title {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 15px;
}

.repacc-subtitle {
	display: block;
	font-weight: 400;
	text-transform: none;
	font-size: 13px;
	color: #666;
	margin-top: 2px;
}

.repacc-summary::after {
	content: "\2304";
	font-size: 20px;
	line-height: 1;
	transition: transform 0.2s ease;
	margin-left: 10px;
	flex-shrink: 0;
}

.repacc-item[open] > .repacc-summary::after {
	transform: rotate(180deg);
}

.repacc-panel {
	padding: 20px;
}

.repacc-image {
	max-width: 100%;
	height: auto;
	display: block;
	margin-bottom: 16px;
	border-radius: 4px;
}

.repacc-video {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	overflow: hidden;
	margin-bottom: 16px;
	border-radius: 4px;
}

.repacc-video iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.repacc-body p {
	margin: 0 0 12px;
}

.repacc-body p:last-child {
	margin-bottom: 0;
}

.repacc-body a {
	color: #c8102e;
}

/* ---- Editor-only ---- */

.repacc-editor-wrap {
	margin: 0 0 4px;
}

.repacc-item-editor-preview {
	pointer-events: none; /* let RichText fields handle clicks, not the <details> toggle */
}

.repacc-item-editor-preview .repacc-summary {
	pointer-events: auto;
}

.repacc-title-input,
.repacc-subtitle-input,
.repacc-body-input {
	pointer-events: auto;
	outline: none;
}

.repacc-title-input:empty:before,
.repacc-subtitle-input:empty:before {
	color: #949494;
}

.repacc-editor-image-wrap {
	margin-top: 10px;
}

.repacc-video-editor-note {
	display: inline-block;
	font-size: 12px;
	color: #666;
	background: #f0f0f0;
	padding: 6px 10px;
	border-radius: 4px;
	margin-bottom: 12px;
}

.repacc-editor-image-thumb {
	max-width: 100%;
	height: auto;
	display: block;
	margin-bottom: 6px;
	border-radius: 4px;
}

/* ============================================================
   INFO SECTION
   ============================================================ */

.reppages-info {
	margin: 0 0 32px;
}

.reppages-info__heading {
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #cd1543;
	margin: 0 0 10px;
}

.reppages-info__body {
	font-size: 16px;
	line-height: 1.65;
}

.reppages-info__body p {
	margin: 0 0 12px;
}

.reppages-info__body p:last-child {
	margin-bottom: 0;
}

.reppages-info__body a {
	color: #cd1543;
	text-decoration: underline;
}

.reppages-info__cta {
	display: inline-block;
	margin-top: 14px;
}

/* Editor-only */

.reppages-info-editor-wrap {
	margin: 0 0 4px;
}

.reppages-info__heading-input,
.reppages-info__body-input {
	outline: none;
}

.reppages-info__heading-input:empty:before,
.reppages-info__body-input:empty:before {
	color: #949494;
}

.reppages-info__cta-preview {
	pointer-events: none;
	opacity: 0.85;
}

/* ============================================================
   SPONSOR / PARTNER LOGOS
   ============================================================ */

.reppages-sponsors {
	margin: 0 0 32px;
	text-align: center;
}

.reppages-sponsors__label {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #666;
	margin-bottom: 18px;
}

.reppages-sponsors__grid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 28px;
}

.reppages-sponsors__item {
	display: inline-flex;
	align-items: center;
}

.reppages-sponsors__item img {
	max-height: 64px;
	width: auto;
	display: block;
}

/* Editor-only */

.reppages-sponsors-editor-wrap {
	margin: 0 0 4px;
}

.reppages-sponsors__label-input {
	outline: none;
	margin-bottom: 12px;
}

.reppages-sponsors__label-input:empty:before {
	color: #949494;
}

.reppages-sponsors__editor-rows {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 12px;
}

.reppages-sponsors__editor-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

.reppages-sponsors__editor-thumb {
	max-width: 90px;
	max-height: 60px;
	width: auto;
	height: auto;
	flex-shrink: 0;
}

.reppages-sponsors__editor-placeholder {
	width: 90px;
	height: 60px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f4f4f4;
	color: #949494;
	font-size: 11px;
	text-align: center;
	border-radius: 4px;
}

.reppages-sponsors__editor-row-fields {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.reppages-sponsors__editor-remove {
	flex-shrink: 0;
}

/* ============================================================
   FAQ LIST
   (front-end items reuse the theme's .wp-block-details styling —
   no new front-end CSS needed for the accordion look itself)
   ============================================================ */

.reppages-faq {
	margin: 0 0 32px;
}

.reppages-faq__heading {
	font-size: 1.6rem;
	font-weight: 700;
	margin: 0 0 20px;
}

/* Editor-only */

.reppages-faq-editor-wrap {
	margin: 0 0 4px;
}

.reppages-faq__heading-input {
	outline: none;
	display: block;
	margin-bottom: 14px;
}

.reppages-faq__editor-rows {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 12px;
}

.reppages-faq__editor-row {
	padding: 14px;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

.reppages-faq__editor-row-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.reppages-faq__question-input {
	flex: 1;
	font-weight: 700;
	outline: none;
}

.reppages-faq__question-input:empty:before {
	color: #949494;
	font-weight: 400;
}

.reppages-faq__answer-input {
	outline: none;
}

.reppages-faq__answer-input:empty:before {
	color: #949494;
}

.reppages-faq__editor-remove {
	flex-shrink: 0;
}

/* ============================================================
   FEATURE LIST
   (front-end rows reuse the theme's existing .sub-spotlight /
   .sub-spotlight__item CSS — this only adds the meta line + CTA)
   ============================================================ */

.reppages-feature__meta {
	font-size: 14px;
	font-weight: 700;
	color: #666;
	margin-bottom: 6px;
}

.reppages-feature__cta {
	display: inline-block;
	margin-top: 14px;
}

/* Editor-only */

.reppages-feature-editor-wrap {
	margin: 0 0 4px;
}

.reppages-feature__editor-rows {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 12px;
}

.reppages-feature__editor-row {
	padding: 14px;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

.reppages-feature__editor-row-top {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 10px;
}

.reppages-feature__editor-thumb {
	max-width: 90px;
	max-height: 90px;
	width: auto;
	height: auto;
	flex-shrink: 0;
}

.reppages-feature__editor-placeholder {
	width: 90px;
	height: 60px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f4f4f4;
	color: #949494;
	font-size: 11px;
	text-align: center;
	border-radius: 4px;
}

.reppages-feature__editor-remove {
	flex-shrink: 0;
	margin-left: auto;
}

.reppages-feature__title-input {
	font-weight: 700;
	font-size: 16px;
	outline: none;
	margin-bottom: 4px;
}

.reppages-feature__meta-input,
.reppages-feature__body-input {
	outline: none;
	margin-bottom: 4px;
}

.reppages-feature__title-input:empty:before,
.reppages-feature__meta-input:empty:before,
.reppages-feature__body-input:empty:before {
	color: #949494;
	font-weight: 400;
}

.reppages-feature__editor-cta-row {
	display: flex;
	gap: 12px;
	margin-top: 8px;
}

.reppages-feature__editor-cta-row > * {
	flex: 1;
}

/* Alignment override — center the image vertically against the text
   column instead of the subscription-page default (top-aligned) or the
   previous bottom-aligned override, so a short image doesn't look
   stranded at one edge of a much taller text block.
   Scoped to .reppages-feature (the Feature List block's own wrapper)
   specifically — .sub-spotlight__item is also used unmodified by the
   Subscription page template, which should keep its own alignment. */
.reppages-feature .sub-spotlight__item {
	align-items: center !important;
}

/* ============================================================
   PROMO BANNER
   (front-end reuses the theme's existing .donate-band styling —
   this only adds editor-preview affordances)
   ============================================================ */

.reppages-promo-editor-wrap {
	margin: 0 0 4px;
}

.reppages-promo__heading-input,
.reppages-promo__body-input {
	outline: none;
}

.reppages-promo__cta-preview {
	pointer-events: none;
	opacity: 0.85;
}