/* PuzzleTwig Activity Maker 2.0 — activity card, preview dialog, related printables. */

.ptam-card,
.ptam-related,
.ptam-dialog {
	--ptam-green: #2F7D50;
	--ptam-green-dark: #245C3F;
	--ptam-navy: #192C45;
	--ptam-cream: #F8F7F1;
	--ptam-sage: #EAF3E7;
	--ptam-text: #44574F;
	--ptam-line: #DCE6DA;
	--ptam-heading-font: "Nunito Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ptam-body-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ptam-radius: 22px;
}

.ptam-card *,
.ptam-card *::before,
.ptam-card *::after,
.ptam-related *,
.ptam-dialog * {
	box-sizing: border-box;
}

.ptam-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ptam-icon {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	display: inline-block;
	vertical-align: middle;
}

/* ---------------------------------------------------------------- Card */

.ptam-card {
	max-width: 900px;
	margin: 32px auto;
	padding: clamp(18px, 3.2vw, 34px);
	background: var(--ptam-cream);
	border: 1px solid var(--ptam-line);
	border-radius: var(--ptam-radius);
	color: var(--ptam-text);
	font-family: var(--ptam-body-font);
	font-size: 16px;
	line-height: 1.65;
	text-align: left;
}

.ptam-card .ptam-header {
	margin: 0 0 22px;
}

.ptam-card .ptam-eyebrow {
	margin: 0 0 8px;
	color: var(--ptam-green);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .09em;
	line-height: 1.4;
	text-transform: uppercase;
}

.ptam-card h2.ptam-title,
.ptam-card h3,
.ptam-related h2,
.ptam-related h3 {
	color: var(--ptam-navy);
	font-family: var(--ptam-heading-font);
	letter-spacing: -.02em;
	text-transform: none;
}

.ptam-card h2.ptam-title {
	margin: 0 0 10px;
	padding: 0;
	font-size: clamp(24px, 3.1vw, 32px);
	font-weight: 800;
	line-height: 1.2;
}

.ptam-card .ptam-summary {
	margin: 0 0 16px;
	font-size: 16.5px;
	line-height: 1.7;
}

.ptam-card ul.ptam-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ptam-card li.ptam-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	min-height: 36px;
	margin: 0;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--ptam-sage);
	color: var(--ptam-green-dark);
	font-size: 14.5px;
	font-weight: 650;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.ptam-card li.ptam-badge::before {
	content: "";
	flex: 0 0 7px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ptam-green);
}

/* File zone */

.ptam-card .ptam-file-zone {
	margin: 0 0 26px;
	padding: clamp(12px, 2.2vw, 24px);
	background: #fff;
	border: 1px solid var(--ptam-line);
	border-radius: 18px;
}

.ptam-card .ptam-preview-frame {
	position: relative;
	display: block;
	width: 100%;
	margin: 0 0 14px;
	padding: 0;
	overflow: hidden;
	background: var(--ptam-sage);
	border: 1px solid var(--ptam-line);
	border-radius: 12px;
	cursor: zoom-in;
	font: inherit;
	color: inherit;
	text-align: center;
	box-shadow: none;
}

.ptam-card .ptam-preview-frame.is-static {
	cursor: default;
}

.ptam-card .ptam-preview-frame img.ptam-preview-image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 680px;
	margin: 0 auto;
	object-fit: contain;
	background: #fff;
}

.ptam-card .ptam-preview-badge {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .94);
	color: var(--ptam-navy);
	font-size: 13px;
	font-weight: 700;
	box-shadow: 0 2px 10px rgba(25, 44, 69, .16);
	transition: transform .15s ease;
}

.ptam-card .ptam-preview-badge .ptam-icon {
	width: 16px;
	height: 16px;
	flex-basis: 16px;
	color: var(--ptam-green);
}

.ptam-card .ptam-preview-frame:hover .ptam-preview-badge,
.ptam-card .ptam-preview-frame:focus-visible .ptam-preview-badge {
	transform: translateY(-2px);
}

.ptam-card .ptam-preview-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 180px;
	margin: 0 0 14px;
	border-radius: 12px;
	background: var(--ptam-sage);
	color: var(--ptam-green-dark);
	font-weight: 650;
}

