/*
Theme Name: PinkWhen Kadence Child
Description: PinkWhen recipe headers with responsive desktop and mobile layouts.
Author: PinkWhen
Template: kadence
Version: 1.5.4
Text Domain: pinkwhen-kadence-child
Requires PHP: 7.4
License: GNU General Public License v3.0 or later
*/
.pw-recipe-post {
    --pw-accent:#a800a3; --pw-accent-hover:#850081; --pw-soft:#f6dafa;
    --pw-text:var(--global-palette3,#1a202c); --pw-muted:var(--global-palette5,#4a5568);
}
.pw-recipe-post .pw-post-header {
    display:grid; grid-template-columns:auto auto;
    grid-template-areas:"crumb crumb" "title title" "meta meta" "jump rating";
    align-items:center; justify-content:center; gap:28px 30px;
    margin:0 0 32px; padding:20px 0 10px; text-align:center;
    font-family:Arial,Helvetica,sans-serif;
}
.pw-post-header .pw-breadcrumbs {grid-area:crumb; font-size:20px; line-height:1.5; color:var(--pw-accent); overflow-wrap:anywhere;}
.pw-post-header .pw-breadcrumbs a,.pw-post-header .pw-separator {color:var(--pw-accent);}
.pw-recipe-post .pw-post-header h1.entry-title {grid-area:title; margin:0; font-family:inherit; font-size:clamp(36px,4vw,64px); font-weight:700; line-height:1.16; color:var(--pw-text); overflow-wrap:anywhere;}
.pw-post-header a {text-decoration:none;}
.pw-post-header .pw-meta-row {grid-area:meta; display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:10px 24px;}
.pw-recipe-post .pw-post-header .entry-meta {display:flex; flex-wrap:wrap; justify-content:center; gap:8px 24px; margin:0;}
.pw-post-header .entry-meta,.pw-post-header .pw-comments,.pw-post-header .pw-rating-label {color:var(--pw-muted); font-family:inherit; font-size:14px; font-weight:700; letter-spacing:1.6px; line-height:1.6; text-transform:uppercase;}
.pw-post-header .entry-meta>span::after {display:none;}
.pw-post-header .entry-meta>span {display:inline-flex; align-items:baseline; gap:.35em;}
.pw-post-header .entry-meta a {color:inherit;}
.pw-post-header .pw-meta-label {color:var(--pw-accent); font-style:italic;}
.pw-post-header .pw-header-jump {grid-area:jump; justify-self:end; display:inline-flex; align-items:center; justify-content:center; gap:16px; min-height:62px; padding:16px 22px; background:var(--pw-accent); color:white; font-size:18px; font-weight:700; line-height:1.3; text-transform:uppercase;}
.pw-post-header .pw-header-jump>span {font-size:30px; line-height:1;}
.pw-post-header .pw-rating {grid-area:rating; justify-self:start; display:flex; flex-wrap:wrap; align-items:center; gap:8px;}
.pw-post-header .pw-stars {position:relative; display:inline-block; flex-shrink:0; color:var(--pw-accent); font-family:Arial,Helvetica,sans-serif; font-size:30px; letter-spacing:1px; line-height:1; white-space:nowrap;}
.pw-post-header .pw-stars-filled {position:absolute; inset:0 auto 0 0; overflow:hidden;}
.pw-post-header .pw-save-email {display:none;}
.pw-recipe-post .entry-content>.wprm-recipe-snippet {display:none!important;}
.pw-post-header a:focus-visible {outline:3px solid currentColor; outline-offset:4px;}
#pw-save-recipe-email {scroll-margin-top:100px;}
@media(max-width:767px) {
    .pw-recipe-post .pw-post-header {
        grid-template-columns:minmax(0,1fr) auto;
        grid-template-areas:"crumb crumb" "title title" "save save" "rating comments" "meta meta";
        justify-content:stretch; gap:13px 14px;
        margin:0 0 15px; padding:25px 14px 16px;
        background:var(--pw-soft); color:var(--pw-text); text-align:left;
    }
    .pw-post-header .pw-breadcrumbs {font-size:16px; line-height:1.5; color:var(--pw-text);}
    .pw-post-header .pw-breadcrumbs a {color:var(--pw-accent);}
    .pw-recipe-post .pw-post-header h1.entry-title {color:var(--pw-text); font-size:28px; line-height:1.2;}
    .pw-post-header .pw-save-email {grid-area:save; display:flex; align-items:center; justify-content:center; gap:10px; min-height:48px; padding:12px; background:var(--pw-accent); color:white; font-size:14px; font-weight:700; line-height:1.4; text-transform:uppercase;}
    .pw-post-header .pw-meta-row {display:contents;}
    .pw-recipe-post .pw-post-header .entry-meta {grid-area:meta; gap:5px 18px; justify-content:center; color:var(--pw-text); font-size:12px; letter-spacing:1.3px; text-transform:none;}
    .pw-post-header .pw-comments {grid-area:comments; justify-self:end; color:var(--pw-text); font-size:12px; letter-spacing:.7px; text-transform:none;}
    .pw-post-header .pw-rating {justify-self:start; gap:6px 10px;}
    .pw-post-header .pw-stars {font-size:21px;}
    .pw-post-header .pw-rating-label {color:var(--pw-text); font-size:12px; letter-spacing:.7px;}
    .pw-post-header .pw-header-jump {display:none;}

}
@media(max-width:380px) {
    .pw-recipe-post .pw-post-header {gap:12px 8px;}
    .pw-post-header .pw-stars {font-size:18px;}
    .pw-post-header .pw-rating-label,.pw-post-header .pw-comments {font-size:11px; letter-spacing:.2px;}
}

/* Brand interaction states. */
.pw-post-header .pw-header-jump:hover,.pw-post-header .pw-save-email:hover {background:var(--pw-accent-hover); color:white;}
.pw-post-header .pw-breadcrumbs a:hover,.pw-post-header .entry-meta a:hover {color:var(--pw-accent-hover); text-decoration:underline;}

/* Match the native Hubbub email-save form to PinkWhen's shared palette. */
.pw-recipe-post .dpsp-email-save-this-tool {background-color:var(--pw-soft)!important; color:var(--pw-text)!important;}
.pw-recipe-post .dpsp-email-save-this-tool h2,.pw-recipe-post .dpsp-email-save-this-tool h3,.pw-recipe-post .dpsp-email-save-this-tool .hubbub-save-this-heading {color:var(--pw-text)!important;}
.pw-recipe-post .dpsp-email-save-this-tool p,.pw-recipe-post .dpsp-email-save-this-tool .hubbub-save-this-message {color:var(--pw-muted)!important;}
.pw-recipe-post .dpsp-email-save-this-tool input[type="email"] {background-color:#fff!important; color:var(--pw-text)!important; border-color:var(--pw-accent)!important;}
.pw-recipe-post .dpsp-email-save-this-tool input[type="email"]:focus {border-color:var(--pw-accent-hover)!important; outline:2px solid var(--pw-accent); outline-offset:2px;}
.pw-recipe-post .dpsp-email-save-this-tool button[type="submit"],.pw-recipe-post .dpsp-email-save-this-tool input[type="submit"] {background-color:var(--pw-accent)!important; color:#fff!important;}
.pw-recipe-post .dpsp-email-save-this-tool button[type="submit"]:hover,.pw-recipe-post .dpsp-email-save-this-tool input[type="submit"]:hover {background-color:var(--pw-accent-hover)!important;}
.pw-recipe-post .dpsp-email-save-this-tool button[type="submit"]:focus-visible,.pw-recipe-post .dpsp-email-save-this-tool input[type="submit"]:focus-visible {outline:3px solid var(--pw-accent-hover); outline-offset:3px;}


/* Desktop opening sequence; the original mobile opening remains in place. */
.pw-recipe-post .pw-desktop-intro {margin:0 0 24px;}
.pw-recipe-post .pw-desktop-featured {margin:0 0 24px;}
.pw-recipe-post .pw-post-featured-image,.pw-recipe-post .pw-desktop-featured img {display:block; width:100%; max-width:100%; height:auto;}
/* Reference TOC typography and controls, using PinkWhen's palette. */
.pw-recipe-post .pw-post-toc {margin:0; border:0; border-radius:3px; background:var(--pw-soft); color:#2e3232; font-family:-apple-system,system-ui,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; font-size:16px; line-height:1.6; box-shadow:none;}
.pw-recipe-post .pw-post-toc>summary {display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px; cursor:pointer; list-style:none; font-family:inherit; font-size:18px; font-weight:700; line-height:1.7; letter-spacing:1.8px; text-transform:uppercase; color:#2e3232;}
.pw-recipe-post .pw-post-toc>summary::-webkit-details-marker {display:none;}
.pw-recipe-post .pw-toc-indicator {display:block; flex:0 0 18px; width:18px; height:18px; font-size:0; line-height:1; color:#333;}
.pw-recipe-post .pw-toc-indicator::before {content:""; display:block; width:100%; height:100%; background:currentColor; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 3h4v4H2zM2 10h4v4H2zM2 17h4v4H2zM9 3h13v4H9zM9 10h13v4H9zM9 17h13v4H9z'/%3E%3C/svg%3E") center/contain no-repeat;}
.pw-recipe-post .pw-post-toc[open] .pw-toc-indicator::before {mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M3 2h18a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1zm9 5-7 9h14z'/%3E%3C/svg%3E");}
.pw-recipe-post .pw-post-toc nav {padding:20px;}
.pw-recipe-post .pw-post-toc ul {margin:0; padding:0; list-style:none;}
.pw-recipe-post .pw-post-toc li {display:flex; align-items:baseline; margin:0 0 8px; padding:0; font-size:16px; font-weight:700; line-height:1.5;}
.pw-recipe-post .pw-post-toc li:last-child {margin-bottom:0;}
.pw-recipe-post .pw-post-toc li::before {content:""; flex:0 0 9.6px; width:9.6px; height:9.6px; margin-right:8px; border-radius:50%; background:var(--pw-accent);}
.pw-recipe-post .pw-post-toc a {color:#2e3232; font:inherit; text-decoration:none; border-bottom:1px solid var(--pw-accent); box-shadow:inset 0 -2px 0 var(--pw-accent);}
.pw-recipe-post .pw-post-toc a:hover {color:var(--pw-accent-hover); text-decoration:underline;}
.pw-recipe-post .pw-post-toc>summary:focus-visible,.pw-recipe-post .pw-post-toc a:focus-visible {outline:3px solid var(--pw-accent-hover); outline-offset:3px;}
.pw-recipe-post .entry-content h2[id] {scroll-margin-top:90px;}

/* Style the original Hubbub controls without replacing their markup or handlers. */
.pw-recipe-post #dpsp-content-top {display:flex!important; flex-direction:column; gap:10px; min-height:0!important; margin:0 0 22px!important; padding:0!important;}
.pw-recipe-post #dpsp-content-top .dpsp-networks-btns-wrapper {order:1; display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; width:100%!important; padding:0!important; margin:0!important; list-style:none;}
.pw-recipe-post #dpsp-content-top .dpsp-networks-btns-wrapper>li {float:none!important; display:block; width:100%!important; margin:0!important; padding:0!important;}
.pw-recipe-post #dpsp-content-top .dpsp-network-btn {display:flex!important; align-items:stretch!important; width:100%!important; height:auto!important; min-height:60px!important; max-height:none!important; margin:0!important; padding:0!important; border:0!important; border-radius:0!important; background:var(--pw-accent)!important; color:white!important; text-align:left!important; font-family:Arial,Helvetica,sans-serif;}
.pw-recipe-post #dpsp-content-top .dpsp-network-icon {position:static!important; display:flex!important; align-items:center; justify-content:center; flex:0 0 60px; width:60px!important; height:auto!important; min-height:60px; margin:0!important; border:0!important; background:rgba(255,255,255,.06)!important; transform:none!important;}
.pw-recipe-post #dpsp-content-top .dpsp-network-icon-inner {position:static!important; display:flex!important; align-items:center; justify-content:center; width:auto!important; height:auto!important; transform:none!important;}
.pw-recipe-post #dpsp-content-top .dpsp-network-icon svg {width:22px; height:22px; fill:white;}
.pw-recipe-post #dpsp-content-top .dpsp-network-label {display:flex!important; align-items:center; flex:1; width:auto!important; height:auto!important; margin:0!important; padding:14px 18px!important; color:white!important; background:rgba(0,0,0,.05); font-size:18px!important; font-weight:700; line-height:1.45!important; white-space:normal; transform:none!important; opacity:1!important;}
.pw-recipe-post #dpsp-content-top .dpsp-network-count {position:static!important; flex:0 0 auto; align-self:center; margin:0 16px 0 0!important; color:inherit!important;}
.pw-recipe-post #dpsp-content-top .dpsp-total-share-wrapper {position:static!important; order:2; align-self:flex-end; display:flex; align-items:center; gap:5px; width:auto!important; max-width:none!important; margin:0!important; color:var(--pw-muted); font-size:12px; line-height:1.4; white-space:nowrap;}
.pw-recipe-post #dpsp-content-top .dpsp-total-share-wrapper>span {float:none!important; width:auto!important; margin:0!important; font-size:12px!important; line-height:1.4!important;}
.pw-recipe-post #dpsp-content-top.dpsp-show-total-share-count-before .dpsp-total-share-wrapper {order:0;}
.pw-recipe-post #dpsp-content-top .dpsp-icon-total-share svg {width:15px; height:15px; fill:currentColor;}
.pw-recipe-post #dpsp-content-top .dpsp-network-btn:hover {background:var(--pw-accent-hover)!important;}
.pw-recipe-post #dpsp-content-top .dpsp-network-btn:focus-visible {outline:3px solid var(--pw-text)!important; outline-offset:4px;}
@media(max-width:767px) {
    .pw-recipe-post .pw-desktop-intro {display:none;}
    .pw-recipe-post #dpsp-content-top:not(.dpsp-show-on-mobile) {display:none!important;}
    .pw-recipe-post #dpsp-content-top .dpsp-networks-btns-wrapper {grid-template-columns:minmax(0,1fr);}
}

.pw-recipe-post #dpsp-content-top .dpsp-networks-btns-wrapper::after {display:none!important;}

/* Keep native share labels on one line and align any enabled total beside buttons. */
.pw-recipe-post #dpsp-content-top {flex-direction:row; align-items:center; flex-wrap:nowrap; container-type:inline-size;}
.pw-recipe-post #dpsp-content-top .dpsp-networks-btns-wrapper {flex:1 1 0; min-width:0; container-type:inline-size;}
.pw-recipe-post #dpsp-content-top .dpsp-network-icon {flex-basis:44px; width:44px!important;}
.pw-recipe-post #dpsp-content-top .dpsp-network-label {min-width:0; padding:14px 12px!important; font-size:clamp(13px,2.7cqi,18px)!important; white-space:nowrap!important;}
.pw-recipe-post #dpsp-content-top .dpsp-total-share-wrapper {align-self:center; flex:0 0 auto;}
@container (max-width:560px) {
    .pw-recipe-post #dpsp-content-top .dpsp-networks-btns-wrapper {grid-template-columns:minmax(0,1fr);}
    .pw-recipe-post #dpsp-content-top .dpsp-network-label {font-size:clamp(13px,4.6cqi,18px)!important;}
}
