/*
Theme Name: Jojo Wildflower
Description: A folk-art wildflower garden for Jolene Frisby, future therapy dog. Deep teal, marigold and poppy, arched window frames, embroidered borders and a Road to Therapy Dog trail.
Version: 1.0.8
Requires PHP: 7.4
Text Domain: jojo-wildflower
*/

:root {
	--jf-deep: #0e3d44;
	--jf-teal: #145c66;
	--jf-teal-2: #1e7480;
	--jf-ink: #13282c;
	--jf-ink-2: #3f5559;
	--jf-paper: #fbf6ec;
	--jf-cream: #fffaf0;
	--jf-mist: #dcefeb;
	--jf-marigold: #ffb703;
	--jf-sun: #ffd23f;
	--jf-poppy: #f26b21;
	--jf-pink: #e2397e;
	--jf-sky: #02ccfe;
	--jf-leaf: #3a9a4c;
	--jf-stitch: 2px dashed rgb(14 61 68 / .55);
	--jf-font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
	--jf-font-body: "Karla", "Segoe UI", system-ui, sans-serif;
	--jf-font-hand: "Gochi Hand", "Segoe Print", cursive;
	--jf-gutter: clamp(16px, 4vw, 44px);
	--jf-shadow: 0 18px 40px -18px rgb(14 61 68 / .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
	margin: 0; color: var(--jf-ink); background: var(--jf-paper);
	font: 400 clamp(1.05rem, 1rem + .25vw, 1.18rem)/1.72 var(--jf-font-body);
	background-image:
		radial-gradient(circle at 8% 12%, rgb(2 204 254 / .06), transparent 30%),
		radial-gradient(circle at 92% 40%, rgb(226 57 126 / .05), transparent 28%);
}
img, video, iframe { max-width: 100%; }
img, video { height: auto; }
a { color: var(--jf-teal); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: rgb(242 107 33 / .6); }
a:hover { color: var(--jf-poppy); }
h1, h2, h3, h4 { font-family: var(--jf-font-display); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; margin: 1.2em 0 .45em; font-variation-settings: "SOFT" 100, "WONK" 1; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); }
h3 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); }
:focus-visible { outline: 3px solid var(--jf-poppy); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; }
.ico { display: inline-block; width: 1em; height: 1em; vertical-align: -.14em; }
.wrap { width: min(100%, 1240px); margin-inline: auto; padding-inline: var(--jf-gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--jf-deep); color: var(--jf-cream); padding: .5em 1em; border-radius: 99px; }
.skip-link:focus { top: 12px; color: var(--jf-cream); }