.ptam-card .ptam-preview-placeholder .ptam-icon {
	width: 54px;
	height: 54px;
	flex-basis: auto;
	color: var(--ptam-green);
}

.ptam-card .ptam-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.ptam-card .ptam-action,
.ptam-card a.ptam-action,
.ptam-card button.ptam-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 11px 16px;
	border-radius: 11px;
	font-family: inherit;
	font-size: 15.5px;
	font-weight: 750;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.ptam-card .ptam-outline {
	background: #fff;
	border: 1.5px solid #BBD2C2;
	color: var(--ptam-navy);
}

.ptam-card .ptam-outline .ptam-icon {
	color: var(--ptam-green);
}

.ptam-card .ptam-outline:hover,
.ptam-card .ptam-outline:focus-visible {
	background: var(--ptam-sage);
	border-color: var(--ptam-green);
	color: var(--ptam-navy);
}

.ptam-card .ptam-download {
	grid-column: 1 / -1;
	background: var(--ptam-green);
	border: 2px solid var(--ptam-green);
	color: #fff;
}

.ptam-card .ptam-download:hover,
.ptam-card .ptam-download:focus-visible {
	background: var(--ptam-green-dark);
	border-color: var(--ptam-green-dark);
	color: #fff;
}

.ptam-card .ptam-action[aria-busy="true"] {
	cursor: progress;
	opacity: .75;
}

.ptam-card .ptam-file-meta {
	margin: 10px 0 0;
	color: #587063;
	font-size: 13px;
	text-align: center;
}

.ptam-card .ptam-share {
	margin: 8px 0 0;
	text-align: center;
}

.ptam-card a.ptam-pin {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 6px 10px;
	color: var(--ptam-green-dark);
	font-size: 14px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ptam-card a.ptam-pin .ptam-icon {
	width: 17px;
	height: 17px;
	flex-basis: 17px;
}

/* Sections */

.ptam-card .ptam-section {
	padding: 18px 0 8px;
	border-top: 1px solid var(--ptam-line);
}

.ptam-card .ptam-section h3,
.ptam-card .ptam-bundle h3,
.ptam-card .ptam-cta h3 {
	margin: 0 0 10px;
	padding: 0;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.35;
}

.ptam-card .ptam-section p {
	margin: 0 0 10px;
}

.ptam-card ul.ptam-list,
.ptam-card ol.ptam-list {
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

.ptam-card .ptam-list li {
	position: relative;
	margin: 0 0 9px;
	padding: 0 0 0 26px;
}

.ptam-card ul.ptam-list li::before {
	content: "";
	position: absolute;
	top: .62em;
	left: 6px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ptam-green);
}

.ptam-card ol.ptam-list {
	counter-reset: ptam-step;
}

.ptam-card ol.ptam-list li {
	counter-increment: ptam-step;
	padding-left: 38px;
	min-height: 26px;
}

.ptam-card ol.ptam-list li::before {
	content: counter(ptam-step);
	position: absolute;
	top: .1em;
	left: 0;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--ptam-sage);
	color: var(--ptam-green-dark);
	font-size: 13px;
	font-weight: 800;
	line-height: 26px;
	text-align: center;
}

/* Answer check */

.ptam-card .ptam-answers {
	padding: 16px 0 6px;
	border-top: 1px solid var(--ptam-line);
}

.ptam-card .ptam-answers > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 44px;
	cursor: pointer;
	list-style: none;
}

.ptam-card .ptam-answers > summary::-webkit-details-marker {
	display: none;
}

.ptam-card .ptam-answers > summary:focus-visible {
	outline: 3px solid var(--ptam-green-dark);
	outline-offset: 3px;
	border-radius: 6px;
}

.ptam-card .ptam-answers h3.ptam-answers-title {
	display: inline;
	margin: 0;
	font-size: 20px;
	font-weight: 800;
}

.ptam-card .ptam-answers-toggle {
	position: relative;
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--ptam-sage);
}

.ptam-card .ptam-answers-toggle::before,
.ptam-card .ptam-answers-toggle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 2px;
	margin: -1px 0 0 -6px;
	background: var(--ptam-green-dark);
	transition: transform .2s ease;
}

.ptam-card .ptam-answers-toggle::after {
	transform: rotate(90deg);
}

.ptam-card .ptam-answers[open] .ptam-answers-toggle::after {
	transform: rotate(0deg);
}

