/* JPD Produktwelt 1.2.0 — one consolidated stylesheet; scoped to plugin output. */
.jpd-pw-overview {
  --pw-red:#a22835; --pw-ink:#252321; --pw-muted:#625e5a; --pw-line:#e9e5e1;
  --pw-heritage:var(--wp--preset--font-family--heritage,"Cormorant Garamond",Georgia,serif);
  width:100%; max-width:1180px; margin:0 auto; color:var(--pw-ink);
}
.jpd-pw-overview *, .jpd-pw-overview *::before, .jpd-pw-overview *::after {box-sizing:border-box}
.jpd-pw-overview a:focus-visible {outline:2px solid var(--pw-red);outline-offset:4px}
.jpd-pw-overview__intro {max-width:770px;margin:0 0 2rem}
.jpd-pw-overview__eyebrow, .jpd-pw__eyebrow {display:block;margin:0 0 .6rem;color:var(--pw-red);letter-spacing:.13em;font-size:.7rem;font-weight:700;text-transform:uppercase}
.jpd-pw-overview .jpd-pw-overview__intro h1 {font-family:var(--pw-heritage);font-weight:400;letter-spacing:-.025em;font-size:clamp(2.6rem,5vw,4.7rem);line-height:1.07;margin:0 0 .8rem}
.jpd-pw-overview__intro>p:last-child {font-size:1rem;line-height:1.65;margin:0}
/* Image tiles: fixed internal rows, consistent heading starts and bottom-aligned links. */
.jpd-pw-overview__grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem;align-items:stretch}
.jpd-pw-overview__card {display:grid;grid-template-rows:240px 1fr;min-width:0;background:#fff;border:1px solid #e5e2dd}
.jpd-pw-overview__image {display:flex;align-items:center;justify-content:center;background:#f8f7f5;padding:1rem;min-width:0;overflow:hidden}
.jpd-pw-overview__image img {object-fit:contain;max-width:100%;max-height:205px;width:auto;height:auto}
.jpd-pw-overview__body {display:grid;grid-template-rows:2.25rem minmax(3.4rem,auto) minmax(4.7rem,1fr) auto;align-content:start;padding:1.15rem 1.2rem 1.2rem;min-width:0}
.jpd-pw-overview .jpd-pw-overview__body .jpd-pw-overview__eyebrow {align-self:start;font-size:.65rem;line-height:1.35;margin:0;letter-spacing:.11em}
.jpd-pw-overview .jpd-pw-overview__body h2 {font-family:var(--pw-heritage);font-weight:400;font-size:clamp(1.85rem,2.6vw,2.45rem);line-height:1.08;letter-spacing:-.025em;color:var(--pw-ink);margin:0;align-self:start}
.jpd-pw-overview__body>p:not(.jpd-pw-overview__eyebrow) {margin:0;color:#51504e;line-height:1.55;font-size:.88rem}
.jpd-pw-overview__body>a {align-self:end;justify-self:start}
.jpd-pw-overview__body>a,.jpd-pw-overview__help a {color:var(--pw-red);font-weight:600;font-size:.86rem;text-decoration:underline;text-underline-offset:4px}
/* Compare: cards on constrained page widths, spacious table only when container permits. */
.jpd-pw-overview .jpd-pw {container-type:inline-size;width:100%;max-width:1180px;margin:3rem auto;color:var(--pw-ink)}
.jpd-pw__head {margin:0 0 1.3rem;max-width:680px}
.jpd-pw-overview .jpd-pw__head h2 {font-family:var(--pw-heritage);font-weight:400;font-size:clamp(1.85rem,3vw,2.5rem);line-height:1.12;margin:0 0 .5rem}
.jpd-pw__head p {color:var(--pw-muted);font-size:.92rem;line-height:1.6;margin:0}
.jpd-pw__desktop {display:none}
.jpd-pw__mobile {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;align-items:stretch}
.jpd-pw__card {--pw-accent:#41464b;display:flex;flex-direction:column;min-width:0;height:100%;padding:1.25rem 1.25rem 1rem;background:linear-gradient(var(--pw-accent),var(--pw-accent)) top/100% 4px no-repeat #fff;border:1px solid var(--pw-line);border-radius:4px}
.jpd-pw__card--fujiyama {--pw-accent:#41464b}
.jpd-pw__card--yamato {--pw-accent:#a52c35}
.jpd-pw__card--shori {--pw-accent:#99712f}
.jpd-pw__card--shogun {--pw-accent:#2f577f}
.jpd-pw__card--fujizakura {--pw-accent:#a43965}
.jpd-pw-overview .jpd-pw__card h3 {font-family:var(--pw-heritage);font-weight:400;font-style:normal;letter-spacing:-.02em;font-size:clamp(1.7rem,2.6vw,2.15rem);line-height:1.1;color:var(--pw-ink);margin:0 0 .3rem}
.jpd-pw__goal {margin:0 0 .9rem;padding:0 0 .8rem;border-bottom:1px solid var(--pw-line);color:var(--pw-accent);font-size:.68rem;font-weight:700;line-height:1.4;letter-spacing:.08em;text-transform:uppercase;min-height:2.6rem}
.jpd-pw__facts {margin:0 0 1.1rem;padding:0;display:grid;gap:0;width:100%}
.jpd-pw__facts .jpd-pw__fact {display:grid;grid-template-columns:minmax(95px,41%) minmax(0,1fr);gap:.65rem;align-items:start;padding:.47rem 0;border-bottom:1px solid #efeeec;min-width:0}
.jpd-pw__facts .jpd-pw__fact dt {margin:0;padding:0;float:none;width:auto;clear:none;font-size:.76rem;line-height:1.45;font-weight:400;color:#696561;letter-spacing:0;text-transform:none}
.jpd-pw__facts .jpd-pw__fact dd {margin:0;padding:0;float:none;width:auto;font-size:.82rem;line-height:1.45;font-weight:550;color:#292724;overflow-wrap:break-word}
.jpd-pw__card .jpd-pw__button {display:inline-block;align-self:flex-start;margin-top:auto;padding:.4rem 0 .1rem;color:var(--pw-accent);font-size:.82rem;line-height:1.5;font-weight:650;text-decoration:none;border-bottom:1px solid currentColor}
.jpd-pw__note {color:var(--pw-muted);font-size:.77rem;line-height:1.6;margin:1rem 0 0}
.jpd-pw-overview__help {padding:1.65rem 1.85rem;margin:2.5rem 0;background:#f8f7f5}
.jpd-pw-overview .jpd-pw-overview__help h2 {font-family:var(--pw-heritage);font-weight:400;font-size:2rem;line-height:1.1;margin:0 0 .6rem}
.jpd-pw-overview__help p {font-size:.9rem;line-height:1.6;max-width:760px;margin:0 0 .6rem}
/* Table activates only with sufficiently wide actual viewport, not at narrow desktop layouts. */
@media (min-width:1320px) {
 .jpd-pw__desktop {display:block;border:1px solid var(--pw-line);border-radius:5px;overflow:hidden}
 .jpd-pw__mobile {display:none}
 .jpd-pw__table {width:100%;min-width:0;border-collapse:collapse;table-layout:fixed;font-size:.82rem;background:#fff}
 .jpd-pw__table th,.jpd-pw__table td {vertical-align:top;text-align:left;padding:.8rem .6rem;border-bottom:1px solid var(--pw-line);line-height:1.45;overflow-wrap:break-word}
 .jpd-pw__table thead th {background:#f8f7f5;font-size:.73rem;font-weight:650}
 .jpd-pw__table thead th:nth-child(1){width:13%}
 .jpd-pw__table thead th:nth-child(2){width:17%}
 .jpd-pw__table thead th:nth-child(3){width:20%}
 .jpd-pw__table thead th:nth-child(4){width:12%}
 .jpd-pw__table thead th:nth-child(5){width:10%}
 .jpd-pw__table thead th:nth-child(6){width:20%}
 .jpd-pw__table thead th:nth-child(7){width:8%}
 .jpd-pw__table tbody th {font-family:var(--pw-heritage);font-size:1.35rem;font-weight:400;color:var(--pw-ink)}
 .jpd-pw__table tbody tr:last-child th,.jpd-pw__table tbody tr:last-child td{border-bottom:0}
 .jpd-pw__table a{color:var(--pw-red);text-decoration:underline;text-underline-offset:3px}
}
@media (max-width:850px){.jpd-pw-overview__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:620px){.jpd-pw__mobile{grid-template-columns:1fr}}
@media (max-width:560px){
 .jpd-pw-overview__grid{grid-template-columns:1fr}
 .jpd-pw-overview__card{grid-template-rows:210px 1fr}
 .jpd-pw-overview__body{grid-template-rows:2rem minmax(3rem,auto) minmax(3.2rem,1fr) auto}
 .jpd-pw-overview__help{padding:1.2rem}
 .jpd-pw__card{padding:1.1rem}
}

/* 1.3.0 enhancements. JS reveals controls only when active. */
.jpd-pw-overview [hidden],.jpd-pw [hidden] {display:none!important}
.jpd-pw-overview__tools {margin:1.25rem 0 1.5rem}
.jpd-pw-overview__filters {display:flex;flex-wrap:wrap;gap:.5rem}
.jpd-pw-overview__filters button,.jpd-pw-overview__compare-actions button {appearance:none;background:white;color:var(--pw-ink);border:1px solid #d8d3cf;border-radius:2rem;padding:.55rem .85rem;font:inherit;font-size:.85rem;cursor:pointer}
.jpd-pw-overview__filters button[aria-pressed="true"] {background:var(--pw-red);border-color:var(--pw-red);color:#fff}
.jpd-pw-overview__filters button:focus-visible,.jpd-pw-overview__compare-actions button:focus-visible,.jpd-pw-overview__compare-toggle:focus-visible {outline:2px solid var(--pw-red);outline-offset:3px}
.jpd-pw-overview__filter-status {font-size:.8rem;color:var(--pw-muted);margin:.7rem 0 0}
.jpd-pw-overview__features {display:flex;flex-wrap:wrap;gap:.35rem;margin:.55rem 0 .75rem}
.jpd-pw-overview__features span {font-size:.7rem;border:1px solid var(--pw-line);padding:.2rem .45rem;border-radius:2rem;line-height:1.35}
.jpd-pw-overview__body {grid-template-rows:2.25rem minmax(3.4rem,auto) auto auto auto auto;gap:.25rem}
.jpd-pw-overview__compare-choice {display:flex;align-items:center;gap:.4rem;font-size:.77rem;margin:.1rem 0 .75rem;cursor:pointer}
.jpd-pw-overview__compare-choice input {accent-color:var(--pw-red);width:1rem;height:1rem}
.jpd-pw-overview__compare-actions {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;margin:2.5rem 0 -2rem}
.jpd-pw-overview__compare-actions p {font-size:.87rem;color:var(--pw-muted);margin:0}
@media (max-width:560px){.jpd-pw-overview__body{grid-template-rows:2rem auto auto auto auto auto}}
@media (prefers-reduced-motion:reduce){.jpd-pw-overview__filters button{transition:none}}

/* Version 1.3.1: editorial side-by-side product comparison */
.jpd-pw--rich [hidden]{display:none!important}
.jpd-pw__rich-scroll{overflow-x:auto;max-width:100%;border:1px solid var(--pw-line,#e8e3dd);border-radius:7px;scrollbar-width:thin}
.jpd-pw__rich-scroll:focus-visible{outline:2px solid var(--pw-red,#9f232b);outline-offset:3px}
.jpd-pw__rich-table{width:100%;min-width:640px;table-layout:fixed;border-collapse:collapse;background:#fff;color:var(--pw-ink,#262321)}
.jpd-pw__rich-table th,.jpd-pw__rich-table td{padding:1rem .8rem;border-bottom:1px solid var(--pw-line,#e8e3dd);border-right:1px solid #f0edeb;vertical-align:top;overflow-wrap:anywhere;line-height:1.5;text-align:left;font-size:.85rem}
.jpd-pw__rich-table tr>:last-child{border-right:0}
.jpd-pw__rich-table tbody tr:last-child>*{border-bottom:0}
.jpd-pw__rich-table thead th{background:#faf9f7;vertical-align:top;width:190px}
.jpd-pw__rich-table .jpd-pw__attribute-header{width:155px;background:#f6f4f1;font-size:.8rem}
.jpd-pw__rich-table tbody th{background:#faf9f7;font-weight:650;color:#47403b;width:155px}
.jpd-pw__rich-table tbody tr:nth-child(even) td{background:#fdfcfb}
.jpd-pw__rich-product{display:flex;flex-direction:column;align-items:flex-start;gap:.35rem;min-width:0}
.jpd-pw__rich-product img{display:block;width:auto;height:112px;max-width:100%;object-fit:contain;margin:0 0 .5rem}
.jpd-pw__rich-product>a:first-child{text-decoration:none;color:inherit}
.jpd-pw__rich-name{display:block;font-family:var(--pw-heritage,Georgia,serif);font-size:1.55rem;font-weight:400;line-height:1.15;overflow-wrap:normal}
.jpd-pw__rich-type{font-size:.68rem;letter-spacing:.075em;color:var(--pw-red,#9f232b);font-weight:700}
.jpd-pw__rich-product p{font-size:.78rem;font-weight:400;line-height:1.5;margin:.3rem 0;color:var(--pw-muted,#615e5a)}
.jpd-pw__rich-product .jpd-pw__rich-link{font-size:.79rem;color:var(--pw-red,#9f232b);font-weight:650;text-decoration:underline;text-underline-offset:3px}
.jpd-pw__missing{color:#777;font-style:italic}
@media(max-width:720px){.jpd-pw__rich-table{min-width:600px}.jpd-pw__rich-table .jpd-pw__attribute-header,.jpd-pw__rich-table tbody th{width:115px}.jpd-pw__rich-table th,.jpd-pw__rich-table td{padding:.8rem .55rem}.jpd-pw__rich-product img{height:85px}}

/* 1.3.2: native, keyboard-accessible full nutritional declarations. */
.jpd-pw--rich,.jpd-pw--single-declaration{--pw-red:#a22835;--pw-ink:#252321;--pw-muted:#625e5a;--pw-line:#e9e5e1;color:var(--pw-ink)}
.jpd-pw__declarations{margin:2rem 0 0}
.jpd-pw__declarations>h3{font-family:var(--pw-heritage,Georgia,serif);font-size:clamp(1.55rem,2.6vw,2.15rem);font-weight:400;line-height:1.25;margin:0 0 .35rem}
.jpd-pw__declarations>p{font-size:.86rem;color:var(--pw-muted);line-height:1.6;margin:0 0 1.15rem}
.jpd-pw__declaration{border:1px solid var(--pw-line);background:#fff;margin:0 0 .65rem;border-radius:4px}
.jpd-pw__declaration summary{cursor:pointer;display:list-item;padding:1rem 1.15rem;font-weight:700;line-height:1.45;list-style-position:inside}
.jpd-pw__declaration summary span{float:right;font-size:.77rem;font-weight:400;color:var(--pw-red);margin-left:.5rem}
.jpd-pw__declaration summary:focus-visible{outline:2px solid var(--pw-red);outline-offset:3px}
.jpd-pw__declaration[open] summary{border-bottom:1px solid var(--pw-line);background:#faf9f7}
.jpd-pw__declaration-body{padding:.25rem 1.25rem 1.25rem;line-height:1.65;font-size:.9rem}
.jpd-pw__declaration-body h4{font-size:1.02rem;margin:1.25rem 0 .55rem;font-weight:700}
.jpd-pw__declaration-body h5{font-size:.9rem;margin:1rem 0 .25rem;font-weight:700}
.jpd-pw__declaration-body p{margin:.35rem 0 .8rem;overflow-wrap:anywhere}
.jpd-pw__declaration-body ul{margin:.25rem 0 1rem;padding:0 0 0 1.2rem}
.jpd-pw__declaration-body li{margin:.22rem 0;overflow-wrap:anywhere}
.jpd-pw__analysis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.25rem 1.25rem;margin:.4rem 0 1rem}
.jpd-pw__analysis>div{display:flex;align-items:baseline;justify-content:space-between;gap:.8rem;border-bottom:1px solid var(--pw-line);padding:.3rem 0}
.jpd-pw__analysis dt{font-weight:400;color:var(--pw-muted)}
.jpd-pw__analysis dd{font-weight:650;margin:0;white-space:nowrap}
.jpd-pw--single-declaration{max-width:850px;margin:1.5rem 0}
@media(max-width:650px){.jpd-pw__analysis{grid-template-columns:1fr}.jpd-pw__declaration summary span{float:none;display:block;margin:.25rem 0 0}.jpd-pw__declaration-body{padding:0 .9rem 1rem}}

/* 1.3.3: encapsulated declaration section for existing product layouts. */
.jpd-pw--integrated{box-sizing:border-box;position:relative;isolation:isolate;display:flow-root;clear:both;width:100%;max-width:min(100%,960px);min-width:0;margin:clamp(2rem,5vw,3.5rem) auto 2.5rem;padding:clamp(1.1rem,3.5vw,2rem);background:#faf9f7;border:1px solid #e9e5e1;border-radius:8px;z-index:1;overflow:visible}
.jpd-pw--integrated,.jpd-pw--integrated *{box-sizing:border-box}
.jpd-pw--integrated .jpd-pw__single-head{margin:0 0 1.4rem}
.jpd-pw--integrated .jpd-pw__eyebrow{color:#a22835;font-size:.73rem;font-weight:750;letter-spacing:.12em}
.jpd-pw--integrated .jpd-pw__single-head h2{font-family:Georgia,serif;color:#252321;font-weight:400;line-height:1.15;font-size:clamp(1.5rem,3vw,2.3rem);margin:.3rem 0 .5rem}
.jpd-pw--integrated .jpd-pw__single-head p{color:#625e5a;line-height:1.65;margin:0;font-size:.91rem}
.jpd-pw--integrated .jpd-pw__declaration{width:100%;max-width:100%;margin:0;overflow:visible}
.jpd-pw--integrated .jpd-pw__declaration summary{display:block;list-style:none;position:relative;padding:1rem 2rem 1rem 1.1rem}
.jpd-pw--integrated .jpd-pw__declaration summary::-webkit-details-marker{display:none}
.jpd-pw--integrated .jpd-pw__declaration summary:after{content:'+';position:absolute;right:1rem;top:.75rem;color:#a22835;font-size:1.5rem;line-height:1}
.jpd-pw--integrated .jpd-pw__declaration[open] summary:after{content:'−'}
.jpd-pw--integrated .jpd-pw__declaration-body{max-width:100%;overflow-wrap:anywhere}
.jpd-pw--integrated .jpd-pw__declaration-body dl{width:100%}
@media(max-width:600px){.jpd-pw--integrated{margin:1.75rem auto;padding:1rem}.jpd-pw--integrated .jpd-pw__analysis{grid-template-columns:1fr}.jpd-pw--integrated .jpd-pw__declaration summary span{float:none;display:block;margin:.25rem 0 0}}

/* 1.3.5: stable mount in post-content without changing theme templates. */
#jpd-pw-product-fallback{box-sizing:border-box;position:relative;display:block;clear:both;width:100%;max-width:100%;margin:0;min-width:0}
#jpd-pw-product-fallback > .jpd-pw--integrated{margin-top:2.5rem;margin-bottom:2.5rem}
main.jpd-page-main--product #jpd-pw-product-fallback{grid-column:1/-1}
@media(max-width:600px){#jpd-pw-product-fallback > .jpd-pw--integrated{margin-top:1.5rem;margin-bottom:1.5rem}}

/* 1.3.6: preserve the same product width on server-rendered block and fallback. */
.jpd-pw__product-mount{box-sizing:border-box;display:block;clear:both;width:100%;max-width:100%;min-width:0}
.jpd-page-main--product .jpd-pw__product-mount{grid-column:1/-1}
.jpd-pw__product-mount>.jpd-pw--integrated{margin-top:2.5rem;margin-bottom:2.5rem}
@media(max-width:600px){.jpd-pw__product-mount>.jpd-pw--integrated{margin-top:1.5rem;margin-bottom:1.5rem}}
