/**
 * PTR Document Viewer
 *
 * Colour and type values mirror the site's Elementor global kit
 * (Primary #A12333, Heading #00092C, Text #6E6E6E, Border #DADADA, Rubik).
 */

.ptr-doc {
	--ptr-doc-primary: #a12333;
	--ptr-doc-heading: #00092c;
	--ptr-doc-text: #6e6e6e;
	--ptr-doc-border: #dadada;
	--ptr-doc-surface: #f3f3f3;
	--ptr-doc-height: 820px;

	margin: 2.5rem 0;
	border: 1px solid var(--ptr-doc-border);
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
	font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Header bar ---------- */

.ptr-doc__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	background: var(--ptr-doc-surface);
	border-bottom: 1px solid var(--ptr-doc-border);
}

.ptr-doc__ident {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	min-width: 0;
}

.ptr-doc__icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 4px;
	background: var(--ptr-doc-primary);
	color: #fff;
}

.ptr-doc__icon svg {
	width: 1.25rem;
	height: 1.25rem;
}

.ptr-doc__text {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	min-width: 0;
}

.ptr-doc__title {
	color: var(--ptr-doc-heading);
	font-size: 0.975rem;
	font-weight: 500;
	line-height: 1.35;
}

.ptr-doc__meta {
	color: var(--ptr-doc-text);
	font-size: 0.8125rem;
	letter-spacing: 0.01em;
}

/* ---------- Buttons ---------- */

.ptr-doc__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ptr-doc .ptr-doc__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	border: 1px solid var(--ptr-doc-border);
	border-radius: 4px;
	background: #fff;
	color: var(--ptr-doc-heading);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ptr-doc .ptr-doc__btn svg {
	width: 1rem;
	height: 1rem;
}

.ptr-doc .ptr-doc__btn:hover,
.ptr-doc .ptr-doc__btn:focus-visible {
	border-color: var(--ptr-doc-heading);
	color: var(--ptr-doc-heading);
}

.ptr-doc .ptr-doc__btn--solid {
	border-color: var(--ptr-doc-primary);
	background: var(--ptr-doc-primary);
	color: #fff;
}

.ptr-doc .ptr-doc__btn--solid:hover,
.ptr-doc .ptr-doc__btn--solid:focus-visible {
	border-color: var(--ptr-doc-heading);
	background: var(--ptr-doc-heading);
	color: #fff;
}

.ptr-doc .ptr-doc__btn:focus-visible {
	outline: 2px solid var(--ptr-doc-primary);
	outline-offset: 2px;
}

/* ---------- Reading frame ---------- */

.ptr-doc__frame {
	height: var(--ptr-doc-height);
	max-height: 85vh;
	background: #525659;
}

.ptr-doc__frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---------- Mobile hand-off ---------- */

/*
 * Shown only when the browser will not render the PDF inline. With the PDF.js
 * bundle installed every browser can, so the hand-off stays hidden there.
 */
.ptr-doc__handoff {
	display: none;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.875rem;
	padding: 1.5rem 1.25rem;
}

.ptr-doc__handoff-text {
	margin: 0;
	color: var(--ptr-doc-text);
	font-size: 0.9375rem;
	line-height: 1.5;
}

@media (max-width: 767px) {
	.ptr-doc--native .ptr-doc__frame {
		display: none;
	}

	.ptr-doc--native .ptr-doc__handoff {
		display: flex;
	}

	.ptr-doc--pdfjs {
		--ptr-doc-height: 70vh;
	}

	.ptr-doc__bar {
		align-items: flex-start;
		flex-direction: column;
	}

	.ptr-doc__actions {
		width: 100%;
	}

	.ptr-doc .ptr-doc__btn {
		flex: 1 1 auto;
		justify-content: center;
	}
}

/* ---------- Lead paragraph that introduces a document ---------- */

.ptr-lead {
	margin: 0 0 1.75rem;
	padding-left: 1.125rem;
	border-left: 3px solid #a12333;
	color: #00092c;
	font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.65;
}

.ptr-lead strong {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 1.1875rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

/* ---------------------------------------------------------------------------
 * Archive cards
 *
 * The theme prints each post as a bare <article class="post"> inside
 * .page-content. These rules lay those out as a two-column card grid.
 * ------------------------------------------------------------------------ */

.archive .page-content,
.blog .page-content {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.75rem;
	align-items: stretch;
}

@media (min-width: 768px) {
	.archive .page-content,
	.blog .page-content {
		grid-template-columns: repeat(2, 1fr);
	}
}

.archive .page-content > article.post,
.blog .page-content > article.post {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 2rem;
	border: 1px solid #dadada;
	border-top: 3px solid #a12333;
	border-radius: 6px;
	background: #fff;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.archive .page-content > article.post:hover,
.blog .page-content > article.post:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(0, 9, 44, 0.09);
}

.archive .page-content > article.post > .entry-title,
.blog .page-content > article.post > .entry-title {
	margin: 0 0 0.875rem;
	font-size: 1.375rem;
	font-weight: 600;
	line-height: 1.3;
}

.archive .page-content > article.post > .entry-title a,
.blog .page-content > article.post > .entry-title a {
	color: #00092c;
	text-decoration: none;
}

.archive .page-content > article.post > .entry-title a:hover,
.archive .page-content > article.post > .entry-title a:focus-visible,
.blog .page-content > article.post > .entry-title a:hover,
.blog .page-content > article.post > .entry-title a:focus-visible {
	color: #a12333;
}

.archive .page-content > article.post > p,
.blog .page-content > article.post > p {
	margin: 0 0 1.5rem;
	color: #6e6e6e;
	font-size: 0.9375rem;
	line-height: 1.65;
}

.archive .page-content > article.post img,
.blog .page-content > article.post img {
	margin-bottom: 1.25rem;
	border-radius: 4px;
}

/* Footer and call to action are appended to the excerpt by the plugin. */

.ptr-card__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	margin-top: auto;
	padding-top: 1.25rem;
	border-top: 1px solid #ededed;
}

.ptr-card__date,
.ptr-card__badge {
	color: #6e6e6e;
	font-size: 0.8125rem;
	letter-spacing: 0.01em;
}

.ptr-card__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	margin-left: auto;
	color: #a12333;
	font-weight: 500;
}

.ptr-card__badge svg {
	width: 0.875rem;
	height: 0.875rem;
}

.archive .page-content > article.post .ptr-card__cta,
.blog .page-content > article.post .ptr-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1.125rem;
	color: #a12333;
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
}

.ptr-card__cta svg {
	width: 1rem;
	height: 1rem;
	transition: transform 0.2s ease;
}

.archive .page-content > article.post:hover .ptr-card__cta svg {
	transform: translateX(3px);
}

.archive .page-content > article.post .ptr-card__cta:focus-visible {
	outline: 2px solid #a12333;
	outline-offset: 3px;
}
