/* Locked / unlocked states. The <html> element gets .dh-unlocked once a reader has subscribed. */
.dh-when-unlocked { display: none; }
.dh-unlocked .dh-when-unlocked { display: block; }
.dh-unlocked .dh-when-locked { display: none; }

.dh-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dh-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.dh-input {
	flex: 1 1 240px;
	min-height: 52px;
	padding: 0 18px;
	border: 1px solid #D6C8DA;
	border-radius: 26px;
	font: inherit;
	font-size: 1rem;
	background: #fff;
}
.dh-input:focus { outline: 2px solid #4A2456; outline-offset: 2px; }
.dh-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 26px;
	border: 0;
	border-radius: 26px;
	background: #4A2456;
	color: #fff;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}
.dh-button:hover, .dh-button:focus { background: #2E1236; color: #fff; }
.dh-button[disabled] { opacity: 0.6; cursor: wait; }
.dh-status { flex-basis: 100%; margin: 0; font-size: 0.875rem; color: #4D4352; min-height: 1.2em; }
.dh-fineprint { margin: 8px 0 0; font-size: 0.8125rem; color: #6B6070; }
.dh-compact .dh-input, .dh-compact .dh-button { min-height: 44px; }
.dh-compact .dh-form { flex-direction: column; }
.dh-unlocked-note { margin: 0; }

/* Download box inside posts */
.dh-download-box {
	margin: 2.5rem 0;
	padding: 2rem;
	border: 2px solid #4A2456;
	border-radius: 20px;
	background: #F7F2F8;
	scroll-margin-top: 2rem;
}
.dh-download-box .dh-eyebrow {
	margin: 0 0 6px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #7A5A12;
}
.dh-box-title { margin: 0 0 10px; }
.dh-box-text { margin: 0 0 16px; color: #4D4352; }

/* Library grid */
.dh-library-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 24px;
	margin-top: 1.5rem;
}
.dh-tile-item img, .dh-tile-placeholder {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 14px;
	display: block;
	background: #E9DCEC;
}
.dh-tile-title { margin: 12px 0 4px; font-size: 1.0625rem; font-family: inherit; font-weight: 600; }
.dh-tile-tutorial { margin: 0 0 10px; font-size: 0.875rem; }
.dh-tile-item summary { list-style: none; min-height: 44px; }
.dh-tile-item summary::-webkit-details-marker { display: none; }
.dh-tile-item details[open] summary { margin-bottom: 10px; }
.dh-tile-item .dh-download-link { min-height: 44px; }
.dh-missing { font-size: 0.875rem; color: #6B6070; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Library page: category menu and file lists */
.dh-library-signup { max-width: 560px; margin: 1.5rem auto 0; }
.dh-lib-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 2rem; }
.dh-lib-nav a {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 14px; border: 1px solid #ECE4EE; border-radius: 20px;
	background: #fff; color: #2B2230; font-size: 0.9375rem; text-decoration: none;
}
.dh-lib-nav a:hover, .dh-lib-nav a:focus { border-color: #4A2456; color: #4A2456; }
.dh-lib-nav span { font-size: 0.8125rem; color: #6B6070; }
.dh-lib-heading { margin-top: 3rem; scroll-margin-top: 1.5rem; }
.dh-file-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #ECE4EE; }
.dh-file {
	display: flex; align-items: center; gap: 12px;
	padding: 10px 4px; border-bottom: 1px solid #ECE4EE;
}
.dh-file-name { flex: 1 1 auto; color: #2B2230; font-weight: 500; }
.dh-file-formats { flex: 0 0 auto; font-size: 0.8125rem; color: #6B6070; letter-spacing: 0.02em; }
.dh-file-dl, .dh-file-lock {
	flex: 0 0 auto; padding: 6px 14px; border-radius: 16px;
	font-size: 0.875rem; font-weight: 600; text-decoration: none;
}
.dh-file-dl { background: #4A2456; color: #fff; }
.dh-file-dl:hover, .dh-file-dl:focus { background: #2E1236; color: #fff; }
.dh-file-lock { border: 1px solid #D6C8DA; color: #4A2456; }
.dh-file-lock::before { content: "\1F512\00a0"; font-size: 0.75rem; }
.dh-unlocked .dh-file .dh-when-unlocked { display: inline-block; }
.dh-more { margin-top: 0; }
.dh-more summary {
	cursor: pointer; padding: 12px 4px; color: #4A2456; font-weight: 600; list-style: none;
}
.dh-more summary::-webkit-details-marker { display: none; }
.dh-more summary::after { content: " \25BE"; }
.dh-more[open] summary::after { content: " \25B4"; }
.dh-more[open] summary { border-bottom: 1px solid #ECE4EE; }
@media (max-width: 600px) {
	.dh-file { flex-wrap: wrap; gap: 4px 10px; }
	.dh-file-name { flex-basis: 100%; }
	.dh-file-formats { flex: 1 1 auto; }
}

/* Library page v2: hero, category cards, section banners */
.dh-lib-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.dh-lib-hero .dh-eyebrow { margin: 0 0 8px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #7A5A12; }
.dh-lib-title { margin: 0 0 12px; font-family: var(--wp--preset--font-family--display, Georgia, serif); font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1.1; color: #2B2230; }
.dh-lib-lede { margin: 0 0 1.25rem; font-size: 1.125rem; color: #4D4352; }
.dh-lib-hero .dh-library-signup { margin: 0; max-width: none; }
.dh-lib-collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 1 / 1; }
.dh-lib-collage img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; display: block; box-shadow: 0 8px 24px rgba(46, 18, 54, 0.12); }
.dh-lib-collage img:first-child { grid-row: span 2; }
.dh-lib-steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dh-lib-steps li { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #fff; border-radius: 14px; font-weight: 600; color: #2B2230; }
.dh-lib-steps span { flex: 0 0 32px; height: 32px; border-radius: 50%; background: #4A2456; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 0.9375rem; }

.dh-lib-browse { margin: 0 0 1.25rem; font-family: var(--wp--preset--font-family--display, Georgia, serif); scroll-margin-top: 1.5rem; }
.dh-lib-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0 0 1rem; }
.dh-lib-cards a { display: block; text-decoration: none; color: #2B2230; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid #ECE4EE; transition: transform .15s ease, box-shadow .15s ease; }
.dh-lib-cards a:hover, .dh-lib-cards a:focus { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(46, 18, 54, 0.12); }
.dh-lib-cards img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.dh-lib-card-name { display: block; padding: 12px 14px 0; font-weight: 600; }
.dh-lib-card-count { display: block; padding: 2px 14px 14px; font-size: 0.8125rem; color: #6B6070; }

.dh-lib-section { display: flex; align-items: center; gap: 22px; margin: 3.5rem 0 1rem; padding: 18px; background: #F7F2F8; border-radius: 20px; scroll-margin-top: 1.5rem; }
.dh-lib-section img { flex: 0 0 180px; width: 180px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; display: block; }
.dh-lib-section h2 { margin: 0 0 6px; font-family: var(--wp--preset--font-family--display, Georgia, serif); }
.dh-lib-section p { margin: 0 0 10px; color: #4D4352; }
.dh-lib-pill { display: inline-block; padding: 4px 12px; border-radius: 14px; background: #fff; color: #4A2456; font-size: 0.8125rem; font-weight: 600; }
.dh-lib-top { margin: 10px 0 0; text-align: right; font-size: 0.875rem; }
.dh-lib-top a { color: #6B6070; text-decoration: none; }
.dh-file:nth-child(even) { background: #FCFAFC; }
.dh-file:hover { background: #F7F2F8; }
.dh-eyebrow-light { color: #E8D9A8 !important; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }

@media (max-width: 860px) {
	.dh-lib-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
	.dh-lib-collage { aspect-ratio: 3 / 2; }
	.dh-lib-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.dh-lib-steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.dh-lib-section { flex-direction: column; align-items: flex-start; }
	.dh-lib-section img { width: 100%; flex-basis: auto; aspect-ratio: 16 / 9; }
}
.dh-post-link { margin: 1.5rem 0; font-weight: 600; }
.dh-download-box .dh-when-unlocked .dh-button { margin-top: 4px; }