.ptam-card .ptam-answers-content {
	padding: 8px 0 4px;
}

.ptam-card .ptam-answers-content p {
	margin: 0 0 8px;
}

.ptam-card .ptam-answer-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin-top: 6px;
}

.ptam-card .ptam-link-button,
.ptam-card a.ptam-link-button {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ptam-green-dark);
	font: inherit;
	font-weight: 750;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* Bundle + CTA */

.ptam-card .ptam-bundle,
.ptam-card .ptam-cta {
	margin: 18px 0 0;
	padding: 20px 22px;
	border-radius: 16px;
}

.ptam-card .ptam-bundle {
	background: #FFF8E6;
	border: 1px solid #F0E3C0;
}

.ptam-card .ptam-bundle-eyebrow {
	margin: 0 0 4px;
	color: #4F6328;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.ptam-card .ptam-bundle-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	color: var(--ptam-green-dark);
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ptam-card .ptam-bundle-link .ptam-icon {
	width: 17px;
	height: 17px;
	flex-basis: 17px;
}

.ptam-card .ptam-cta {
	background: var(--ptam-sage);
	border: 1px solid #D3E4CF;
}

.ptam-card .ptam-cta p {
	margin: 0 0 12px;
}

.ptam-card a.ptam-cta-button {
	width: auto;
	background: var(--ptam-navy);
	border: 2px solid var(--ptam-navy);
	color: #fff;
}

.ptam-card a.ptam-cta-button:hover,
.ptam-card a.ptam-cta-button:focus-visible {
	background: #0F1D30;
	color: #fff;
}

.ptam-notice {
	padding: 14px 16px;
	border: 1px solid #ECD39A;
	border-radius: 10px;
	background: #FFF7DB;
	color: #5C4500;
	font-size: 14px;
	line-height: 1.5;
}

/* Focus */

.ptam-card a:focus-visible,
.ptam-card button:focus-visible,
.ptam-related a:focus-visible,
.ptam-dialog button:focus-visible,
.ptam-dialog a:focus-visible {
	outline: 3px solid var(--ptam-green-dark);
	outline-offset: 3px;
}

/* ---------------------------------------------------------------- Related */

.ptam-related {
	max-width: 900px;
	margin: 34px auto 48px;
	font-family: var(--ptam-body-font);
}

.ptam-related .ptam-related-heading {
	margin: 0 0 18px;
}

.ptam-related h2 {
	margin: 0 0 6px;
	padding: 0;
	font-size: clamp(23px, 3vw, 30px);
	font-weight: 800;
	line-height: 1.2;
}

.ptam-related .ptam-related-heading p {
	margin: 0;
	color: var(--ptam-text);
	font-size: 15px;
}

.ptam-related ul.ptam-related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ptam-related li.ptam-related-item {
	margin: 0;
	padding: 0;
	min-width: 0;
}

.ptam-related a.ptam-related-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background: #fff;
	border: 1px solid #DFE7DD;
	border-radius: 14px;
	color: var(--ptam-navy);
	text-decoration: none;
	transition: box-shadow .15s ease, transform .15s ease;
}

.ptam-related a.ptam-related-link:hover {
	box-shadow: 0 6px 24px rgba(25, 44, 69, .1);
	transform: translateY(-2px);
}

.ptam-related .ptam-related-image-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--ptam-sage);
}

.ptam-related img.ptam-related-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ptam-related .ptam-related-no-image .ptam-icon {
	width: 44px;
	height: 44px;
	color: var(--ptam-green);
}

.ptam-related .ptam-related-copy {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 14px;
}

.ptam-related .ptam-related-category {
	color: var(--ptam-green-dark);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .05em;
	line-height: 1.4;
	text-transform: uppercase;
}

