/*
Theme Name: Kadence Child — PinMyIdea
Theme URI: https://pinmyidea.com
Description: Image-first idea gallery theme for PinMyIdea (pinmyidea.com). Block (FSE) child theme of Kadence, native Gutenberg blocks only.
Template: kadence
Version: 3.3.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: kadence-child
*/

:root {
	--ink: var(--wp--preset--color--foreground);
	--muted: var(--wp--preset--color--foreground-muted);
	--rose: var(--wp--preset--color--primary);
	--line: var(--wp--preset--color--border);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--lift: 0 22px 44px -26px rgb(15 23 42 / .45);
	--wash: linear-gradient(160deg, #FFE4EC 0%, #EDE9FE 55%, #FEF3C7 100%);
}
::selection { background: #FFE4EC; color: var(--ink); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* ---------- Type ---------- */
:where(h1, h2, h3, h4, .wp-block-post-title, .wp-block-query-title) em { font-style: italic; font-weight: 500; color: var(--rose); }
.display { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.4rem) !important; line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
.lede { color: var(--muted); max-width: 36rem; text-wrap: pretty; }
.eyebrow { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--wp--preset--color--primary-deep); }
.section-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-head h2 { margin: 0; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.75rem); }
.more-link a { color: var(--ink); font-weight: 600; font-size: .9rem; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.more-link a:hover { color: var(--rose); text-decoration: none; }

/* ---------- Buttons, chips, pills ---------- */
.wp-block-button__link.wp-element-button { border-radius: 999px; padding: .7rem 1.4rem; font-weight: 700; transition: transform .2s var(--ease), background-color .2s; }
.wp-block-button__link.wp-element-button:hover { transform: translateY(-1px); text-decoration: none; }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.is-style-outline .wp-block-button__link:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.chip-row { gap: .5rem; }
.chip-row .wp-block-button__link { background: #fff; color: var(--ink); border: 1px solid var(--line); padding: .45rem 1rem; font-size: .85rem; font-weight: 600; }
.chip-row .wp-block-button__link:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill, .brand-badge { display: inline-block; margin: 0; padding: .3em .85em; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--wp--preset--color--ice); color: var(--ink); }
.pill:empty { display: none; }
.pill--rose, .brand-badge { background: var(--rose); color: #fff; }

/* ---------- Header ---------- */
header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
header.wp-block-template-part > * { margin-block: 0; }
.admin-bar header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
.site-header-bar { background: rgb(250 251 253 / .8); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); border-bottom: 1px solid rgb(226 232 240 / .7); }
.site-header-bar .wp-block-site-title { font-size: 1.45rem; white-space: nowrap; }
.site-header-bar .wp-element-button { white-space: nowrap; padding: .55rem 1.1rem; font-size: .82rem; }
.main-nav a { position: relative; }
.main-nav .wp-block-navigation-item__content::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--rose); transition: right .25s var(--ease); }
.main-nav .wp-block-navigation-item__content:hover::after { right: 0; }
.site-header-bar .wp-block-search__button { background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; }
@media (max-width: 899px) { .main-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; } .main-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; } }
@media (max-width: 600px) { .site-header-bar .wp-block-buttons, .site-header-bar .brand-badge { display: none; } }

