/* Approved reference form, shared by the catalog and questionnaire results. */
.offer-card.product-card{display:flex;flex-direction:column;align-items:stretch;gap:22px;padding:28px 30px 30px;border:1px solid var(--line);border-radius:30px;background:#fff;box-shadow:0 16px 48px #2e1c380f;container-type:inline-size}
.product-card>*{order:0;flex:none;min-width:0}
.offer-card.product-card>.price-panel,.offer-card.product-card>.offer-description{order:0;margin-top:0}
.product-card .reference-title .offer-tag{order:0;flex:none}
.product-card .reference-head{display:grid;grid-template-columns:minmax(0,1fr) 104px;gap:16px 20px;align-items:start}
.product-card .reference-head--plain{grid-template-columns:1fr}
.product-card .reference-title{display:flex;flex-direction:column;gap:10px;min-width:0}
.product-card .reference-title .offer-tag{color:var(--orange);font-size:11px;letter-spacing:1.5px;line-height:1.4}
.product-card .reference-title h3{margin:0;font:500 31px/1.2 var(--head);text-wrap:balance;overflow-wrap:break-word}
.product-card .reference-quality{position:relative;grid-column:2;grid-row:1 / 3;display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-height:104px;padding:12px 12px 24px;border:1px solid var(--line);border-radius:22px;background:#fff}
.product-card .reference-quality strong{font:600 33px/1 var(--font);letter-spacing:-1.5px;color:var(--orange)}
.product-card .reference-quality span{font-size:10px;font-weight:700;line-height:1.3;color:var(--ink)}
.product-card .reference-quality img{position:absolute;right:-4px;bottom:-22px;display:block;width:48px;height:48px;object-fit:contain}
/* Q&A titles flow into the space below the quality badge once its margin box ends. */
.product-card .reference-head--wrap-quality{display:block}
.product-card .reference-head--wrap-quality .reference-title{display:flow-root}
.product-card .reference-head--wrap-quality .reference-title .offer-tag{display:block;margin-bottom:10px}
.product-card .reference-head--wrap-quality .reference-title h3{text-wrap:pretty}
.product-card .reference-head--wrap-quality .reference-quality{float:right;grid-column:auto;grid-row:auto;width:104px;margin:0 0 22px 20px}
.product-card .reference-head--wrap-quality .reference-chips{margin-top:16px}
.product-card .reference-chips{grid-column:1;grid-row:2;display:flex;flex-wrap:wrap;gap:7px;min-width:0}
.product-card .reference-chips>span{max-width:100%;padding:6px 10px;border:1px solid var(--peach);border-radius:100px;background:var(--peach);color:var(--ink);font:600 12px/1.35 var(--font);overflow-wrap:break-word}
.product-card .reference-fact-label{opacity:.78;font-weight:500}
.product-card .reference-chips strong{font-weight:600}
.product-card>.offer-description{margin:0;font-size:16px;line-height:1.6;color:var(--text)}
.product-card .reference-topics{padding-top:20px;border-top:1px solid var(--line)}
.product-card .reference-topics h4{margin:0 0 12px;color:var(--text);font-size:11px;font-weight:700;line-height:1.4;letter-spacing:1.5px;text-transform:uppercase}
.product-card .reference-topics ul{display:grid;gap:9px;margin:0;padding:0;list-style:none}
.product-card .reference-topics li{position:relative;padding-left:15px;font-size:15px;line-height:1.5;color:var(--text)}
.product-card .reference-topics li::before{content:'';position:absolute;left:0;top:.65em;width:5px;height:5px;border-radius:50%;background:var(--orange)}
.product-card .price-panel{display:grid;align-items:start;margin:0;min-height:0;padding:17px 18px;border:1px solid var(--line);border-radius:20px;background:#fff;container-type:normal}
.product-card .price{font-size:43px}
.product-card .bento-actions{position:relative;display:block}
.product-card .bento-actions>details{display:block;margin:0;pointer-events:auto}
.product-card .bento-actions summary{width:calc(50% - 5px);min-height:56px;padding:12px 8px;border:1px solid var(--line);border-radius:100px;background:#fff;font-size:14px;line-height:1.25}
.product-card .bento-actions summary::after{content:'+';margin-left:10px;font-size:20px;font-weight:400;line-height:1}
.product-card .bento-actions details[open] summary::after{content:'−'}
.product-card .bento-actions>.fair-button{position:absolute;right:0;top:0;width:calc(50% - 5px);min-height:56px;padding:12px 8px;border:1px solid var(--btn-line);border-radius:100px;background:var(--peach);color:var(--ink);font-size:14px;line-height:1.25;box-shadow:none}
.product-card .bento-actions>.fair-button:only-child{position:static;width:100%}
.product-card .bento-actions>.fair-button[aria-pressed=true]{background:#fff;border-color:var(--line);color:var(--ink)}
.product-card .bento-actions .details-body{margin:18px 0 0;padding:20px 0 0;border-top:1px solid var(--line);min-width:0}
.product-card .details-body p,.product-card .details-body li{font-size:16px;line-height:1.6}
.product-card .details-body h4{font-size:17px}
.product-card .bento-actions :focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.product-card .spin-path{display:grid;gap:17px;margin:0;padding:0;list-style:none;counter-reset:spin}
.product-card .spin-path>li{position:relative;padding-left:40px;counter-increment:spin}
.product-card .spin-path>li::before{content:counter(spin,decimal-leading-zero);position:absolute;left:0;top:1px;display:grid;place-items:center;width:26px;height:26px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--orange);font:600 11px/1 var(--font)}
.product-card .spin-path>li:not(:last-child)::after{content:'';position:absolute;left:13px;top:33px;bottom:-9px;width:1px;background:var(--line)}
.product-card .spin-path p{margin:0;color:var(--text);font-size:15px;line-height:1.55}
.product-card .spin-path>li[data-spin=P] p{color:var(--ink);font-weight:600}
.product-card .spin-path>li[data-spin=N]::before{color:var(--ink);background:var(--peach);border-color:var(--peach)}
.product-card .spin-path>li[data-spin=N] p{color:var(--ink)}
.product-card .spin-details{display:grid;gap:14px}
.product-card .spin-detail-block{padding:20px;border:1px solid var(--line);border-radius:18px;background:#fff}
.product-card .spin-detail-block--cost{border-left:3px solid var(--orange)}
.product-card .spin-detail-block--outcome{border-right:3px solid var(--orange)}
.product-card .spin-detail-block h4{margin:0 0 10px;color:var(--ink);font-size:18px;line-height:1.35}
.product-card .spin-detail-block p{margin:0;color:var(--text);font-size:16px;line-height:1.6}
.product-card .spin-path strong,.product-card .spin-detail-block strong{color:var(--ink);font-weight:700}
.product-card .spin-support-note{margin:0;padding:0 2px;font-size:13px;line-height:1.5;color:var(--text)}
/* Results keep all existing recommendation copy and their independent controls. */
@media(max-width:860px){
 .offer-card.product-card{gap:20px;padding:22px 18px 24px}
 .product-card .reference-head{grid-template-columns:minmax(0,1fr) 86px;gap:16px 14px}
 .product-card .reference-head--plain{grid-template-columns:1fr}
 .product-card .reference-title h3{font-size:28px}
 .product-card .reference-quality{grid-row:1;min-height:100px;padding:10px 9px 24px;border-radius:19px}
 .product-card .reference-quality img{right:-4px;bottom:-17px;width:44px;height:44px}
 .product-card .reference-quality strong{font-size:28px}
 .product-card .reference-head--wrap-quality .reference-quality{width:86px;margin:0 0 20px 14px}
 .product-card .reference-chips{grid-column:1 / -1;gap:6px;margin-top:5px}
 .product-card .reference-chips>span{font-size:11px;padding:6px 9px}
 .product-card .price-panel{padding:14px}
 .product-card .spin-path>li{padding-left:36px}
 .product-card .spin-path p{line-height:1.6}
}
@container(max-width:350px){
 .product-card .bento-actions summary,.product-card .bento-actions>.fair-button{font-size:13px}
 .product-card .bento-actions summary::after{margin-left:5px}
}
@media print{.product-card .bento-actions>.fair-button{display:none}.product-card .bento-actions summary{width:100%}}

.product-card .bento-actions details[open]>summary{background:#fff}