.ptam-related h3.ptam-related-title {
	margin: 6px 0 10px;
	padding: 0;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.ptam-related .ptam-related-cta {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: auto;
	color: var(--ptam-green-dark);
	font-size: 13.5px;
	font-weight: 800;
}

.ptam-related .ptam-related-cta .ptam-icon {
	width: 15px;
	height: 15px;
	flex-basis: 15px;
}

/* ---------------------------------------------------------------- Preview dialog */

html.ptam-dialog-open {
	overflow: hidden;
}

.ptam-dialog {
	width: min(100vw - 24px, 1100px);
	height: min(100dvh - 24px, 1040px);
	max-width: none;
	max-height: none;
	margin: auto;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 16px;
	background: #fff;
	color: var(--ptam-navy);
	font-family: var(--ptam-body-font);
	box-shadow: 0 20px 70px rgba(0, 0, 0, .35);
}

.ptam-dialog[open] {
	display: flex;
	flex-direction: column;
}

.ptam-dialog.is-fallback {
	position: fixed;
	inset: 12px;
	z-index: 999999;
}

.ptam-dialog::backdrop {
	background: rgba(9, 23, 33, .78);
}

.ptam-dialog-backdrop {
	position: fixed;
	inset: 0;
	z-index: 999998;
	background: rgba(9, 23, 33, .78);
}

.ptam-dialog-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	padding: 10px 12px 10px 18px;
	border-bottom: 1px solid #E1E8E0;
	background: #fff;
}

.ptam-dialog-title {
	flex: 1 1 200px;
	min-width: 0;
	margin: 0;
	font-family: var(--ptam-heading-font);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ptam-dialog-status {
	color: #587063;
	font-size: 13px;
	white-space: nowrap;
}

.ptam-dialog-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.ptam-dialog .ptam-tool {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 44px;
	min-height: 40px;
	margin: 0;
	padding: 6px 12px;
	border: 1px solid #C8D8CC;
	border-radius: 9px;
	background: #fff;
	color: var(--ptam-navy);
	font: 700 14px/1.2 var(--ptam-body-font);
	text-decoration: none;
	cursor: pointer;
}

.ptam-dialog .ptam-tool:hover {
	background: var(--ptam-sage);
}

.ptam-dialog .ptam-tool[disabled] {
	opacity: .45;
	cursor: default;
}

.ptam-dialog .ptam-tool .ptam-icon {
	width: 18px;
	height: 18px;
	flex-basis: 18px;
	color: var(--ptam-green);
}

.ptam-dialog .ptam-tool--primary {
	background: var(--ptam-green);
	border-color: var(--ptam-green);
	color: #fff;
}

.ptam-dialog .ptam-tool--primary .ptam-icon {
	color: #fff;
}

.ptam-dialog .ptam-tool--primary:hover {
	background: var(--ptam-green-dark);
}

.ptam-dialog .ptam-tool--close {
	font-size: 22px;
	line-height: 1;
}

.ptam-dialog-body {
	position: relative;
	flex: 1;
	min-height: 0;
	overflow: auto;
	overscroll-behavior: contain;
	padding: 18px 12px 28px;
	background: #E7EEE8;
	-webkit-overflow-scrolling: touch;
}

.ptam-pages {
	width: 100%;
	max-width: 860px;
	margin: 0 auto;
}

.ptam-page {
	position: relative;
	width: 100%;
	margin: 0 auto 18px;
	background: #fff;
	box-shadow: 0 4px 22px rgba(0, 0, 0, .13);
}

.ptam-page canvas,
.ptam-page img {
	display: block;
	width: 100%;
	height: 100%;
}

.ptam-page.is-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 34px;
	height: 34px;
	margin: -17px 0 0 -17px;
	border: 3px solid #D6E3D8;
	border-top-color: var(--ptam-green);
	border-radius: 50%;
	animation: ptam-spin .8s linear infinite;
}

.ptam-page-number {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 2px 8px;
	border-radius: 99px;
	background: rgba(25, 44, 69, .72);
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
}

.ptam-dialog-message {
	max-width: 520px;
	margin: 40px auto;
	padding: 22px;
	border-radius: 14px;
	background: #fff;
	text-align: center;
	line-height: 1.6;
}

.ptam-dialog-message .ptam-tool {
	margin: 6px 4px 0;
}

.ptam-dialog-note {
	margin: 0;
	padding: 8px 14px;
	background: #FFFBEA;
	color: #5B5132;
	font-size: 13px;
	text-align: center;
}

@keyframes ptam-spin {
	to { transform: rotate(360deg); }
}

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

