/*
Theme Name: Donna Peplinskie — A Curious Maker
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: donnapeplinskie-curious
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts a margin-block-start equal to the block gap (24px unless
   theme.json sets styles.spacing.blockGap) between the template's top-level
   sections (header part, main, footer part) — a gap that exists even when no
   markup asks for it. Zero it so sections butt edge-to-edge and own their
   vertical rhythm via padding; this does not affect block gaps inside nested
   layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

/* === appearance === */
:root[data-appearance="dark"] {
	--wp--preset--color--background: var(--wp--preset--color--night);
	--wp--preset--color--text: var(--wp--preset--color--night-text);
	--wp--preset--color--surface: var(--wp--preset--color--night-surface);
	--wp--preset--color--hero: var(--wp--preset--color--night-hero);
	--wp--preset--color--sage-field: var(--wp--preset--color--night-sage);
	--wp--preset--color--line: var(--wp--preset--color--night-line);
	--wp--preset--color--accent: var(--wp--preset--color--night-accent);
	--wp--preset--color--muted: var(--wp--preset--color--night-muted);
	--wp--preset--color--button: var(--wp--preset--color--night-button);
	--wp--preset--color--button-text: var(--wp--preset--color--night);
	--wp--preset--color--badge: var(--wp--preset--color--night-badge);
	--wp--preset--color--badge-text: var(--wp--preset--color--night);
}
.appearance { display: none; }
.has-appearance-controls .appearance {
	display: flex;
	gap: 2px;
	padding: 3px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 30px;
	width: max-content;
}
.appearance button {
	font: inherit;
	font-size: var(--wp--preset--font-size--label);
	line-height: 1.5;
	padding: 8px 11px;
	min-height: 38px;
	border: 0;
	border-radius: 24px;
	background: transparent;
	color: var(--wp--preset--color--text);
	cursor: pointer;
}
.appearance button[aria-pressed="true"] {
	background: var(--wp--preset--color--text);
	color: var(--wp--preset--color--background);
}
.appearance button:hover { outline: 1px solid var(--wp--preset--color--accent); outline-offset: -1px; }

/* === reset === */
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; }
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
a { text-underline-offset: 5px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, pre:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 4px;
}
.wp-site-blocks { padding-block: 0; }
.site-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.site-header .wp-block-site-title { white-space: nowrap; }

.site-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 32px;
	background: var(--wp--preset--color--background);
	color: var(--wp--preset--color--text);
}
.site-header .wp-block-navigation__responsive-container-open { min-width: 44px; min-height: 44px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: var(--wp--preset--font-size--label); }
.external-link-arrow {
	display: inline-block;
	width: 14px;
	height: 14px;
	/* Align the drawn arrow with the text baseline, allowing for SVG padding. */
	vertical-align: -2px;
}
.wp-element-button { min-height: 48px; }
.site-footer { border-top: 1px solid var(--wp--preset--color--line); }

