/* wp-content/plugins/ceca-members/assets/pdf-document.css */

/* PDF document block: tinted box, primary Download pill + ghost View pill,
   small meta line; View expands an inline browser PDF viewer beneath.
   Colours come from the child theme's brand tokens (with fallbacks) so a
   palette change there reaches this too. */

.ceca-pdf {
	--ceca-pdf-bg: #f4eef1;
	--ceca-pdf-border: #e6dbe0;
	--ceca-pdf-accent: var(--ceca-plum, #411024);
	--ceca-pdf-muted: #6f6468;

	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 32px 0;
	padding: 24px;
	border: 1px solid var(--ceca-pdf-border);
	border-radius: 8px;
	background: var(--ceca-pdf-bg);
}

.ceca-pdf .ceca-pdf__title {
	margin: 0;
	color: #000;
	font-size: 20px;
	line-height: 26px;
	font-weight: 700;
}

.ceca-pdf .ceca-pdf__lock {
	margin: 0;
	color: var(--ceca-pdf-muted);
	font-size: 16px;
	line-height: 24px;
}

.ceca-pdf__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Explicit states + element-qualified selectors so theme / kit link and
   button globals can't restyle the pills. */
.ceca-pdf a.ceca-pdf__btn,
.ceca-pdf button.ceca-pdf__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 26px;
	border: 1px solid var(--ceca-pdf-accent);
	border-radius: 300px;
	font-family: inherit;
	font-size: 16px;
	line-height: 1;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ceca-pdf a.ceca-pdf__btn--primary,
.ceca-pdf a.ceca-pdf__btn--primary:visited {
	background: var(--ceca-pdf-accent);
	color: #fff;
}

.ceca-pdf a.ceca-pdf__btn--primary:hover,
.ceca-pdf a.ceca-pdf__btn--primary:focus-visible {
	background: #6b2340;
	border-color: #6b2340;
	color: #fff;
}

.ceca-pdf button.ceca-pdf__btn--ghost {
	background: transparent;
	color: var(--ceca-pdf-accent);
}

.ceca-pdf button.ceca-pdf__btn--ghost:hover,
.ceca-pdf button.ceca-pdf__btn--ghost:focus-visible,
.ceca-pdf button.ceca-pdf__btn--ghost[aria-expanded="true"] {
	background: var(--ceca-pdf-accent);
	color: #fff;
}

.ceca-pdf .ceca-pdf__btn:focus-visible {
	outline: 2px solid var(--ceca-pink, #c65a93);
	outline-offset: 2px;
}

.ceca-pdf .ceca-pdf__meta {
	margin: 0;
	color: var(--ceca-pdf-muted);
	font-size: 14px;
	line-height: 20px;
	font-variant-numeric: tabular-nums;
}

.ceca-pdf__viewer iframe {
	display: block;
	width: 100%;
	height: min(85vh, 1000px);
	border: 1px solid var(--ceca-pdf-border);
	border-radius: 4px;
	background: #fff;
}

@media (max-width: 600px) {
	.ceca-pdf {
		padding: 18px;
	}

	.ceca-pdf a.ceca-pdf__btn,
	.ceca-pdf button.ceca-pdf__btn {
		flex: 1 1 100%;
	}

	.ceca-pdf__viewer iframe {
		height: 70vh;
	}
}