@media (max-width: 600px) {
	.ptam-card {
		margin: 24px auto;
		padding: 16px;
		border-radius: 16px;
		font-size: 15.5px;
	}
	.ptam-card .ptam-summary {
		font-size: 15.5px;
	}
	.ptam-card li.ptam-badge {
		min-height: 34px;
		padding: 6px 12px;
		font-size: 13px;
		gap: 7px;
	}
	.ptam-card .ptam-file-zone {
		padding: 12px;
		border-radius: 14px;
	}
	.ptam-card .ptam-action,
	.ptam-card a.ptam-action,
	.ptam-card button.ptam-action {
		min-height: 48px;
		padding: 10px 8px;
		font-size: 14.5px;
	}
	.ptam-card .ptam-section h3,
	.ptam-card .ptam-answers h3.ptam-answers-title {
		font-size: 18.5px;
	}
	.ptam-related ul.ptam-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	.ptam-related .ptam-related-copy {
		padding: 10px;
	}
	.ptam-related h3.ptam-related-title {
		font-size: 14.5px;
	}
	.ptam-dialog {
		width: 100vw;
		height: 100dvh;
		border-radius: 0;
	}
	.ptam-dialog.is-fallback {
		inset: 0;
	}
	.ptam-dialog-header {
		padding: 8px 8px 8px 12px;
	}
	.ptam-dialog-tools {
		width: 100%;
		justify-content: space-between;
	}
	.ptam-dialog .ptam-tool {
		padding: 6px 9px;
		font-size: 13px;
	}
	.ptam-dialog .ptam-tool .ptam-tool-label {
		display: none;
	}
	.ptam-dialog-body {
		padding: 10px 6px 20px;
	}
}

@media (max-width: 360px) {
	.ptam-card .ptam-actions {
		grid-template-columns: 1fr;
	}
	.ptam-related ul.ptam-related-grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ptam-card *,
	.ptam-related *,
	.ptam-dialog * {
		transition: none !important;
		animation-duration: 0s !important;
	}
}

@media print {
	.ptam-card .ptam-actions,
	.ptam-card .ptam-share,
	.ptam-card .ptam-preview-badge,
	.ptam-dialog {
		display: none !important;
	}
}

/* ---------------------------------------------------------------- 2.2.0 layout (approved PuzzleTwig demo) */

/* Pinterest: full-width red button directly under Download */
.ptam-card .ptam-share {
	margin: 10px 0 0;
}

.ptam-card a.ptam-pin {
	display: flex;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 50px;
	padding: 11px 16px;
	border: 2px solid #E60023;
	border-radius: 11px;
	background: #E60023;
	color: #fff;
	font-size: 15.5px;
	font-weight: 750;
	text-decoration: none;
	transition: background-color .15s ease, border-color .15s ease;
}

.ptam-card a.ptam-pin:hover,
.ptam-card a.ptam-pin:focus-visible {
	background: #AD081B;
	border-color: #AD081B;
	color: #fff;
}

.ptam-card a.ptam-pin .ptam-icon {
	color: #fff;
}

/* Preview + Print stay side by side on every phone width */
@media (max-width: 360px) {
	.ptam-card .ptam-actions {
		grid-template-columns: 1fr 1fr;
	}
}

/* Make It Easier / Add a Challenge: tinted boxes, one under the other */
.ptam-card .ptam-section--easier,
.ptam-card .ptam-section--challenge {
	margin: 14px 0 0;
	padding: 16px 18px 8px;
	border-top: 0;
	border-radius: 14px;
}

.ptam-card .ptam-section--easier {
	background: var(--ptam-sage);
}

.ptam-card .ptam-section--challenge {
	background: #FFF3CC;
}

.ptam-card .ptam-section--challenge + .ptam-section {
	margin-top: 18px;
}

/* Answer key: visible, full-width download button */
.ptam-card .ptam-answer-actions {
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
}

.ptam-card .ptam-answer-actions .ptam-link-button:not(.ptam-answer-download) {
	align-self: center;
}

.ptam-card a.ptam-link-button.ptam-answer-download {
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 50px;
	padding: 11px 16px;
	border-radius: 11px;
	background: var(--ptam-navy);
	color: #fff;
	text-decoration: none;
}

.ptam-card a.ptam-link-button.ptam-answer-download:hover,
.ptam-card a.ptam-link-button.ptam-answer-download:focus-visible {
	background: #2B3D50;
	color: #fff;
}

.ptam-card a.ptam-answer-download .ptam-icon {
	color: #fff;
}