/* === block styles === */
.is-style-project-card {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--rounded--card);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
	overflow: hidden;
	height: 100%;
}
.is-style-project-card > figure { margin: 0; }
.is-style-project-card > figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.is-style-project-card .wp-block-heading a { text-decoration: none; }
.is-style-numbered-step { border-top: 1px solid var(--wp--preset--color--muted); padding-top: 20px; }
.is-style-numbered-step > :first-child { margin-top: 0; }
.is-style-numbered-step > .wp-block-heading { margin-block: 18px 12px; }
.is-style-numbered-step > p:last-child { margin-top: 0; }
.role { border-top: 1px solid var(--wp--preset--color--line); padding-top: 24px; }
.colleague-quote cite {
	display: block;
	margin-block-start: 20px;
	font-family: var(--wp--preset--font-family--karla);
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.5;
}
/* === sections === */
.hero-section { border-top: 6px solid transparent; border-image: repeating-linear-gradient(-45deg,var(--wp--preset--color--accent) 0 16px,var(--wp--preset--color--background) 16px 32px,var(--wp--preset--color--muted) 32px 48px ) 6; }
.hero-title { max-width: 13ch; }
.hero-title em {
	font-style: normal;
	text-decoration: none;
	background-image: linear-gradient(var(--wp--preset--color--accent), var(--wp--preset--color--accent));
	background-repeat: no-repeat;
	background-position: left bottom;
	background-size: 100% 2px;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
.hero-intro { max-width: 49ch; }
.portrait-frame { position: relative; max-width: 360px; margin-inline: auto; }
.portrait-frame .wp-block-image img { border: 3px solid var(--wp--preset--color--sage-light); border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.portrait-frame .hello-note { position: absolute; right: 0; bottom: 0; transform: rotate(-8deg); margin: 0; padding: 12px 22px; border-radius: 35px; background: var(--wp--preset--color--badge); color: var(--wp--preset--color--badge-text); font-family: var(--wp--preset--font-family--outfit); font-size: 24px; font-weight: 500; }
.section-heading h2 { max-width: 20ch; }
.section-heading > p { max-width: 48ch; }
@media (min-width: 782px) {
	.experience-grid .role > .eyebrow { min-block-size: 2lh; }
	.projects-grid .eyebrow { min-block-size: 2lh; }
}
@media (min-width: 782px) and (max-width: 1000px) {
	.experience-grid .role > h3 { min-block-size: 2lh; }
	.projects-grid .eyebrow { min-block-size: 3lh; }
}
.work-section { border-bottom: 6px solid transparent; border-image: repeating-linear-gradient(-45deg,var(--wp--preset--color--accent) 0 16px,var(--wp--preset--color--background) 16px 32px,var(--wp--preset--color--muted) 32px 48px ) 6; }
.blog-list .wp-block-post { border-top: 1px solid var(--wp--preset--color--line); padding-block: 20px; }
.blog-list .wp-block-post + .wp-block-post { margin-top: 0; }
.blog-list .wp-block-post-title { max-width: 51ch; }
.closing-section h2 { max-width: 27ch; }

/* Hover lift from Donna's previous theme, with level cards at rest. */
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
	.is-style-project-card {
		transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
	}
	.is-style-project-card:hover,
	.is-style-project-card:focus-within {
		transform: translateY(-4px);
		border-color: var(--wp--preset--color--muted);
		box-shadow: 0 10px 22px color-mix(in srgb, var(--wp--preset--color--night) 18%, transparent);
	}
	.hero-section .wp-block-button__link,
	.closing-section .wp-block-button__link {
		transition: transform .2s ease, background-color .3s ease, box-shadow .3s ease;
	}
	.hero-section .wp-block-button__link:hover,
	.hero-section .wp-block-button__link:focus-visible,
	.closing-section .wp-block-button__link:hover,
	.closing-section .wp-block-button__link:focus-visible {
		transform: translateY(-2px);
		box-shadow: 0 4px 10px color-mix(in srgb, var(--wp--preset--color--night) 16%, transparent);
	}
}

/* JavaScript opts approach steps and other offscreen content into these one-time reveals. */
@media (prefers-reduced-motion: no-preference) {
	.hero-title em { animation: hero-underline .6s ease-out .15s both; }
	.scroll-reveal:not(.is-revealed) { opacity: 0; }
	.scroll-reveal[data-reveal="card"]:not(.is-revealed),
	.scroll-reveal[data-reveal="step"]:not(.is-revealed) { transform: translateY(8px); }
	.scroll-reveal.is-revealed { animation: quote-reveal .4s ease-out both; }
	.scroll-reveal[data-reveal="card"].is-revealed,
	.scroll-reveal[data-reveal="step"].is-revealed { animation-name: rise-reveal; }
	.scroll-reveal[data-reveal="step"].is-revealed { animation-duration: .7s; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 782px) {
	.projects-grid > .scroll-reveal.is-revealed:nth-child(2) { animation-delay: .06s; }
	.projects-grid > .scroll-reveal.is-revealed:nth-child(3) { animation-delay: .12s; }
	.approach-grid > .scroll-reveal.is-revealed:nth-child(2),
	.experience-grid > .scroll-reveal.is-revealed:nth-child(2) { animation-delay: .14s; }
	.approach-grid > .scroll-reveal.is-revealed:nth-child(3),
	.experience-grid > .scroll-reveal.is-revealed:nth-child(3) { animation-delay: .28s; }
	.approach-grid > .scroll-reveal.is-revealed:nth-child(4) { animation-delay: .42s; }
}
@keyframes hero-underline {
	from { background-size: 0% 2px; }
	to { background-size: 100% 2px; }
}
@keyframes quote-reveal {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes rise-reveal {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

/* === reading === */
.reading-main > .wp-block-post-content { overflow-wrap: anywhere; }
.reading-main h1 { overflow-wrap: anywhere; }
.reading-main pre { overflow: auto; white-space: pre; }
.reading-main pre code { white-space: pre; }
.reading-main .wp-block-image img { border-radius: 6px; }
.reading-meta { color: var(--wp--preset--color--muted); }
.reading-navigation { border-top: 1px solid var(--wp--preset--color--line); padding-top: 28px; }
.wp-block-comments { border-top: 1px solid var(--wp--preset--color--line); padding-top: 40px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), textarea {
	max-width: 100%;
	font: inherit;
	background: var(--wp--preset--color--background);
	color: var(--wp--preset--color--text);
	border: 1px solid var(--wp--preset--color--muted);
	border-radius: 6px;
	padding: 12px;
}
.wp-block-query-pagination { margin-top: 36px; }
.blog-archive .wp-block-post { border-top: 1px solid var(--wp--preset--color--line); padding-block: 28px; }
.blog-archive .wp-block-post-excerpt { font-size: var(--wp--preset--font-size--body); }

/* === journal === */
.journal-main > * + *, .article-main > * + * { margin-block-start: 0; }
.journal-masthead, .article-masthead {
    border-bottom: 6px solid transparent;
    border-image: repeating-linear-gradient(-45deg,var(--wp--preset--color--accent) 0 16px,var(--wp--preset--color--background) 16px 32px,var(--wp--preset--color--muted) 32px 48px) 6;
}
.journal-intro { align-items: center; gap: 48px; margin-bottom: 0; }
.journal-intro h1 { max-width: 12ch; margin-top: 20px; }
.journal-intro > .wp-block-column:last-child p { max-width: 38ch; }
.journal-layout { gap: 48px; margin-bottom: 0; }
.journal-layout > .wp-block-column, .journal-query .wp-block-post { min-width: 0; }
.journal-collection-heading { padding-bottom: 20px; border-bottom: 1px solid var(--wp--preset--color--line); }
.journal-query .wp-block-post-template { gap: 24px; }
.journal-query .wp-block-post { margin-block: 0; }
.is-style-journal-entry {
    height: 100%;
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid var(--wp--preset--color--line);
    border-radius: var(--wp--custom--rounded--card);
    background: var(--wp--preset--color--surface);
}
.is-style-journal-entry .reading-meta { gap: 8px 20px; }
.is-style-journal-entry .wp-block-post-title { margin-block: 18px; overflow-wrap: anywhere; }
.is-style-journal-entry .wp-block-post-excerpt { margin-top: 0; }
.is-style-journal-entry .wp-block-post-excerpt__excerpt { margin: 0; }
.is-style-journal-entry .wp-block-post-excerpt__more-text { margin-block: 24px 0; font-size: var(--wp--preset--font-size--small); }
.journal-query .wp-block-post:first-child,
.journal-query .wp-block-post:last-child:nth-child(even) { grid-column: 1 / -1; }
.journal-query .wp-block-post:first-child .is-style-journal-entry { background: var(--wp--preset--color--sage-field); }
.journal-query .wp-block-post:first-child .wp-block-post-title { font-size: var(--wp--preset--font-size--headline) !important; max-width: 22ch; }
.journal-query .wp-block-post:first-child .wp-block-post-excerpt__excerpt { max-width: 56ch; }
.journal-sidebar > h2 { margin-top: 36px; }
.journal-search { border-radius: var(--wp--custom--rounded--card); }
.journal-search .wp-block-search__inside-wrapper { flex-wrap: wrap; gap: 12px; }
.journal-search .wp-block-search__input { flex-basis: 100%; }
.journal-search .wp-block-search__button { margin-left: 0; }
.journal-topics { list-style: none; padding-left: 0; }
.journal-topics > li { padding-block: 8px; border-bottom: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--muted); }
.journal-topics a { text-decoration: none; }
.journal-topics .current-cat > a { color: var(--wp--preset--color--accent); text-decoration: underline; }
.journal-picks { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--wp--preset--color--line); }
.journal-picks p { margin-top: 20px; }
.journal-query .wp-block-query-pagination { gap: 16px; border-top: 1px solid var(--wp--preset--color--line); padding-top: 28px; }
.journal-query .wp-block-query-pagination-numbers { display: flex; flex-wrap: wrap; gap: 8px; }
.journal-query .page-numbers { min-width: 44px; min-height: 44px; padding: 8px 14px; text-align: center; border-radius: 50%; }
.journal-query .page-numbers.current { background: var(--wp--preset--color--surface); }
.article-heading .reading-meta { margin-top: 32px; gap: 12px 24px; }
.article-featured-image { margin-block: 0 40px; }
.article-featured-image img { width: auto; max-width: 100%; max-height: 520px; margin-inline: auto; }
.article-reading .article-body { margin-block-start: 0; }
.article-body h2, .article-body h3 { margin-top: 48px; }
.article-body li + li { margin-top: 8px; }
.article-body blockquote { margin-inline: 0; padding: 12px 24px; border-left: 2px solid var(--wp--preset--color--accent); }
.article-reading .reading-navigation { margin-top: 64px; }
.article-post-links { gap: 24px; }
.article-post-links > div { padding: 24px; border-radius: 16px; background: var(--wp--preset--color--surface); }
.article-post-links .post-navigation-link__label { display: block; margin-bottom: 12px; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.article-post-links a { text-decoration: none; }
.article-reading .wp-block-comments { margin-top: 48px; }
.article-reading .comment-reply-title { font-size: var(--wp--preset--font-size--title); }
@media (min-width: 782px) and (max-width: 1100px) {
    .journal-layout { gap: 32px; }
    .journal-layout > .wp-block-column:first-child { flex-basis: 68% !important; }
    .journal-layout > .wp-block-column:last-child { flex-basis: 32% !important; }
    .journal-query .wp-block-post-template { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 781px) {
    .journal-intro { gap: 20px; }
    .journal-intro h1 { max-width: none; }
    .journal-layout { gap: 48px; }
    .journal-sidebar { position: static; }
    .journal-query .wp-block-post-template, .article-post-links { grid-template-columns: minmax(0, 1fr); }
    .journal-query .wp-block-post:first-child .wp-block-post-title { font-size: var(--wp--preset--font-size--title) !important; }
    .article-heading .reading-meta { margin-top: 24px; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
    .is-style-journal-entry { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
    .is-style-journal-entry:hover, .is-style-journal-entry:focus-within {
        transform: translateY(-4px);
        border-color: var(--wp--preset--color--muted);
        box-shadow: 0 10px 22px color-mix(in srgb, var(--wp--preset--color--night) 18%, transparent);
    }
}

/* === responsive === */
@media (max-width: 900px) {
	.header-row { row-gap: 22px; }
	.header-tools { column-gap: 18px; }
	.hero-columns { gap: 28px; }
}
@media (max-width: 781px) {
	.hero-title { font-size: clamp(2.75rem, 10vw, 3.5rem); }
	.hero-columns > .wp-block-column { flex-basis: 100% !important; }
	.hero-columns > .wp-block-column:last-child { padding-top: 20px; }
	.portrait-frame { max-width: 290px; }
	.projects-grid { row-gap: 28px; }
	.section-heading { flex-wrap: wrap; align-items: flex-start; }
	.section-heading > * { flex-basis: 100%; }
	.approach-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.experience-grid { row-gap: 30px; }
	.blog-list .wp-block-post > .wp-block-group { flex-wrap: wrap; gap: 12px; }
	.blog-list .wp-block-post-title { flex-basis: 100%; }
	.footer-row { row-gap: 18px; }
}
@media (max-width: 420px) {
	.header-tools { width: 100%; justify-content: space-between; }
	.approach-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Sensei-powered project walkthrough. Content and markers stay editable blocks. */
.snaps-walkthrough [hidden] { display: none !important; }
.snaps-contrast-controls .wp-element-button {
	background: transparent;
	color: var(--wp--preset--color--text);
	border: 1px solid var(--wp--preset--color--line);
	padding: 9px 16px;
	min-height: 44px;
}
.snaps-walkthrough .wp-element-button[aria-pressed="true"] {
	background: var(--wp--preset--color--button);
	color: var(--wp--preset--color--button-text);
	border-color: var(--wp--preset--color--button);
}
.snaps-hotspots {
	--marker-size: 44px;
	--marker-color: var(--wp--preset--color--button);
	counter-reset: snaps-marker;
}
.snaps-hotspots .sensei-lms-image-hotspots__image {
	aspect-ratio: 8 / 5;
	border-radius: 24px;
}
.snaps-hotspots-mobile { max-width: 320px; margin-inline: auto; }
.snaps-hotspots-mobile .sensei-lms-image-hotspots__image { aspect-ratio: 500 / 844; }
.snaps-hotspots .sensei-lms-image-hotspots__hotspot-marker {
	counter-increment: snaps-marker;
	color: var(--wp--preset--color--button-text);
	box-shadow: 0 0 0 2px var(--wp--preset--color--line);
	animation: none !important;
}
.snaps-hotspots .sensei-lms-image-hotspots__hotspot-marker::after {
	content: counter(snaps-marker);
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-family: var(--wp--preset--font-family--karla);
	font-size: var(--wp--preset--font-size--label);
	line-height: 1;
	pointer-events: none;
}
.snaps-hotspots .sensei-lms-image-hotspots__hotspot-marker.is-visited { transform: none; opacity: 1; }
.snaps-hotspots .sensei-lms-image-hotspots__hotspot-marker:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 5px;
}
.snaps-hotspots .sensei-lms-image-hotspots__hotspot-tooltip {
	--background: var(--wp--preset--color--surface);
	--border-color: var(--wp--preset--color--line);
	--width: min(30rem, 60%);
	border-radius: 24px;
	box-shadow: none;
	color: var(--wp--preset--color--text);
	font-size: var(--wp--preset--font-size--body);
	line-height: 1.65;
}
.snaps-hotspots .sensei-lms-image-hotspots__hotspot-tooltip > :not(.sensei-lms-image-hotspots__hotspot-tooltip-arrow) { margin: 22px; }
.snaps-hotspots-light .sensei-lms-image-hotspots__hotspot-tooltip.snaps-note-3 {
	top: 20%;
	left: 8%;
	right: auto;
}
.snaps-hotspots-light .snaps-note-3 .sensei-lms-image-hotspots__hotspot-tooltip-arrow { display: none; }
.snaps-hotspots-mobile .sensei-lms-image-hotspots__hotspot-tooltip {
	top: calc(100% + 24px) !important;
	left: 0 !important;
	right: auto !important;
	width: 100%;
}
.snaps-hotspots-mobile .sensei-lms-image-hotspots__hotspot-tooltip-arrow { display: none; }
.snaps-walkthrough[data-hover-side="left"] .snaps-hotspots-dark figure {
	cursor: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 height=%2748%27 viewBox=%270 0 48 48%27 width=%2748%27 transform=%27matrix%28-1,0,0,1,0,0%29%27%3E%3Cpath d=%27m3 27h32.532l-12.321 14.562 4.578 3.876 18.141-21.438-18.141-21.43801-4.578 3.876 12.321 14.56201h-32.532z%27 fill=%27white%27/%3E%3C/svg%3E") 24 24, w-resize;
}
.snaps-walkthrough[data-hover-side="right"] .snaps-hotspots-dark figure {
	cursor: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 height=%2748%27 viewBox=%270 0 48 48%27 width=%2748%27%3E%3Cpath d=%27m3 27h32.532l-12.321 14.562 4.578 3.876 18.141-21.438-18.141-21.43801-4.578 3.876 12.321 14.56201h-32.532z%27 fill=%27white%27/%3E%3C/svg%3E") 24 24, e-resize;
}
@media (max-width: 782px) {
	.snaps-hotspots .sensei-lms-image-hotspots__hotspot-tooltip {
		top: calc(100% + 24px) !important;
		left: 0 !important;
		right: auto !important;
		width: 100%;
	}
	.snaps-hotspots .sensei-lms-image-hotspots__hotspot-tooltip-arrow { display: none; }
}

/* Native Sensei flashcards, including the homepage project row. */
.is-style-project-flashcard .wp-block-cover {
    border: 1px solid var(--wp--preset--color--line);
    border-radius: var(--wp--custom--rounded--card);
    box-shadow: none;
    padding: 32px 40px;
    color: var(--wp--preset--color--text);
}
.is-style-project-flashcard .wp-block-cover__inner-container {
    max-width: 560px;
    margin-inline: auto;
    text-align: left;
    color: var(--wp--preset--color--text);
}
.is-style-project-flashcard .wp-block-cover__inner-container > * + * { margin-top: 20px; }
:root .is-style-project-flashcard .sensei-lms-flashcards__card-wrapper .sensei-lms-flip .sensei-lms-flip__button {
    position: relative;
    box-sizing: border-box;
    margin-top: 16px;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid var(--wp--preset--color--line);
    border-radius: 30px;
    background: var(--wp--preset--color--button);
    color: var(--wp--preset--color--button-text);
    font-family: var(--wp--preset--font-family--karla);
    font-size: var(--wp--preset--font-size--small);
    font-weight: 400;
    line-height: 1.5;
    white-space: nowrap;
}
:root .is-style-project-flashcard .sensei-lms-flashcards__card-wrapper .sensei-lms-flip .sensei-lms-flip__button a { color: inherit; text-decoration: none; }
:root .is-style-project-flashcard .sensei-lms-flashcards__card-wrapper .sensei-lms-flip .sensei-lms-flip__button:hover {
    background: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--background);
}
:root .is-style-project-flashcard .sensei-lms-flashcards__card-wrapper .sensei-lms-flip .sensei-lms-flip__button:focus-visible {
    outline: 3px solid var(--wp--preset--color--accent);
    outline-offset: 4px;
}
:root .is-style-project-flashcard .sensei-lms-flashcards__card-wrapper .sensei-lms-flip .sensei-lms-flip__button:focus-visible a { outline: none; }
@media (max-width: 781px) {
    .is-style-project-flashcard .wp-block-cover { padding: 28px 24px; }
}

.projects-grid .is-style-project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.projects-grid .is-style-project-card > .wp-block-group > h3 { margin-block: 12px 0; }
.projects-grid .is-style-project-flashcard,
.projects-grid .is-style-project-flashcard > .sensei-lms-flashcards__card-wrapper {
    display: flex;
    flex: 1;
    flex-direction: column;
    margin-block-start: 0;
}
:root .projects-grid .is-style-project-flashcard .sensei-lms-flip {
    display: grid;
    flex: 1;
    grid-template-columns: minmax(0, 1fr);
    container-type: inline-size;
}
.projects-grid .is-style-project-flashcard .wp-block-cover {
    border-width: 0;
    border-radius: 0;
    min-height: 0;
    padding: 20px 20px 72px;
}
:root .projects-grid .is-style-project-flashcard .sensei-lms-flip > .wp-block-cover {
    /* Both faces stay in layout, so turning the card cannot resize it. */
    position: relative !important;
    grid-area: 1 / 1;
    align-self: stretch;
}
:root .projects-grid .is-style-project-flashcard .sensei-lms-flip > .wp-block-cover:first-child { align-items: center; }
.projects-grid .is-style-project-flashcard .wp-block-cover__inner-container > * + * { margin-top: 20px; }
.projects-grid .is-style-project-flashcard .wp-block-image { margin: 0; }
.projects-grid .is-style-project-flashcard .wp-block-image img {
    display: block;
    width: 100%;
}
.projects-grid .is-style-project-flashcard p {
    font-size: var(--wp--preset--font-size--body);
    line-height: 1.5;
}
.projects-grid .is-style-project-flashcard p.has-small-font-size { font-size: var(--wp--preset--font-size--small); }
.projects-grid .is-style-project-flashcard .wp-block-image { cursor: pointer; }
:root .projects-grid .is-style-project-flashcard .sensei-lms-flip { text-align: right; }
:root .projects-grid .is-style-project-flashcard .sensei-lms-flashcards__card-wrapper .sensei-lms-flip .sensei-lms-flip__button {
    position: absolute;
    z-index: 2;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--wp--preset--color--background);
    color: var(--wp--preset--color--text);
    vertical-align: middle;
}
:root .projects-grid .is-style-project-flashcard .sensei-lms-flashcards__card-wrapper .sensei-lms-flip--flipped-front .sensei-lms-flip__button {
    position: absolute;
    z-index: 2;
    right: 12px;
    bottom: max(12px, calc(50% - 37.5cqw + 12px));
    margin: 0;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--wp--preset--color--night) 16%, transparent);
}
:root .projects-grid .is-style-project-flashcard .sensei-lms-flashcards__card-wrapper .sensei-lms-flip .sensei-lms-flip__button::before {
    content: "";
    flex: none;
    width: 18px;
    height: 18px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h10a5 5 0 0 1 0 10h-3M4 7l4-4M4 7l4 4' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
:root .projects-grid .is-style-project-flashcard .sensei-lms-flashcards__card-wrapper .sensei-lms-flip .sensei-lms-flip__button:hover {
    background: var(--wp--preset--color--surface);
    color: var(--wp--preset--color--text);
}
@media (min-width: 1001px) and (max-width: 1200px) {
    .projects-grid .is-style-project-card > .wp-block-group > h3 { min-block-size: 2lh; }
}
@media (min-width: 782px) and (max-width: 1000px) {
    .projects-grid { flex-direction: column; }
    .projects-grid > .wp-block-column { flex-basis: 100% !important; }
    .projects-grid .eyebrow { min-block-size: 0; }
}