/* ---------- Home hero ---------- */
.home-hero { background: radial-gradient(60rem 30rem at 85% 10%, #FFE4EC 0%, transparent 60%), radial-gradient(40rem 26rem at 0% 100%, #EDE9FE 0%, transparent 60%); }
.hero-copy > * + * { margin-top: 1.25rem; }
.hero-search { max-width: 34rem; }
.hero-search .wp-block-search__inside-wrapper { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .3rem; box-shadow: var(--lift); }
.hero-search .wp-block-search__input { border: 0; background: transparent; padding: .6rem 1rem; }
.hero-search .wp-block-search__button { border-radius: 999px; margin: 0; background: var(--rose); color: #fff; border: 0; }
.hero-collage .wp-block-post-template { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.6rem, 1.5vw, 1rem); margin: 0; padding: 0; list-style: none; }
.hero-collage li:nth-child(2) { margin-top: 3.5rem; }
.hero-collage li:nth-child(3) { margin-top: 1.5rem; }
.hero-collage .wp-block-post-featured-image { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--lift); background: var(--wash); }
.hero-collage .wp-block-post-featured-image:not(:has(img)) { aspect-ratio: 2 / 3; }
.hero-collage img { transition: transform .8s var(--ease); }
.hero-collage li:hover img { transform: scale(1.05); }

/* ---------- Category tiles ---------- */
.cat-tile { position: relative; min-height: 13rem; padding: 1.6rem; border-radius: 24px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .35s var(--ease), box-shadow .35s; }
.cat-tile:hover { transform: translateY(-6px); box-shadow: var(--lift); }
.cat-tile h3 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.1; }
.cat-tile h3 a { color: var(--ink); text-decoration: none; }
.cat-tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tile-cta { margin: 0; font-size: .85rem; font-weight: 600; transition: transform .3s var(--ease); }
.cat-tile:hover .tile-cta { transform: translateX(6px); }
.tile--rose { background: #FFE4EC; } .tile--violet { background: #EDE9FE; } .tile--amber { background: #FEF3C7; } .tile--ice { background: #E0F2FE; }

/* ---------- Masonry pin board ---------- */
.masonry { display: block; columns: 3 15rem; column-gap: clamp(1rem, 2.4vw, 1.75rem); margin: 0; padding: 0; list-style: none; }
.masonry--4 { columns: 4 12.5rem; }
.masonry > li { break-inside: avoid; margin: 0 0 clamp(1.5rem, 3vw, 2.25rem) !important; }
.pin-card { transition: transform .35s var(--ease); }
.pin-card:hover { transform: translateY(-5px); }
.pin-card__media { position: relative; border-radius: 20px; overflow: hidden; background: var(--wash); }
.pin-card__media:not(:has(img)) { aspect-ratio: 3 / 4; }
.pin-card__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0 var(--rose); transition: box-shadow .3s var(--ease); pointer-events: none; }
.pin-card:hover .pin-card__media::after { box-shadow: inset 0 0 0 3px var(--rose), 0 24px 40px -24px rgb(255 0 85 / .55); }
.pin-card .wp-block-post-featured-image { margin: 0; }
.pin-card .wp-block-post-featured-image img { display: block; width: 100%; height: auto; transition: transform .7s var(--ease); }
.pin-card:hover .wp-block-post-featured-image img { transform: scale(1.04); }
.pin-card .taxonomy-category { margin-top: .85rem; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.pin-card .taxonomy-category a { color: var(--wp--preset--color--primary-deep); }
.pin-card .wp-block-post-title { margin: .2rem 0 0; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.25; }
.pin-card .wp-block-post-title a:hover { color: var(--rose); text-decoration: none; }
.idea-count { position: absolute; left: .75rem; top: .75rem; z-index: 2; margin: 0; padding: .3rem .7rem; border-radius: 999px; background: rgb(255 255 255 / .9); backdrop-filter: blur(8px); font-size: .7rem; font-weight: 700; color: var(--ink); }
.idea-count:empty { display: none; }
.save-pin-badge { position: absolute; top: .75rem; right: .75rem; z-index: 2; margin: 0; opacity: 0; transform: translateY(-6px); transition: .25s var(--ease); }
.save-pin-badge .wp-block-button__link { padding: .45rem .9rem; font-size: .75rem; box-shadow: 0 8px 18px -6px rgb(255 0 85 / .6); }
.pin-card:hover .save-pin-badge, .pin-card:focus-within .save-pin-badge { opacity: 1; transform: none; }
.empty-note { color: var(--muted); font-style: italic; }

/* ---------- Archive hero ---------- */
.archive-hero { text-align: center; background: radial-gradient(50rem 22rem at 50% 0%, #FFE4EC 0%, transparent 70%); }
.archive-hero > * + * { margin-top: 1rem; }
.archive-hero .wp-block-term-description { color: var(--muted); max-width: 38rem; margin-inline: auto; }
.crumbs { font-size: .8rem; color: var(--muted); }
.crumbs :is(p, .wp-block-post-terms) { margin: 0; }
.crumbs a { color: inherit; }

/* ---------- Single: hero ---------- */
.byline { align-items: center; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.byline-text { font-size: .85rem; line-height: 1.35; }
.byline-text .wp-block-post-author-name { font-weight: 700; }
.wp-block-avatar img { border-radius: 50%; }

/* ---------- Single: idea gallery ---------- */
.post-body .wp-block-post-content > :is(h2, h3):not(.idea__title) { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.post-body .wp-block-post-content > p:first-child { font-size: var(--wp--preset--font-size--lg); line-height: 1.6; }
.idea-index { margin-block: 2rem 2.75rem !important; }
.idea-index__label { margin: 0 0 .75rem; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.idea-index ol { display: flex; gap: .85rem; margin: 0; padding: 0 0 .75rem; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.idea-index li { flex: 0 0 7.25rem; scroll-snap-align: start; }
.idea-index a { display: block; color: var(--ink); text-decoration: none; }
.idea-index__thumb { display: block; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--wash); }
.idea-index__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.idea-index a:hover img { transform: scale(1.07); }
.idea-index__num { display: block; margin-top: .45rem; font: italic 600 1rem/1 var(--wp--preset--font-family--heading); color: var(--rose); }
.idea-index__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: .2rem; font-size: .78rem; line-height: 1.3; }
.idea { margin-block: clamp(3rem, 7vw, 5.5rem) !important; scroll-margin-top: 6rem; }
.idea > .wp-block-columns { gap: clamp(1.5rem, 4.5vw, 4rem); margin: 0; }
.idea--flip > .wp-block-columns { flex-direction: row-reverse; }
.idea__media .wp-block-image { margin: 0; }
.idea__media img { width: 100%; border-radius: 24px; box-shadow: var(--lift); }
.idea__num { margin: 0; font: italic 600 clamp(4rem, 2.5rem + 6vw, 7.5rem)/.85 var(--wp--preset--font-family--heading); color: transparent; -webkit-text-stroke: 1.5px var(--rose); letter-spacing: -.02em; }
.idea__title { margin: .5rem 0 .9rem !important; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem) !important; }
.idea__text p:not(.idea__num) { color: #334155; }
.idea__try { padding: .85rem 1.1rem; border-radius: 14px; background: var(--wp--preset--color--ice); font-size: .92rem; }
@media (max-width: 781px) { .idea > .wp-block-columns, .idea--flip > .wp-block-columns { flex-direction: column; } }

/* Every image in a post gets its own Pinterest "Save" */
.wp-block-image { position: relative; }
.pin-it { position: absolute; top: .9rem; right: .9rem; z-index: 2; padding: .5rem 1rem; border-radius: 999px; background: var(--rose); color: #fff !important; font-size: .8rem; font-weight: 700; text-decoration: none !important; box-shadow: 0 10px 22px -8px rgb(255 0 85 / .65); opacity: 0; transform: translateY(-6px); transition: .25s var(--ease); }
.wp-block-image:hover .pin-it, .pin-it:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .pin-it, .save-pin-badge { opacity: 1; transform: none; } }

/* ---------- In-post elements ---------- */
.idea-summary-box { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.6rem 1.8rem; box-shadow: 0 1px 0 var(--line), 0 18px 40px -32px rgb(15 23 42 / .35); }
.idea-summary-box ul { margin: .75rem 0 0; padding-left: 1.1rem; }
.idea-summary-box li { margin-bottom: .35rem; }
.idea-summary-box li::marker { color: var(--rose); }
.pro-tip-box { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 20px; padding: 1.3rem 1.6rem; }
.pro-tip-box strong:first-child { color: #B45309; }
.wp-block-details { border-bottom: 1px solid var(--line); padding: 1.05rem 0; }
.wp-block-details summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font: 400 1.4rem/1 var(--wp--preset--font-family--heading); color: var(--rose); transition: transform .25s var(--ease); }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { color: var(--muted); }
.wp-block-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.wp-block-table table { min-width: 520px; border-collapse: collapse; }
.wp-block-table :is(th, td) { border: 0; border-bottom: 1px solid var(--wp--preset--color--ice); padding: .85rem 1.1rem; text-align: left; }
.wp-block-table th { background: var(--wp--preset--color--background); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.wp-block-table figcaption { margin: 0; padding: .75rem 1.1rem; font-size: .8rem; color: var(--muted); }

/* ---------- Author ---------- */
.author-bio-card, .author-page-hero { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 28px; }
.author-bio-card { margin-top: clamp(3rem, 6vw, 4.5rem) !important; }
.author-bio-card::before, .author-page-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, #FF0055, #8B5CF6, #F59E0B); }
.author-name { font: 500 1.6rem/1.1 var(--wp--preset--font-family--heading); }
.author-bio-card .wp-block-avatar img, .author-photo img { box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--rose); }
.author-photo img { border-radius: 50%; }
.post-nav { margin-top: 2.5rem !important; font-size: .9rem; }
.post-nav a { color: var(--ink); font-weight: 600; }

/* ---------- Newsletter + footer ---------- */
.newsletter-callout { position: relative; overflow: hidden; border-radius: 32px; background: radial-gradient(40rem 20rem at 85% 0%, rgb(255 0 85 / .35), transparent 60%), radial-gradient(30rem 18rem at 0% 100%, rgb(139 92 246 / .3), transparent 60%), var(--ink); }
.newsletter-callout :is(h2, p) { color: #fff; }
.newsletter-callout .eyebrow { color: #FDA4AF; }
.newsletter-callout h2 em { color: #FDA4AF; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer a:not(.wp-element-button) { color: var(--muted); }
.site-footer a:not(.wp-element-button):hover { color: var(--rose); }
.site-footer .wp-block-list { list-style: none; margin: 0; padding: 0; line-height: 2.1; }
.sidebar-card { background: var(--wp--preset--color--background); border: 1px solid var(--line); border-radius: 20px; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* =====================================================================
   Fancy layer: moodboard details, motion, texture
   ===================================================================== */

/* Paper grain over the whole page */
body::after { content: ""; position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: .05; mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Handwritten notes */
.script { margin: 0; font: 600 clamp(1.35rem, 1.1rem + 1vw, 1.75rem)/1.1 var(--wp--preset--font-family--script); color: var(--rose); rotate: -2deg; transform-origin: left center; }
.script--note { font-size: 1.35rem; color: var(--wp--preset--color--secondary); }
.idea-index__label { font: 600 1.45rem/1 var(--wp--preset--font-family--script); letter-spacing: 0; text-transform: none; color: var(--rose); rotate: -1.5deg; }


/* Hero collage: tilted, taped, floating pins */
.hero-art { position: relative; }
.hero-collage li { position: relative; animation: float 7s ease-in-out infinite; }
.hero-collage li:nth-child(1) { rotate: -5deg; animation-delay: -1s; }
.hero-collage li:nth-child(2) { rotate: 3deg; animation-delay: -3s; z-index: 1; }
.hero-collage li:nth-child(3) { rotate: -2deg; animation-delay: -5s; }
.hero-collage li::before, .pin-frame .wp-block-post-featured-image::before, .idea__media .wp-block-image::before {
	content: ""; position: absolute; top: -12px; left: 50%; z-index: 3; width: 74px; height: 24px; translate: -50% 0; rotate: -4deg; pointer-events: none;
	background: repeating-linear-gradient(45deg, rgb(255 255 255 / .35) 0 6px, transparent 6px 12px), rgb(253 164 175 / .7); box-shadow: 0 2px 6px rgb(15 23 42 / .08); }
.hero-collage li:nth-child(2)::before { background-color: rgb(196 181 253 / .75); rotate: 5deg; }
.hero-collage li:nth-child(3)::before { background-color: rgb(253 230 138 / .8); rotate: -8deg; }
.hero-collage .wp-block-post-featured-image { border: 6px solid #fff; border-radius: 18px; }
@keyframes float { 50% { translate: 0 -10px; } }

/* Spinning "save the idea" badge */
.spin-badge { position: absolute; z-index: 4; width: 112px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: var(--lift); pointer-events: none; }
.spin-badge svg { position: absolute; inset: 6px; animation: spin 18s linear infinite; }
.spin-badge text { font: 700 9.5px var(--wp--preset--font-family--body); letter-spacing: 2.6px; fill: var(--ink); }
.spin-badge span { font-size: 1.6rem; }
.hero-art .spin-badge { left: -2rem; bottom: -1.5rem; }
@keyframes spin { to { rotate: 360deg; } }

/* Topic marquee */
.marquee-band { border-block: 1px solid var(--line); background: #fff; overflow: hidden; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 1.75rem; width: max-content; animation: marquee 40s linear infinite; font: italic 500 clamp(1.4rem, 1rem + 1.5vw, 2.2rem)/1 var(--wp--preset--font-family--heading); white-space: nowrap; }
.marquee__track .star { color: var(--rose); font-style: normal; font-size: .7em; align-self: center; }
.marquee-band:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { translate: -50% 0; } }

/* Category tiles with a fanned stack of the category's latest pins */
.cat-tile { min-height: 19rem; overflow: hidden; justify-content: flex-end; }
.cat-tile__text { position: relative; z-index: 1; }
.tile-stack { position: absolute; top: 1.4rem; right: 1.2rem; width: 9.5rem; height: 9rem; pointer-events: none; }
.tile-stack .wp-block-post-template { margin: 0; padding: 0; list-style: none; position: relative; height: 100%; }
.tile-stack li { position: absolute; top: 0; right: 0; width: 5.2rem; margin: 0 !important; transition: rotate .45s var(--ease), translate .45s var(--ease); }
.tile-stack li:nth-child(1) { rotate: 8deg; z-index: 3; }
.tile-stack li:nth-child(2) { rotate: -4deg; translate: -2.6rem .6rem; z-index: 2; }
.tile-stack li:nth-child(3) { rotate: -14deg; translate: -4.6rem 1.6rem; z-index: 1; }
.cat-tile:hover .tile-stack li:nth-child(1) { rotate: 14deg; translate: .4rem -.3rem; }
.cat-tile:hover .tile-stack li:nth-child(3) { rotate: -20deg; translate: -5.4rem 1.9rem; }
.tile-stack .wp-block-post-featured-image { margin: 0; border: 4px solid #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 20px -10px rgb(15 23 42 / .45); }

/* Post page: reading progress, taped tilted photos */
.read-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 3px; transform-origin: 0 50%; scale: 0 1; background: linear-gradient(90deg, #FF0055, #8B5CF6, #F59E0B); }
.admin-bar .read-progress { top: var(--wp-admin--admin-bar--height, 32px); }
@supports (animation-timeline: scroll()) { .read-progress { animation: progress linear both; animation-timeline: scroll(root); } }
@supports not (animation-timeline: scroll()) { .read-progress { display: none; } }
@keyframes progress { to { scale: 1 1; } }
.idea__media .wp-block-image { rotate: -1.5deg; transition: rotate .5s var(--ease); }
.idea--flip .idea__media .wp-block-image { rotate: 1.5deg; }
.idea__media .wp-block-image:hover { rotate: 0deg; }
.idea__media img { border: 8px solid #fff; }
.idea--flip .idea__media .wp-block-image::before { background-color: rgb(196 181 253 / .75); rotate: 4deg; }

/* Newsletter sparkles + giant footer wordmark */
.newsletter-callout::before, .newsletter-callout::after { content: "✦"; position: absolute; color: #FDA4AF; animation: twinkle 3.5s ease-in-out infinite; }
.newsletter-callout::before { top: 2.2rem; left: 12%; font-size: 1.6rem; }
.newsletter-callout::after { bottom: 2.5rem; right: 14%; font-size: 1.1rem; color: #C4B5FD; animation-delay: -1.7s; }
@keyframes twinkle { 50% { opacity: .25; scale: .7; } }

/* Scroll reveal (progressive enhancement, no JavaScript) */

@media (max-width: 781px) {
	.hero-art .spin-badge { width: 92px; left: auto; right: -.5rem; bottom: -1rem; }
}
@media (prefers-reduced-motion: reduce) {
	.hero-collage li, .spin-badge svg, .marquee__track, .newsletter-callout::before, .newsletter-callout::after { animation: none !important; }
	.masonry > li, .cat-tile, .idea__media, .idea__text, .idea-summary-box, .author-bio-card { animation: none !important; }
}

/* Older posts: keep the earlier "step card" boxes looking finished */
.idea-step-card { position: relative; margin-block: 1.5rem !important; padding: 1.6rem 1.6rem 1.4rem 5rem; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.idea-step-badge { position: absolute; left: 1.4rem; top: 1.45rem; width: 2.5rem; height: 2.5rem; margin: 0; display: grid; place-items: center; border-radius: 50%; background: var(--rose); color: #fff; font-weight: 800; }
.idea-step-card h3 { margin-top: 0; font-size: var(--wp--preset--font-size--lg); }
@media (max-width: 600px) { .idea-step-card { padding: 1.25rem; } .idea-step-badge { position: static; margin-bottom: .75rem; } }


/* =====================================================================
   Single post v4: Split Hero (Left Title/Meta, Right Featured Image)
   ===================================================================== */
.single-hero-wrap {
	background: #ffffff;
	border-bottom: 1px solid var(--line);
	padding-block: clamp(2.5rem, 5vw, 4.5rem);
	position: relative;
	overflow: hidden;
}
.single-hero-wrap::before {
	content: "";
	position: absolute;
	top: -6rem;
	left: -6rem;
	width: 28rem;
	height: 28rem;
	background: radial-gradient(circle, rgb(255 0 85 / .04), transparent 70%);
	pointer-events: none;
}
.single-hero-wrap::after {
	content: "";
	position: absolute;
	bottom: -6rem;
	right: -6rem;
	width: 28rem;
	height: 28rem;
	background: radial-gradient(circle, rgb(139 92 246 / .04), transparent 70%);
	pointer-events: none;
}
.single-hero-grid {
	display: flex;
	align-items: center;
	gap: clamp(2rem, 5vw, 4.5rem) !important;
}
.single-hero__content {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
	max-width: 44rem;
}
.single-hero__meta-top {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	flex-wrap: wrap;
}
.single-hero__badge {
	display: inline-flex;
	align-items: center;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rose);
	background: rgb(255 0 85 / .08);
	border: 1px solid rgb(255 0 85 / .18);
	padding: 0.35rem 0.75rem;
	border-radius: 9999px;
	margin: 0 !important;
}
.single-hero__crumbs {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.85rem;
	color: var(--muted);
}
.single-hero__crumbs a {
	color: var(--muted);
	text-decoration: none;
}
.single-hero__crumbs a:hover {
	color: var(--rose);
}
.single-hero__crumbs .taxonomy-category a {
	color: var(--ink);
	font-weight: 700;
}
.single-hero__flourish {
	margin: 0 !important;
	font-size: 1.45rem;
	color: var(--rose);
}
.single-hero__title {
	font: 600 clamp(2.2rem, 1.8rem + 2vw, 3.4rem)/1.12 var(--wp--preset--font-family--heading);
	color: var(--ink);
	margin: 0 !important;
	text-wrap: balance;
	letter-spacing: -0.02em;
}
.single-hero__byline {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding-top: 0.4rem;
}
.single-hero__byline .wp-block-avatar img {
	border-radius: 50%;
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--line);
}
.single-hero__byline-meta {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	font-size: 0.88rem;
}
.single-hero__author-row {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	font-weight: 600;
	color: var(--ink);
}
.single-hero__author-row p { margin: 0; }
.single-hero__curator-label {
	color: var(--muted);
	font-size: 0.82rem;
	font-weight: 500;
}
.single-hero__author-row a {
	color: var(--ink);
	text-decoration: none;
}
.single-hero__author-row a:hover {
	color: var(--rose);
}
.single-hero__verified {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 17px;
	height: 17px;
	background: #10B981;
	color: #fff;
	border-radius: 50%;
	font-size: 10px;
	font-weight: 700;
}
.single-hero__date-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--muted);
	font-size: 0.82rem;
}
.single-hero__date-row p { margin: 0; }
.single-hero__dot { color: var(--muted); opacity: 0.6; }
.single-hero__actions {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding-top: 0.6rem;
	flex-wrap: wrap;
}
.single-hero__pin-card {
	position: relative;
	max-width: 27rem;
	margin-inline: auto;
}
.single-hero__pin-card .wp-block-post-featured-image {
	position: relative;
	margin: 0 !important;
	border: 8px solid #fff;
	border-radius: 26px;
	box-shadow: 0 24px 50px -15px rgb(15 23 42 / .2);
	overflow: hidden;
	background: #fff;
	rotate: -1.5deg;
	transition: transform 0.35s var(--ease), rotate 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.single-hero__pin-card:hover .wp-block-post-featured-image {
	transform: translateY(-5px);
	rotate: 0deg;
	box-shadow: 0 32px 64px -15px rgb(15 23 42 / .25);
}
.single-hero__pin-card .wp-block-post-featured-image img {
	aspect-ratio: 2/3;
	object-fit: cover;
	width: 100%;
	display: block;
	border-radius: 18px;
}
.single-hero__tape {
	position: absolute;
	top: -14px;
	left: 50%;
	z-index: 5;
	width: 84px;
	height: 26px;
	translate: -50% 0;
	rotate: -3.5deg;
	background: repeating-linear-gradient(45deg, rgb(255 255 255 / .4) 0 6px, transparent 6px 12px), rgb(253 164 175 / .85);
	box-shadow: 0 2px 8px rgb(15 23 42 / .12);
	border-radius: 2px;
	pointer-events: none;
}
.single-hero__pin-card .spin-badge {
	right: -.5rem;
	bottom: 1.5rem;
}
@media (max-width: 781px) {
	.single-hero-grid {
		flex-direction: column !important;
		gap: 2.25rem !important;
	}
	.single-hero__pin-card {
		max-width: 19rem;
	}
	.single-hero__pin-card .spin-badge {
		right: -0.75rem;
		bottom: -1rem;
		width: 88px;
	}
}
.post-cover .wp-block-cover__image-background { scale: 1.08; }
.post-cover .wp-block-cover__background { opacity: 1 !important; background: linear-gradient(180deg, rgb(15 23 42 / .55), rgb(15 23 42 / .7) 70%, rgb(15 23 42 / .82)) !important; }
.post-cover:not(:has(.wp-block-cover__image-background)) { background: radial-gradient(50rem 26rem at 80% 0%, rgb(255 0 85 / .45), transparent 60%), radial-gradient(40rem 24rem at 0% 100%, rgb(139 92 246 / .45), transparent 60%), var(--ink); }
.post-cover .wp-block-cover__inner-container > * + * { margin-top: 1rem; }
.post-cover .wp-block-post-title { color: #fff; max-width: 26ch; margin-inline: auto; text-wrap: balance; }
.post-cover .script { color: #FDA4AF; rotate: -2deg; transform-origin: center; }
.post-cover .crumbs, .post-cover .crumbs a, .post-cover .cover-byline, .post-cover .cover-byline a { color: rgb(255 255 255 / .85); }
.post-cover .crumbs .taxonomy-category a { color: #FDA4AF; font-weight: 700; }
.cover-byline { align-items: center; font-size: .9rem; }
.cover-byline p { margin: 0; }
.post-cover .wp-block-post-date, .post-cover .wp-block-post-date a { color: rgb(255 255 255 / .85); }
.cover-byline .wp-block-avatar img { box-shadow: 0 0 0 2px rgb(255 255 255 / .8); }

.pin-intro-wrap { position: relative; z-index: 2; }
.pin-intro { margin-top: clamp(-10rem, -14vw, -7rem) !important; gap: clamp(1.5rem, 4vw, 3.5rem) !important; }
.pin-frame { position: relative; max-width: 29rem; margin-inline: auto; }
.pin-frame .wp-block-post-featured-image { position: relative; margin: 0; overflow: visible; rotate: -2deg; border: 10px solid #fff; border-radius: 26px; box-shadow: 0 40px 70px -35px rgb(15 23 42 / .6); background: var(--wash); transition: rotate .5s var(--ease); }
.pin-frame:hover .wp-block-post-featured-image { rotate: 0deg; }
.pin-frame .wp-block-post-featured-image img { border-radius: 16px; }
.pin-frame .spin-badge { right: -2.25rem; bottom: 2.5rem; }
.glance-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 30px 60px -40px rgb(15 23 42 / .5); }
.glance-col { align-self: flex-end; }
.glance-excerpt { color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.glance-excerpt { margin: 0; }
.glance-excerpt:empty { display: none; }
.fact { align-items: center; padding: .8rem .9rem; border-radius: 16px; background: var(--wp--preset--color--background); border: 1px solid var(--wp--preset--color--ice); }
.fact:has(.fact__value:empty) { display: none; }
.fact__icon { margin: 0; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; flex: none; border-radius: 12px; background: #fff; font-size: 1.15rem; box-shadow: 0 4px 10px -6px rgb(15 23 42 / .3); }
.fact__label { margin: 0; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fact__value, .fact__value a { margin: 0; font-weight: 700; color: var(--ink); font-size: .95rem; }

/* Article typography: works for both idea-gallery posts and text-heavy posts */
.article { font-size: 1.08rem; line-height: 1.8; color: #1E293B; }
.single-post .article > p:first-child::first-letter { float: left; margin: .35rem .6rem 0 0; font: italic 600 4.6rem/.75 var(--wp--preset--font-family--heading); color: var(--rose); }
.article > h2:not(.idea__title) { position: relative; padding-top: 1.25rem; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); }
.article > h2:not(.idea__title)::before { content: "✦"; display: block; margin-bottom: .5rem; font-size: 1rem; color: var(--rose); }
.article h3 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.55rem); }
.article ul:not(.wp-block-social-links) > li::marker { color: var(--rose); }
.article a:not(.wp-element-button):not(.pin-it) { color: var(--wp--preset--color--primary-deep); text-decoration: underline; text-decoration-color: rgb(255 0 85 / .35); text-underline-offset: 3px; }
.article .wp-block-image:not(.idea__media .wp-block-image) img { border-radius: 20px; }

.end-cta { position: relative; overflow: hidden; margin-top: clamp(3rem, 6vw, 4.5rem) !important; border-radius: 28px; background: radial-gradient(30rem 16rem at 100% 0%, #FFE4EC, transparent 70%), radial-gradient(26rem 16rem at 0% 100%, #EDE9FE, transparent 70%), #fff; border: 1px solid var(--line); }
.end-cta h2 { margin: 0; font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); }
.end-cta .script { rotate: -2deg; transform-origin: center; }
.end-cta + .author-bio-card { margin-top: 1.5rem !important; }

/* Floating save button: fades in once reading starts */
.float-save { position: fixed; right: clamp(.9rem, 2vw, 1.75rem); bottom: clamp(.9rem, 2vw, 1.75rem); z-index: 60; margin: 0; }
.float-save .wp-block-button__link { padding: .8rem 1.25rem; box-shadow: 0 14px 30px -10px rgb(255 0 85 / .7); }
@supports (animation-timeline: scroll()) { .float-save { animation: float-in linear both; animation-timeline: scroll(root); animation-range: 0 500px; } }
@keyframes float-in { from { opacity: 0; translate: 0 20px; pointer-events: none; } to { opacity: 1; translate: 0 0; } }

@media (max-width: 781px) {
	.post-cover { padding-bottom: 8rem !important; }
	.pin-intro { margin-top: -6rem !important; }
	.pin-frame { max-width: 17rem; margin-inline: auto; }
	.pin-frame .spin-badge { width: 84px; right: -1.25rem; bottom: 1rem; }
	.glance-col { align-self: stretch; }
}
@media (prefers-reduced-motion: reduce) { .float-save { animation: none !important; } }

/* Older posts: legacy "secondary" text colour was slate; keep articles calm and headings in the serif */
.article .has-secondary-color { color: #334155 !important; }
.article :is(h2, h3, h4) { font-family: var(--wp--preset--font-family--heading) !important; font-weight: 500; }

/* Holiday collections (homepage) */
.season-tile { min-height: 17rem; }
.tile--christmas { background: radial-gradient(22rem 14rem at 100% 0%, #FECACA, transparent 70%), #FEF2F2; }
.tile--newyear { background: radial-gradient(22rem 14rem at 100% 0%, rgb(245 158 11 / .45), transparent 70%), #1E1B4B; }
.tile--newyear :is(h3 a, .eyebrow) { color: #fff; }
.tile--newyear h3 em { color: #FCD34D; }
.tile-subs { position: relative; z-index: 2; gap: .4rem; }
.tile-subs .wp-block-button__link { padding: .4rem .85rem; font-size: .78rem; font-weight: 600; background: rgb(255 255 255 / .85); color: var(--ink); border: 1px solid rgb(15 23 42 / .08); }
.tile-subs .wp-block-button__link:hover { background: var(--ink); color: #fff; }
.tile--newyear .tile-subs .wp-block-button__link { background: rgb(255 255 255 / .12); color: #fff; border-color: rgb(255 255 255 / .25); }
.tile--newyear .tile-subs .wp-block-button__link:hover { background: #FCD34D; color: var(--ink); }
.season-tile .tile-stack { width: 11rem; }

/* Menu dropdowns */
.main-nav .wp-block-navigation__submenu-container { padding: .5rem; border: 1px solid var(--line) !important; border-radius: 16px; box-shadow: var(--lift); min-width: 14rem !important; }
.main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .45rem .75rem !important; border-radius: 10px; }
.main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--ice); }
.main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after { display: none; }

/* =====================================================================
   v4: clean header & footer, smoother motion, wider posts, horizontal photos
   ===================================================================== */

/* Clean header: airy at the top of the page, crisp white bar once you scroll */
.site-header-bar { background: rgb(250 251 253 / .72); border-bottom: 1px solid transparent; transition: background-color .3s, box-shadow .3s; }
.site-header-bar .brand-badge { font-size: .62rem; padding: .25em .6em; }
.site-header-bar .wp-block-site-logo img { border-radius: 8px; }
.main-nav { gap: clamp(.9rem, 2vw, 1.75rem); }
.main-nav .wp-block-navigation-item__content { padding-block: .35rem; }
.site-header-bar .wp-element-button { padding: .5rem 1rem; }
@supports (animation-timeline: scroll()) {
	.site-header-bar { animation: header-settle linear both; animation-timeline: scroll(root); animation-range: 0 140px; }
}
@keyframes header-settle {
	to { background-color: rgb(255 255 255 / .94); border-bottom-color: var(--line); box-shadow: 0 10px 30px -22px rgb(15 23 42 / .45); padding-top: .5rem; padding-bottom: .5rem; }
}

/* Clean footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-grid { row-gap: 2.25rem; }
.footer-mission { max-width: 26rem; margin-top: 1rem; font-size: .92rem; color: var(--muted); }
.footer-social { margin-top: 1rem; gap: .5rem; }
.footer-social .wp-social-link { background: var(--wp--preset--color--ice) !important; color: var(--ink) !important; border-radius: 50%; transition: background-color .2s, color .2s; }
.footer-social .wp-social-link:hover { background: var(--rose) !important; color: #fff !important; }
.footer-social .wp-social-link a { padding: .55rem; }
.site-footer h6 { margin: 0 0 .75rem; color: var(--ink); }
.site-footer .wp-block-list { line-height: 2.2; font-size: .92rem; }
.site-footer .wp-block-list a { text-decoration: none; }
.footer-bottom { margin-top: clamp(2.5rem, 5vw, 3.5rem) !important; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.footer-legal a { color: var(--muted) !important; text-decoration: none; }
.footer-legal a:hover { color: var(--rose) !important; }

/* Smoother scroll motion: short distance, soft ease, gentle scale, cascading columns */
@supports (animation-timeline: view()) {
	.masonry > li, .cat-tile, .idea__media, .idea__text, .idea-summary-box, .author-bio-card, .end-cta, .section-head, .pin-tool, .photo-strip-section, .wp-block-table, .wp-block-details {
		animation: rise cubic-bezier(.22, .8, .24, 1) both; animation-timeline: view(); animation-range: entry 0% entry 55%;
	}
	.masonry > li:nth-child(3n + 2) { animation-range: entry 6% entry 62%; }
	.masonry > li:nth-child(3n) { animation-range: entry 12% entry 70%; }
	.idea__text { animation-range: entry 8% entry 62%; }
}
@keyframes rise { from { opacity: 0; translate: 0 28px; scale: .98; } to { opacity: 1; translate: 0 0; scale: 1; } }

/* Wider single post */
.single-post .article { font-size: 1.12rem; }
.single-post .article > p, .single-post .article > ul, .single-post .article > ol { max-width: 820px; }
.single-hero__readtime::before { content: "⏱ "; }

/* Horizontal (landscape) photos: wide layout, photo on top, text below */
.idea--landscape > .wp-block-columns { flex-direction: column !important; align-items: stretch !important; gap: clamp(1.25rem, 3vw, 2rem); }
.idea--landscape > .wp-block-columns > .wp-block-column { flex-basis: 100% !important; width: 100%; }
.idea--landscape .idea__media .wp-block-image { rotate: 0deg; }
.idea--landscape .idea__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.idea--landscape .idea__text { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.idea--landscape .idea__num { grid-row: span 6; }
.idea--landscape .idea__text > :not(.idea__num) { grid-column: 2; max-width: 720px; }
@media (max-width: 781px) { .idea--landscape .idea__text { display: block; } }

/* Photo strip: swipeable row of horizontal photos */
.photo-strip-section { margin-block: clamp(2.5rem, 6vw, 4.5rem) !important; }
.photo-strip-section .photo-strip__title { margin: .25rem 0 1.25rem; }
.wp-block-gallery.photo-strip { display: flex !important; flex-wrap: nowrap !important; gap: 1rem !important; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .9rem; scrollbar-width: thin; }
.wp-block-gallery.photo-strip.has-nested-images figure.wp-block-image { flex: 0 0 min(78%, 620px) !important; width: auto !important; margin: 0 !important; scroll-snap-align: center; border-radius: 22px; overflow: hidden; box-shadow: var(--lift); background: var(--wash); }
.wp-block-gallery.photo-strip.has-nested-images figure.wp-block-image img { aspect-ratio: 3 / 2; height: auto; object-fit: cover; }
.wp-block-gallery.photo-strip figcaption { background: linear-gradient(transparent, rgb(15 23 42 / .65)); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) {
	.site-header-bar, .masonry > li, .cat-tile, .idea__media, .idea__text, .idea-summary-box, .author-bio-card, .end-cta, .section-head, .pin-tool, .photo-strip-section, .wp-block-table, .wp-block-details { animation: none !important; }
}
.single-post .site-footer { padding-bottom: 6rem !important; } /* room for the floating Save button */

/* =====================================================================
   Single post hero: polished (same layout, cleaner and richer)
   ===================================================================== */
.single-hero-wrap {
	padding-block: clamp(2.5rem, 5vw, 4.75rem) clamp(3rem, 6vw, 5.5rem);
	background:
		radial-gradient(38rem 26rem at 82% 40%, rgb(255 0 85 / .10), transparent 65%),
		radial-gradient(30rem 22rem at 100% 100%, rgb(245 158 11 / .10), transparent 65%),
		radial-gradient(34rem 24rem at 0% 0%, rgb(139 92 246 / .08), transparent 65%),
		linear-gradient(180deg, #fff, var(--wp--preset--color--background));
}
/* Faint dot grid behind the pin */
.single-hero-wrap::after {
	top: 0; right: 0; bottom: 0; left: auto; width: 46%; height: auto;
	background: radial-gradient(rgb(15 23 42 / .09) 1px, transparent 1.4px) 0 0 / 18px 18px;
	mask-image: radial-gradient(closest-side, #000, transparent);
	-webkit-mask-image: radial-gradient(closest-side, #000, transparent);
}
.single-hero__content { gap: 1rem; }

/* Top line: badge + breadcrumb, showing only the main category */
.single-hero__badge { font-size: .68rem; letter-spacing: .1em; }
.single-hero__crumbs .taxonomy-category a ~ a, .single-hero__crumbs .wp-block-post-terms__separator { display: none; }
.single-hero__crumbs .taxonomy-category a { color: var(--wp--preset--color--primary-deep); }

/* Title + one-line summary */
.single-hero__flourish { rotate: -2deg; transform-origin: left center; margin-bottom: -.35rem !important; }
.single-hero__title { font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.7rem); line-height: 1.06; letter-spacing: -.025em; max-width: 17ch; }
.single-hero__dek { margin: 0 !important; max-width: 36rem; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.single-hero__dek:empty { display: none; }

/* Byline as a soft card; date, read time and idea count as clear chips */
.single-hero__byline { align-self: flex-start; padding: .65rem 1rem .65rem .65rem; background: rgb(255 255 255 / .8); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 26px -22px rgb(15 23 42 / .5); }
.single-hero__byline .wp-block-avatar img { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--rose); }
.single-hero__date-row { flex-wrap: wrap !important; gap: .35rem !important; }
.single-hero__date-row > .single-hero__dot { display: none; }
.single-hero__date-row > .wp-block-post-date, .single-hero__date-row > .single-hero__readtime, .single-hero__date-row > .single-hero__count {
	margin: 0; padding: .2rem .6rem; border-radius: 999px; background: var(--wp--preset--color--ice); color: var(--ink); font-size: .74rem; font-weight: 600; line-height: 1.5;
}
.single-hero__date-row > .wp-block-post-date::before { content: "📅 "; }
.single-hero__date-row > .single-hero__count { background: rgb(255 0 85 / .1); color: var(--wp--preset--color--primary-deep); }
.single-hero__date-row > .single-hero__count::before { content: "📌 "; }
.single-hero__date-row > .single-hero__count:empty { display: none; }

/* Buttons */
.single-hero__actions { padding-top: .35rem; }
.single-hero__actions .wp-block-button__link { padding: .85rem 1.5rem; font-size: .95rem; }

/* Pin card: a second card peeking out behind, soft glow, gentle float */
.single-hero__media-col { position: relative; }
.single-hero__pin-card { max-width: 25rem; isolation: isolate; animation: hero-float 8s ease-in-out infinite; }
.single-hero__pin-card::before {
	content: ""; position: absolute; inset: 1.2rem -1.1rem -1rem 1.4rem; z-index: -1; border-radius: 26px; rotate: 5deg;
	background: linear-gradient(150deg, #FFE4EC, #EDE9FE 60%, #FEF3C7); box-shadow: 0 20px 40px -24px rgb(15 23 42 / .35);
}
.single-hero__pin-card::after {
	content: ""; position: absolute; inset: 8% -12% -6% -12%; z-index: -2;
	background: radial-gradient(closest-side, rgb(255 0 85 / .22), transparent); pointer-events: none;
}
.single-hero__pin-card .wp-block-post-featured-image { rotate: -2deg; box-shadow: 0 34px 60px -26px rgb(15 23 42 / .45); }
@keyframes hero-float { 50% { translate: 0 -8px; } }

/* Mobile: show the pin first, so visitors from Pinterest instantly see they're in the right place */
@media (max-width: 781px) {
	.single-hero-wrap { padding-block: 1.5rem 2.75rem; }
	.single-hero-grid { flex-direction: column-reverse !important; gap: 1.75rem !important; }
	.single-hero__pin-card { max-width: 15.5rem; }
	.single-hero__pin-card::before { inset: .8rem -.7rem -.7rem .9rem; }
	.single-hero__title { max-width: none; font-size: clamp(1.85rem, 1.2rem + 3.6vw, 2.3rem); line-height: 1.1; }
	.single-hero__byline { align-self: stretch; }
	.single-hero__actions .wp-block-button { flex: 1 1 auto; }
	.single-hero__actions .wp-block-button__link { width: 100%; text-align: center; }
	.single-hero-wrap::after { width: 100%; height: 55%; }
}
@media (prefers-reduced-motion: reduce) { .single-hero__pin-card { animation: none; } }

/* Fix: gallery styles stretch every link inside a gallery photo; keep the Save pill small and in the corner */
.wp-block-gallery.has-nested-images figure.wp-block-image > a.pin-it {
	position: absolute !important; inset: .9rem .9rem auto auto !important; z-index: 3;
	display: inline-flex !important; flex: none !important; flex-direction: row !important; align-items: center; gap: .3rem; white-space: nowrap;
	width: auto !important; height: auto !important; margin: 0 !important;
}
.wp-block-gallery.photo-strip.has-nested-images figure.wp-block-image { width: min(78%, 620px) !important; }
.wp-block-gallery.photo-strip.has-nested-images figure.wp-block-image img { width: 100% !important; }