/* Related printables: one under the other (image left, text right) */
.ptam-related ul.ptam-related-grid {
	grid-template-columns: 1fr;
	gap: 12px;
}

.ptam-related a.ptam-related-link {
	flex-direction: row;
	align-items: stretch;
}

.ptam-related .ptam-related-image-wrap {
	flex: 0 0 132px;
	aspect-ratio: auto;
	min-height: 112px;
}

.ptam-related .ptam-related-copy {
	justify-content: center;
	min-width: 0;
	padding: 14px 16px;
}

@media (max-width: 600px) {
	.ptam-related ul.ptam-related-grid {
		grid-template-columns: 1fr;
	}
	.ptam-related .ptam-related-image-wrap {
		flex-basis: 104px;
		min-height: 96px;
	}
}

.ptam-related .ptam-related-cta {
	margin-top: 4px;
}

.ptam-related h3.ptam-related-title {
	margin-bottom: 4px;
}

/* ---------------------------------------------------------------- 2.4.0 */

/* Pictures are not buttons: only the Preview button opens the viewer */
.ptam-card .ptam-preview-frame.is-static {
	cursor: default;
}

.ptk-sheet-btn {
	cursor: default !important;
}

.ptk-sheet-btn:hover {
	transform: rotate(-1.5deg) !important;
}

/* Related printables — "paper sheet on a tile" (whole page visible, immune to theme image styles) */
.ptam-related ul.ptam-related-grid {
	grid-template-columns: 1fr;
	gap: 14px;
}

.ptam-related a.ptam-related-link,
.ptk .ptam-related a.ptam-related-link {
	display: grid !important;
	grid-template-columns: 112px minmax(0, 1fr);
	align-items: center;
	gap: 16px;
	height: auto !important;
	padding: 12px 16px 12px 12px;
	border: 1px solid var(--ptam-line);
	border-radius: 20px;
	background: #fff;
}

.ptam-related a.ptam-related-link:hover {
	border-color: var(--ptam-green);
	box-shadow: 0 10px 26px -14px rgba(25, 44, 69, .35);
	transform: translateY(-2px);
}

.ptam-related .ptam-related-image-wrap,
.ptk .ptam-related .ptam-related-image-wrap {
	display: flex !important;
	align-items: center;
	justify-content: center;
	align-self: center !important;
	box-sizing: border-box;
	width: 112px !important;
	height: 140px !important;
	min-height: 0 !important;
	max-height: none !important;
	aspect-ratio: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	border: 0 !important;
	border-radius: 14px !important;
	background: var(--ptam-sage) !important;
}

.ptam-related li.ptam-related-item:nth-child(3n+2) .ptam-related-image-wrap {
	background: #DDEBFA !important;
}

.ptam-related li.ptam-related-item:nth-child(3n+3) .ptam-related-image-wrap {
	background: #FFF3CF !important;
}

.ptam-related img.ptam-related-image,
.ptk .ptam-related img.ptam-related-image {
	display: block !important;
	width: auto !important;
	height: auto !important;
	max-width: 76% !important;
	max-height: 84% !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	object-fit: contain !important;
	aspect-ratio: auto !important;
	background: #fff !important;
	border: 0 !important;
	border-radius: 3px !important;
	box-shadow: 0 1px 0 rgba(25, 44, 69, .08), 0 8px 16px -6px rgba(25, 44, 69, .35) !important;
	transform: rotate(-3deg) !important;
	transition: transform .2s ease;
}

.ptam-related a.ptam-related-link:hover img.ptam-related-image {
	transform: rotate(0deg) scale(1.04) !important;
}

.ptam-related .ptam-related-copy {
	padding: 0 !important;
	justify-content: center;
}

.ptam-related h3.ptam-related-title {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 6px 0 8px;
}

@media (max-width: 600px) {
	.ptam-related a.ptam-related-link,
	.ptk .ptam-related a.ptam-related-link {
		grid-template-columns: 104px minmax(0, 1fr);
		gap: 14px;
		padding: 10px 14px 10px 10px;
	}
	.ptam-related .ptam-related-image-wrap,
	.ptk .ptam-related .ptam-related-image-wrap {
		width: 104px !important;
		height: 130px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ptam-related a.ptam-related-link:hover img.ptam-related-image {
		transform: rotate(-3deg) !important;
	}
}