/* ---------- Header: the garden gate ---------- */
.gate { position: sticky; top: 0; z-index: 50; color: var(--jf-deep); }
.admin-bar .gate { top: 32px; }
.gate__bar {
	position: relative; display: flex; align-items: center; gap: 18px; min-height: 76px;
	padding: 6px var(--jf-gutter); background: var(--jf-deep);
	background-image: repeating-linear-gradient(135deg, rgb(255 255 255 / .025) 0 10px, transparent 10px 20px);
}
.gate__scallops { display: block; width: 100%; height: 14px; margin-top: -1px; color: var(--jf-deep); filter: drop-shadow(0 6px 4px rgb(14 61 68 / .18)); }
.gate__logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--jf-cream); text-decoration: none; font: 700 1.5rem/1 var(--jf-font-display); }
.gate__logo img { display: block; width: auto; height: 52px; }
.gate__logo:hover img { animation: sun-wiggle .8s ease-in-out; }
.gate__sun { width: 44px; height: 44px; }
.gate__nav { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.gate__menu, .gate__menu ul { list-style: none; margin: 0; padding: 0; }
.gate__menu { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.gate__menu > li { position: relative; display: flex; align-items: center; }
.gate__menu a { display: block; padding: .5em .8em; color: var(--jf-cream); font: 600 1.02rem/1.3 var(--jf-font-body); text-decoration: none; letter-spacing: .01em; }
.gate__menu > li > a { border-radius: 99px; transition: background-color .2s, color .2s; }
.gate__menu > li > a:hover, .gate__menu > li.current-menu-item > a, .gate__menu > li.current-menu-ancestor > a, .gate__menu > li.current_page_item > a {
	color: var(--jf-deep); background: var(--jf-sun);
}
.gate__sub-toggle { display: grid; place-items: center; width: 28px; height: 28px; margin-left: -6px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--jf-sun); cursor: pointer; }
.gate__sub-toggle svg { width: 12px; height: 8px; transition: transform .2s; }
.gate__sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.gate__menu .sub-menu {
	position: absolute; left: 50%; top: calc(100% + 8px); z-index: 5; min-width: 240px; padding: 14px 10px 12px;
	background: var(--jf-cream); border-radius: 22px; box-shadow: var(--jf-shadow); outline: var(--jf-stitch); outline-offset: -8px;
	opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .18s, transform .18s, visibility .18s;
}
.gate__menu .sub-menu::before { content: ""; position: absolute; left: 50%; top: -9px; width: 18px; height: 18px; background: var(--jf-cream); transform: translateX(-50%) rotate(45deg); border-radius: 3px; }
.gate__menu > li:hover > .sub-menu, .gate__menu > li:focus-within > .sub-menu, .gate__menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.gate__menu .sub-menu a { position: relative; padding: .42em .9em .42em 2em; color: var(--jf-ink); border-radius: 12px; }
.gate__menu .sub-menu a::before { content: ""; position: absolute; left: .8em; top: 50%; width: .62em; height: .62em; margin-top: -.31em; border-radius: 50%; background: var(--jf-marigold); box-shadow: 0 0 0 3px rgb(255 183 3 / .25); transition: transform .2s; }
.gate__menu .sub-menu a:hover, .gate__menu .sub-menu .current-menu-item > a { background: var(--jf-mist); color: var(--jf-deep); }
.gate__menu .sub-menu a:hover::before { transform: scale(1.35); background: var(--jf-pink); }
.gate__toggle { display: none; margin-left: auto; align-items: center; gap: .5em; padding: .45em 1em; border: 2px solid var(--jf-sun); border-radius: 99px; background: none; color: var(--jf-cream); font: 700 1rem var(--jf-font-body); cursor: pointer; }
.gate__toggle-icon { display: grid; gap: 4px; }
.gate__toggle-icon i { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.seek { display: flex; align-items: center; border-radius: 99px; background: rgb(255 250 240 / .12); border: 1.5px solid rgb(255 250 240 / .35); overflow: hidden; }
.seek input { width: 104px; min-width: 0; padding: .45em .2em .45em 1em; border: 0; background: none; color: inherit; font: 500 .95rem var(--jf-font-body); transition: width .25s; }
.gate .seek input { color: var(--jf-cream); }
.seek input::placeholder { color: inherit; opacity: .75; }
.seek input:focus { width: 160px; outline: 0; }
.seek:focus-within { border-color: var(--jf-sun); }
.seek button { display: grid; place-items: center; width: 40px; height: 36px; border: 0; background: none; color: inherit; cursor: pointer; }
.gate .seek button { color: var(--jf-sun); }

/* ---------- Meadow headers (pages, posts, archives) ---------- */
.meadow {
	position: relative; isolation: isolate; overflow: hidden; margin-top: -14px;
	padding: clamp(56px, 7vw, 92px) 0 clamp(120px, 12vw, 170px); color: var(--jf-cream);
	background: radial-gradient(ellipse at 70% 0%, var(--jf-teal-2), var(--jf-teal) 45%, var(--jf-deep));
}
.meadow::before { /* slow sunburst */
	content: ""; position: absolute; z-index: -1; left: 72%; top: 40%; width: 1400px; height: 1400px; margin: -700px 0 0 -700px;
	background: repeating-conic-gradient(from 0deg, rgb(255 210 63 / .07) 0 6deg, transparent 6deg 15deg);
	border-radius: 50%; animation: spin 140s linear infinite;
}
.meadow__grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
.meadow__title { margin: 0; color: var(--jf-cream); font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.4rem); font-weight: 800; text-wrap: balance; }
.meadow__kicker { margin: 0 0 .6em; font: 400 1.35rem/1.2 var(--jf-font-hand); color: var(--jf-sun); }
.meadow__kicker a { color: var(--jf-sun); }
.meadow a:not(.jf-pill) { color: var(--jf-sun); }
.meadow__intro { max-width: 60ch; margin-top: 1em; color: rgb(255 250 240 / .88); }
.meadow__photo { width: clamp(180px, 25vw, 320px); transform: rotate(3deg); }
.meadow__float { position: absolute; z-index: -1; width: 70px; height: 70px; opacity: .9; animation: drift 9s ease-in-out infinite; }
.meadow__float--1 { left: 4%; top: 22%; }
.meadow__float--2 { right: 30%; top: 12%; width: 46px; height: 46px; animation-delay: -4s; }
.lost { text-align: center; }
.lost__flower { display: block; width: 120px; height: 120px; margin: 0 auto 10px; animation: spin 30s linear infinite; }
.lost .seek { width: min(100%, 340px); margin: 20px auto; }
.lost .seek input { flex: 1; width: auto; color: var(--jf-cream); }

/* Garden border: flowers growing up out of the bottom edge */
.garden { position: absolute; left: 0; right: 0; bottom: -2px; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; height: clamp(70px, 9vw, 120px); padding: 0 1vw; pointer-events: none; }
.garden::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: var(--jf-paper); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.garden__stem { position: relative; z-index: 1; display: block; width: clamp(36px, 5vw, 70px); height: 100%; transform-origin: 50% 100%; }
.garden__stem svg { position: absolute; left: 0; bottom: 8px; width: 100%; height: 72%; }
.garden__stem:nth-child(3n) { height: 78%; }
.garden__stem:nth-child(4n+1) { height: 92%; }
.garden__stem:nth-child(odd) svg { transform: rotate(-7deg); }
.garden__stem:nth-child(even) svg { transform: rotate(6deg); }
.js .garden.is-in .garden__stem { animation: grow-up .8s cubic-bezier(.3,1.5,.6,1) calc(var(--i) * 45ms) both; }
.meadow .garden::after { background: var(--jf-paper); }

/* ---------- Photo frames ---------- */
.frame { position: relative; display: block; isolation: isolate; }
.frame img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.frame--arch img { aspect-ratio: 4 / 5; clip-path: url(#jf-clip-arch); }
.frame--bloom img { clip-path: url(#jf-clip-bloom); }
.frame--badge img { clip-path: url(#jf-clip-badge); }
.frame--leaf img { aspect-ratio: 4 / 5; clip-path: url(#jf-clip-leaf); }
.frame--heart img { clip-path: url(#jf-clip-heart); }
.frame::after { /* embroidered echo behind the shape */
	content: ""; position: absolute; inset: -9px; z-index: -1; border: 2.5px dashed var(--jf-sun); opacity: .9;
	border-radius: 50%;
}
.frame--arch::after, .frame--leaf::after { border-radius: 999px 999px 18px 18px; }

/* ---------- Content ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 320px); align-items: start; gap: clamp(28px, 4vw, 56px); padding-block: 26px clamp(70px, 8vw, 110px); }
.paper {
	position: relative; padding: clamp(26px, 4vw, 56px); background: var(--jf-cream);
	border-radius: 28px; box-shadow: var(--jf-shadow);
	outline: var(--jf-stitch); outline-offset: -12px;
}
.paper::before, .paper::after { /* corner flowers */
	content: ""; position: absolute; width: 56px; height: 56px; background: center / contain no-repeat;
}
.paper::before { left: -16px; top: -16px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23fffaf0' stroke='%230e3d44' stroke-width='3'%3E%3Cellipse cx='50' cy='22' rx='8' ry='20'/%3E%3Cellipse cx='50' cy='22' rx='8' ry='20' transform='rotate(45 50 50)'/%3E%3Cellipse cx='50' cy='22' rx='8' ry='20' transform='rotate(90 50 50)'/%3E%3Cellipse cx='50' cy='22' rx='8' ry='20' transform='rotate(135 50 50)'/%3E%3Cellipse cx='50' cy='22' rx='8' ry='20' transform='rotate(180 50 50)'/%3E%3Cellipse cx='50' cy='22' rx='8' ry='20' transform='rotate(225 50 50)'/%3E%3Cellipse cx='50' cy='22' rx='8' ry='20' transform='rotate(270 50 50)'/%3E%3Cellipse cx='50' cy='22' rx='8' ry='20' transform='rotate(315 50 50)'/%3E%3C/g%3E%3Ccircle cx='50' cy='50' r='13' fill='%23ffd23f' stroke='%230e3d44' stroke-width='3'/%3E%3C/svg%3E"); transform: rotate(-12deg); }
.paper::after { right: -12px; bottom: -14px; width: 46px; height: 46px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 44'%3E%3Cpath fill='%23e2397e' stroke='%230e3d44' stroke-width='3' d='M24 41C10 31 3 23 3 14 3 7 8 3 14 3c4 0 8 2 10 6 2-4 6-6 10-6 6 0 11 4 11 11 0 9-7 17-21 27Z'/%3E%3C/svg%3E"); transform: rotate(10deg); }
.paper--small { padding: 22px 30px; margin-bottom: 26px; }
.paper--small::before, .paper--small::after { display: none; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content h2 { position: relative; padding-left: 1.3em; color: var(--jf-deep); }
.entry-content h2::before { content: ""; position: absolute; left: 0; top: .32em; width: .9em; height: .9em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23ffb703' stroke='%230e3d44' stroke-width='5'%3E%3Cpath d='M50 6C58 20 58 30 50 38 42 30 42 20 50 6Z'/%3E%3Cpath d='M50 6C58 20 58 30 50 38 42 30 42 20 50 6Z' transform='rotate(60 50 50)'/%3E%3Cpath d='M50 6C58 20 58 30 50 38 42 30 42 20 50 6Z' transform='rotate(120 50 50)'/%3E%3Cpath d='M50 6C58 20 58 30 50 38 42 30 42 20 50 6Z' transform='rotate(180 50 50)'/%3E%3Cpath d='M50 6C58 20 58 30 50 38 42 30 42 20 50 6Z' transform='rotate(240 50 50)'/%3E%3Cpath d='M50 6C58 20 58 30 50 38 42 30 42 20 50 6Z' transform='rotate(300 50 50)'/%3E%3C/g%3E%3Ccircle cx='50' cy='50' r='14' fill='%233d2314'/%3E%3C/svg%3E") center / contain no-repeat; }
.entry-content blockquote { margin: 1.4em 0; padding: 1em 1.4em; background: var(--jf-mist); border-radius: 0 22px 22px 22px; font-family: var(--jf-font-display); font-style: italic; }
.entry-content ul li::marker { color: var(--jf-poppy); }
.wp-caption, .entry-content figure { max-width: 100%; margin: 1.6em auto; }
.wp-caption img, .entry-content p > img, .entry-content > img {
	display: block; margin-inline: auto; padding: 10px 10px 12px; background: #fff; border-radius: 18px;
	box-shadow: 0 1px 0 rgb(14 61 68 / .08), var(--jf-shadow); transform: rotate(-.8deg);
}
.wp-caption .wp-caption-text, .entry-content figcaption { margin-top: .7em; text-align: center; font: 400 1.3rem/1.3 var(--jf-font-hand); color: var(--jf-teal); }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { display: block; margin-inline: auto; }
.taglist a { display: inline-block; margin: 0 4px 6px 0; padding: 0 .8em; background: var(--jf-mist); border-radius: 99px; text-decoration: none; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 2em; }
.post-navigation a { display: block; padding: 14px 18px; border: var(--jf-stitch); border-radius: 18px; text-decoration: none; font-weight: 700; }
.post-navigation .nav-next { text-align: right; }
.nav-kicker { display: block; font: 400 1.1rem var(--jf-font-hand); color: var(--jf-poppy); }

/* ---------- Buttons ---------- */
.jf-pill, .comments input[type="submit"], .gwolle-gb input[type="button"], .gwolle-gb input[type="submit"], .contact-form button[type="submit"], .contact-form input[type="submit"], .wp-block-button__link {
	display: inline-flex; align-items: center; gap: .4em; padding: .7em 1.5em; border: 0; border-radius: 99px;
	background: var(--jf-poppy); color: #fff; font: 700 1.02rem/1.2 var(--jf-font-body); text-decoration: none; cursor: pointer;
	box-shadow: 0 0 0 3px var(--jf-cream), 0 0 0 5px var(--jf-poppy), 0 10px 18px -8px rgb(242 107 33 / .7);
	transition: transform .2s cubic-bezier(.3,1.6,.6,1), background-color .2s;
}
.jf-pill:hover, .comments input[type="submit"]:hover, .gwolle-gb input[type="button"]:hover, .gwolle-gb input[type="submit"]:hover, .contact-form button[type="submit"]:hover { background: var(--jf-pink); color: #fff; transform: translateY(-2px) rotate(-1deg); box-shadow: 0 0 0 3px var(--jf-cream), 0 0 0 5px var(--jf-pink), 0 14px 22px -8px rgb(226 57 126 / .7); }

/* ---------- Side widgets: the flower bed ---------- */
.bed { display: grid; gap: 30px; }
.bed .widget { position: relative; padding: 26px 22px 22px; background: #fff; border-radius: 24px; box-shadow: var(--jf-shadow); }
.bed .widget::before { content: ""; position: absolute; inset: 8px; border: var(--jf-stitch); border-radius: 18px; pointer-events: none; }
.widget-title { margin: 0 0 14px; text-align: center; font-size: 1.35rem; }
.widget-title span { display: inline-block; position: relative; padding: .2em 1.2em; background: var(--jf-deep); color: var(--jf-cream); border-radius: 6px; }
.widget-title span::before, .widget-title span::after { /* ribbon tails */
	content: ""; position: absolute; top: 50%; width: 18px; height: 70%; transform: translateY(-30%); background: var(--jf-teal); z-index: -1;
}
.widget-title span::before { left: -12px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 40% 50%); }
.widget-title span::after { right: -12px; clip-path: polygon(0 0, 100% 0, 60% 50%, 100% 100%, 0 100%); }
.bed .widget img { border-radius: 16px; }
.bed .widget_media_image { text-align: center; }
.jf-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.jf-recent__item a { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; color: var(--jf-ink); text-decoration: none; }
.jf-recent__pic img { display: block; width: 64px; height: 64px; object-fit: cover; clip-path: url(#jf-clip-bloom); border-radius: 0 !important; }
.jf-recent__title { display: block; font: 700 1.02rem/1.25 var(--jf-font-display); }
.jf-recent__item a:hover .jf-recent__title { color: var(--jf-poppy); }
.jf-recent__date, .jf-recent__cat { display: inline-block; margin-right: 8px; font-size: .85rem; color: var(--jf-ink-2); }
.jf-recent__cat { color: var(--jf-teal); font-weight: 700; }

/* Page List plugin lists (About, Legacy, More to Explore) */
.page-list-ext { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 26px; margin: 1.5em 0; padding: 0; }
.page-list-ext .page-list-ext-item { position: relative; margin: 0; padding: 18px; text-align: center; background: #fff; border-radius: 160px 160px 22px 22px; box-shadow: var(--jf-shadow); transition: transform .3s cubic-bezier(.3,1.5,.6,1); }
.page-list-ext .page-list-ext-item:hover { transform: translateY(-6px) rotate(-1deg); }
.page-list-ext .page-list-ext-image { float: none !important; display: block; margin: 0 auto 12px !important; }
.page-list-ext .page-list-ext-image img { width: 100% !important; height: auto !important; aspect-ratio: 1; object-fit: cover; border-radius: 999px 999px 14px 14px; }
.page-list-ext h3 { margin: .2em 0 .3em; font-size: 1.2rem; }
.page-list-ext h3 a { color: var(--jf-deep); text-decoration: none; }
.page-list-ext .page-list-ext-item-content { font-size: .95rem; color: var(--jf-ink-2); }
.bed .page-list-ext { grid-template-columns: 1fr; gap: 14px; }
.bed .page-list-ext .page-list-ext-item { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; padding: 8px; text-align: left; border-radius: 16px; box-shadow: none; background: var(--jf-paper); }
.bed .page-list-ext .page-list-ext-image { margin: 0 !important; }
.bed .page-list-ext .page-list-ext-image img { border-radius: 50%; }
.bed .page-list-ext h3 { margin: 0; font-size: 1rem; }

/* ---------- Envira galleries: arched windows ---------- */
.envira-gallery-wrap { margin-block: 1.4em; }
.envira-gallery-public .envira-gallery-item-inner { transition: transform .3s cubic-bezier(.3,1.5,.6,1); }
.envira-gallery-public .envira-gallery-item-inner:hover { transform: translateY(-5px); z-index: 2; }
.envira-gallery-public .envira-gallery-image { border-radius: 999px 999px 14px 14px; background: var(--jf-mist); }
.envira-gallery-public .envira-gallery-item:nth-child(3n+2) .envira-gallery-image { border-radius: 14px 14px 999px 999px; }
.envira-gallery-public .envira-gallery-item:nth-child(7n+4) .envira-gallery-image { clip-path: url(#jf-clip-bloom); border-radius: 0; }
.bed .envira-gallery-public .envira-gallery-image { border-radius: 999px 999px 16px 16px !important; clip-path: none !important; }

/* ---------- Videos ---------- */
.entry-content .jetpack-videopress-player, .entry-content .wp-block-embed, .entry-content .wp-video, .entry-content iframe[src*="videopress"] { border-radius: 22px; overflow: hidden; box-shadow: var(--jf-shadow); }

/* ---------- Forms: contact, guestbook, comments ---------- */
.contact-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), .contact-form textarea, .comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea,
.gwolle-gb input[type="text"], .gwolle-gb input[type="email"], .gwolle-gb input[type="url"], .gwolle-gb textarea {
	width: 100%; max-width: 100%; padding: .7em 1em; background: #fff; color: var(--jf-ink); border: 2px solid rgb(14 61 68 / .25); border-radius: 16px; font: 400 1rem/1.5 var(--jf-font-body);
}
.contact-form input:focus, .contact-form textarea:focus, .comment-form input:focus, .comment-form textarea:focus, .gwolle-gb input:focus, .gwolle-gb textarea:focus { outline: 0; border-color: var(--jf-teal); box-shadow: 0 0 0 4px rgb(2 204 254 / .25); }
.contact-form label, .comment-form label, .gwolle-gb .label label { font-weight: 700; color: var(--jf-deep); }
.gwolle-gb { font-size: 1rem; }
.gwolle-gb .gb-entry {
	position: relative; margin: 30px 0 !important; padding: 20px 24px 20px 92px !important; min-height: 92px;
	background: #fff !important; border: 0 !important; border-radius: 22px !important; box-shadow: var(--jf-shadow);
}
.gwolle-gb .gb-entry::before { /* a daisy pinned to each note */
	content: ""; position: absolute; left: 18px; top: 18px; width: 56px; height: 56px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23e2397e' stroke='%230e3d44' stroke-width='3'%3E%3Cellipse cx='50' cy='26' rx='14' ry='22'/%3E%3Cellipse cx='50' cy='26' rx='14' ry='22' transform='rotate(60 50 50)'/%3E%3Cellipse cx='50' cy='26' rx='14' ry='22' transform='rotate(120 50 50)'/%3E%3Cellipse cx='50' cy='26' rx='14' ry='22' transform='rotate(180 50 50)'/%3E%3Cellipse cx='50' cy='26' rx='14' ry='22' transform='rotate(240 50 50)'/%3E%3Cellipse cx='50' cy='26' rx='14' ry='22' transform='rotate(300 50 50)'/%3E%3C/g%3E%3Ccircle cx='50' cy='50' r='11' fill='%23ffd23f' stroke='%230e3d44' stroke-width='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gwolle-gb .gb-entry:nth-of-type(3n+2)::before { filter: hue-rotate(160deg) saturate(1.3); }
.gwolle-gb .gb-entry:nth-of-type(3n)::before { filter: hue-rotate(50deg) saturate(1.4); }
.gwolle-gb .gb-entry::after { content: ""; position: absolute; inset: 8px; border: var(--jf-stitch); border-radius: 16px; pointer-events: none; }
.gwolle-gb .gb-author-info { font-family: var(--jf-font-display); font-weight: 600; color: var(--jf-deep); }
.gwolle-gb .gb-author-avatar { display: none; }
.gwolle-gb form.gwolle-gb-write { padding: 24px; background: var(--jf-mist); border-radius: 24px; }
.gwolle-gb input[type="button"], .gwolle-gb input[type="submit"] { margin: 8px 0; }

/* Comments */
.comments { max-width: 860px; padding-bottom: 90px; }
.comments__list { margin: 0 0 30px; padding: 0; list-style: none; }
.note { position: relative; margin: 18px 0; padding: 20px 24px; background: #fff; border-radius: 22px; box-shadow: var(--jf-shadow); }
.note::after { content: ""; position: absolute; inset: 8px; border: var(--jf-stitch); border-radius: 16px; pointer-events: none; }
.note__who { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.note__who img { border-radius: 50%; }
.note__who time { font-size: .86rem; color: var(--jf-ink-2); }

/* ---------- The Road to Therapy Dog trail ---------- */
.trail { position: relative; list-style: none; margin: 10px 0 0; padding: 20px 0 10px; display: grid; gap: clamp(26px, 4vw, 44px); }
.trail::before { /* the winding stitched path */
	content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 0; border-left: 3px dashed var(--jf-marigold);
}
.trail__stop { position: relative; display: flex; }
.trail__stop--left { justify-content: flex-start; padding-right: 50%; }
.trail__stop--right { justify-content: flex-end; padding-left: 50%; }
.trail__link { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; width: calc(100% - 40px); padding: 14px 18px 14px 14px; background: #fff; border-radius: 999px 26px 26px 999px; color: var(--jf-ink); text-decoration: none; box-shadow: var(--jf-shadow); transition: transform .3s cubic-bezier(.3,1.5,.6,1); }
.trail__stop--right .trail__link { grid-template-columns: 1fr 112px; border-radius: 26px 999px 999px 26px; padding: 14px 14px 14px 18px; text-align: right; }
.trail__stop--right .trail__badge { order: 2; }
.trail__link:hover { transform: translateY(-4px) scale(1.015); color: var(--jf-ink); }
.trail__link::after { /* pin on the path */
	content: ""; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; background: var(--jf-sun); border: 4px solid var(--jf-paper); border-radius: 50%; box-shadow: 0 0 0 3px var(--jf-marigold);
}
.trail__stop--left .trail__link::after { right: -51px; }
.trail__stop--right .trail__link::after { left: -51px; }
.trail__badge { position: relative; display: block; width: 112px; height: 112px; }
/* Same square, scalloped badge everywhere — also inside Elementor pages, whose ".elementor img" rule would otherwise reset the height. */
.trail .trail__badge img, .elementor .trail .trail__badge img {
	display: block; width: 100% !important; height: 100% !important; max-width: none; aspect-ratio: 1;
	object-fit: cover; object-position: center; border-radius: 0; clip-path: url(#jf-clip-badge);
}
.trail__badge-art { width: 100%; height: 100%; }
.trail__date { display: block; font: 400 1.15rem/1.2 var(--jf-font-hand); color: var(--jf-poppy); }
.trail__title { display: block; font: 700 clamp(1.15rem, 1rem + .5vw, 1.45rem)/1.18 var(--jf-font-display); color: var(--jf-deep); }
.trail__excerpt { display: block; margin-top: .35em; font-size: .95rem; color: var(--jf-ink-2); line-height: 1.5; }
.trail__flower { position: absolute; top: -18px; width: 40px; height: 40px; transition: transform .6s; }
.trail__stop--left .trail__flower { right: 26px; }
.trail__stop--right .trail__flower { left: 26px; }
.trail__link:hover .trail__flower { transform: rotate(120deg) scale(1.15); }
.trail__more { margin: 34px 0 0; text-align: center; }
.js .trail__stop.is-in { animation: rise-in .7s cubic-bezier(.3,1.4,.6,1) both; }

/* ---------- Footer: night garden ---------- */
.night { position: relative; margin-top: clamp(80px, 9vw, 130px); padding: 60px 0 30px; background: var(--jf-deep); color: rgb(255 250 240 / .9); isolation: isolate; }
.night::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
	radial-gradient(2px 2px at 10% 30%, rgb(255 210 63 / .7), transparent 60%),
	radial-gradient(2px 2px at 30% 70%, rgb(255 210 63 / .5), transparent 60%),
	radial-gradient(1.5px 1.5px at 55% 25%, rgb(255 250 240 / .6), transparent 60%),
	radial-gradient(2px 2px at 78% 60%, rgb(255 210 63 / .6), transparent 60%),
	radial-gradient(1.5px 1.5px at 90% 20%, rgb(255 250 240 / .5), transparent 60%); }
.night__garden { top: auto; bottom: 100%; margin-bottom: -2px; height: clamp(60px, 8vw, 110px); }
.night__garden::after { background: var(--jf-deep); }
.night__inner { width: min(100%, 1240px); margin-inline: auto; padding: 0 var(--jf-gutter); }
.night__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(26px, 4vw, 60px); align-items: start; }
.night .widget + .widget { margin-top: 26px; }
.night .widget-title { text-align: left; }
.night .widget-title span { background: var(--jf-marigold); color: var(--jf-deep); }
.night .widget-title span::before, .night .widget-title span::after { display: none; }
.night a { color: var(--jf-sun); text-decoration-color: rgb(255 210 63 / .4); }
.night a:hover { color: #fff; }
.night ul { margin: 0; padding: 0; list-style: none; }
.night li { position: relative; padding: .22em 0 .22em 1.4em; }
.night li::before { content: ""; position: absolute; left: 0; top: .78em; width: .7em; height: .7em; border-radius: 50%; background: var(--jf-pink); box-shadow: 0 0 0 3px rgb(226 57 126 / .25); }
.night img { border-radius: 18px; }
.night .widget_text img { border-radius: 50%; border: 4px solid var(--jf-sun); }
.night__friends { margin-top: 40px; padding-top: 26px; border-top: 2px dashed rgb(255 250 240 / .2); }
.night__friends-list { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 10px; }
.night__friends-list li { padding: 0; }
.night__friends-list li::before { display: none; }
.night__friends-list a { display: inline-block; padding: .35em 1em; border: 1.5px solid rgb(255 210 63 / .5); border-radius: 99px; text-decoration: none; }
.night__friends-list a:hover { background: var(--jf-sun); color: var(--jf-deep); }
.night__credit { margin: 30px 0 0; text-align: center; font-size: .92rem; opacity: .85; }
.night__sun { width: 1.4em; height: 1.4em; animation: spin 24s linear infinite; }

.to-top { position: fixed; z-index: 40; right: 18px; bottom: 18px; width: 60px; height: 60px; padding: 0; border: 0; background: none; cursor: pointer; font-size: 60px; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .25s, transform .3s, visibility .25s; }
.to-top.is-out { opacity: 1; visibility: visible; transform: none; }
.to-top:hover .ico { animation: spin 2s linear infinite; }
.to-top span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes grow-up { from { opacity: 0; transform: scaleY(.2); } to { opacity: 1; transform: none; } }
@keyframes drift { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -12px; rotate: 18deg; } }
@keyframes sun-wiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -6deg; } 75% { rotate: 6deg; } }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
	.gate__toggle { display: inline-flex; }
	.gate__nav {
		display: none; position: absolute; left: var(--jf-gutter); right: var(--jf-gutter); top: calc(100% + 14px);
		flex-direction: column; align-items: stretch; max-height: calc(100vh - 120px); overflow: auto; padding: 16px;
		background: var(--jf-deep); border-radius: 26px; box-shadow: var(--jf-shadow);
	}
	.js .gate__nav.is-open { display: flex; }
	html:not(.js) .gate__nav { display: flex; position: static; }
	.gate__menu { flex-direction: column; }
	.gate__menu > li { flex-wrap: wrap; }
	.gate__menu > li > a { flex: 1; font-size: 1.12rem; }
	.gate__sub-toggle { width: 40px; height: 40px; }
	.gate__menu .sub-menu { position: static; display: none; width: 100%; margin: 4px 0 8px; opacity: 1; visibility: visible; transform: none; }
	.gate__menu .sub-menu::before { display: none; }
	.gate__menu > li.is-open > .sub-menu { display: block; transform: none; }
	.gate__menu > li:hover > .sub-menu { transform: none; }
	.gate .seek input, .gate .seek input:focus { flex: 1; width: auto; }
}
@media (max-width: 900px) {
	.layout { grid-template-columns: minmax(0, 1fr); }
	.bed { max-width: 520px; width: 100%; margin-inline: auto; }
	.meadow__grid { grid-template-columns: minmax(0, 1fr); }
	.meadow__photo { width: 220px; justify-self: center; }
	.trail::before { left: 26px; }
	.trail__stop--left, .trail__stop--right { padding: 0 0 0 54px; justify-content: flex-start; }
	.trail__stop--right .trail__link { grid-template-columns: 90px 1fr; border-radius: 999px 26px 26px 999px; text-align: left; padding: 12px 16px 12px 12px; }
	.trail__stop--right .trail__badge { order: 0; }
	.trail__link { width: 100%; grid-template-columns: 90px 1fr; }
	.trail__badge { width: 90px; height: 90px; }
	.trail__stop--left .trail__link::after, .trail__stop--right .trail__link::after { left: -39px; right: auto; }
	.trail__stop--right .trail__flower { left: auto; right: 26px; }
}
@media (max-width: 600px) {
	.gate__logo img { height: 40px; }
	.gate__bar { min-height: 64px; }
	.paper { border-radius: 22px; }
	.trail__link { grid-template-columns: 72px 1fr !important; gap: 12px; }
	.trail__badge { width: 72px; height: 72px; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.gwolle-gb .gb-entry { padding: 20px 20px 20px 74px !important; }
	.gwolle-gb .gb-entry::before { width: 42px; height: 42px; left: 16px; }
}
@media (max-width: 782px) { .admin-bar .gate { top: 46px; } }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Side list (theme pages and posts): same two-column item layout */
.bed .page-list-ext .page-list-ext-item { grid-template-columns: 54px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: start; }
.bed .page-list-ext .page-list-ext-image { grid-column: 1; grid-row: 1 / span 3; align-self: center; }
.bed .page-list-ext .page-list-ext-item > :not(.page-list-ext-image) { grid-column: 2; min-width: 0; }
.bed .page-list-ext .page-list-ext-item-content { margin: 0; font-size: .85rem; line-height: 1.4; color: var(--jf-ink-2); }

/* Instagram feed (SociableKit) in narrow places: stack the profile header instead of squeezing it */
:is(.bed, .jf-bed) .sk-instagram-feed .instagram-user-root-container {
	flex-direction: column !important; align-items: center !important; text-align: center; gap: 12px;
}
:is(.bed, .jf-bed) .sk-instagram-feed .instagram-user-root-container > * { width: auto !important; max-width: 100% !important; margin-inline: auto !important; float: none !important; }
:is(.bed, .jf-bed) .sk-instagram-feed .sk-ig-profile-info,
:is(.bed, .jf-bed) .sk-instagram-feed .sk-ig-profile-info-container { width: 100% !important; justify-content: center !important; text-align: center; }
:is(.bed, .jf-bed) .sk-instagram-feed .sk-ig-profile-info-container { flex-direction: column; align-items: center; }
:is(.bed, .jf-bed) .sk-instagram-feed a.bio-website {
	display: inline-block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	word-break: normal; overflow-wrap: normal; vertical-align: bottom;
}
@media (max-width: 480px) {
	.sk-instagram-feed .instagram-user-root-container { flex-direction: column !important; align-items: center !important; text-align: center; }
	.sk-instagram-feed a.bio-website { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
}
