.product-facts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin:18px 0;padding:17px;background:var(--surface,#edf3ff);border-radius:18px;color:var(--ink,#162b48)}
.product-fact{display:flex;flex-direction:column;gap:6px;min-width:0}.fact-label{font-size:10px;font-weight:650;letter-spacing:.02em;color:var(--muted,#5d6c83)}.product-fact strong{font-size:19px;line-height:1.25;letter-spacing:-.5px}.product-fact strong small{font-size:11px;font-weight:500;letter-spacing:0}.fact-context,.fact-date{font-size:10px;line-height:1.5;color:var(--muted,#5d6c83);overflow-wrap:anywhere}.fact-date{font-size:9px}
.product-facts-detail{padding:24px;gap:22px;margin:25px 0}.product-facts-detail strong{font-size:25px}.product-facts-detail .fact-label{font-size:12px}.product-facts-detail .fact-context,.product-facts-detail .fact-date{font-size:12px}.fact-notes{grid-column:1/-1;font-size:12px;line-height:1.7}.fact-notes p{margin:0 0 12px}.fact-notes a{font-weight:600}.score-criteria{display:grid;gap:9px;margin:15px 0}.score-criteria>div{display:flex;justify-content:space-between;gap:16px}.score-criteria dd{margin:0;white-space:nowrap}.commerce-editor{padding:25px;background:var(--surface,#edf3ff);border-radius:22px;margin:24px 0}.commerce-editor input,.commerce-editor select,.commerce-editor textarea{width:100%;box-sizing:border-box}.commerce-editor label{display:block;margin:18px 0 7px}.commerce-editor p{font-size:13px;line-height:1.7}
@media(max-width:480px){.product-facts{padding:14px;gap:12px}.product-fact strong{font-size:17px}.product-facts-detail .product-fact strong{font-size:22px}.commerce-editor{padding:17px}}

.htl-star-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.htl-stars{position:relative;display:inline-block;font-size:19px;letter-spacing:1px;line-height:1.25;color:#a7b7d1;white-space:nowrap}.htl-stars-fill{position:absolute;left:0;top:0;overflow:hidden;color:#2c67ed;white-space:nowrap}.htl-star-row b{font-size:16px;letter-spacing:-.3px}.htl-star-row small{font-size:10px;margin-left:2px;font-weight:500}.product-facts-detail .htl-stars{font-size:25px}.product-facts-detail .htl-star-row b{font-size:22px}.purchase-hold{display:flex;flex-direction:column;background:#fff0e9;color:#803919}.purchase-hold p{font-size:13px;line-height:1.6}.purchase-hold span{font-size:12px}html[data-theme=dark] .htl-stars-fill{color:#8bb6ff}html[data-theme=dark] .purchase-hold{background:#3d2720;color:#ffd8c1}

/* Catalogue: a compact price and rating; supporting details live on the article. */
.commerce-card{display:flex;flex-direction:column;gap:8px;margin:16px 0 18px;color:var(--ink,#162b48)}
.commerce-card-price,.commerce-card-rating{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.commerce-card-price strong{font-size:18px;line-height:1.3;letter-spacing:-.4px}
.commerce-card-price>span,.commerce-card-label{font-size:10px;line-height:1.4;color:var(--muted,#5d6c83)}
.commerce-card .htl-star-row{gap:7px;flex-wrap:nowrap}
.commerce-card .htl-stars{font-size:15px;letter-spacing:0}
.commerce-card .htl-star-row b{font-size:12px;font-weight:650}
.commerce-card .htl-star-row small{display:none}

/* Supporting commerce context stays available without crowding the product. */
.commerce-details{grid-column:1/-1;min-width:0}
.commerce-details>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;padding:10px 14px;background:var(--bg,#f7f9ff);border-radius:14px;cursor:pointer;list-style:none;font-size:12px;font-weight:650;color:var(--ink,#162b48)}
.commerce-details>summary::-webkit-details-marker{display:none}
.commerce-details>summary:hover{color:var(--accent,#2458ee)}
.commerce-details>summary:focus-visible{outline:3px solid #5685ff;outline-offset:3px}
.commerce-details-toggle{font-size:20px;line-height:1;font-weight:400;transition:transform .18s ease}
.commerce-details[open] .commerce-details-toggle{transform:rotate(45deg)}
.commerce-details .fact-notes{padding:18px 4px 0;overflow-wrap:anywhere}
.commerce-details .commerce-source-date{margin:12px 0 0;color:var(--muted,#5d6c83);font-size:11px}
@media(prefers-reduced-motion:reduce){.commerce-details-toggle{transition:none}}

/* Related content remains a complete, keyboard-accessible list. */
/* A partial next card makes the horizontal collection discoverable. */
.related-rail{position:relative;isolation:isolate}
.connected-library .related-carousel{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc((100% - 80px)/3);gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:4px;padding:4px 4px 14px;overscroll-behavior-x:contain;scrollbar-width:none;-ms-overflow-style:none}
.related-carousel::-webkit-scrollbar{display:none;width:0;height:0}
.related-carousel>.card{scroll-snap-align:start;min-width:0;height:auto}
.related-carousel:focus-visible{outline:3px solid #5585ff;outline-offset:5px;border-radius:20px}
.related-controls{position:absolute;inset:0;pointer-events:none;z-index:2}
.related-controls[hidden]{display:none}
.related-controls button{position:absolute;top:clamp(110px,12vw,180px);display:grid;place-items:center;pointer-events:auto;width:48px;height:56px;padding:0;border:0;border-radius:16px;background:var(--paper,#f7f9ff);color:var(--ink);box-shadow:0 6px 28px #12366a26;font-size:26px;cursor:pointer;transition:opacity .18s,background .18s,box-shadow .18s}
.related-controls [data-related-step="-1"]{left:-12px}
.related-controls [data-related-step="1"]{right:-12px}
.related-controls button:hover{background:#2458ed;color:#fff;box-shadow:0 8px 28px #2458ed35}
.related-controls button:focus-visible{outline:3px solid #5585ff;outline-offset:4px}
.related-controls button:disabled{opacity:0;pointer-events:none}
@media(prefers-reduced-motion:reduce){.related-controls button{transition:none}}
.purchase-action{margin:24px 0 8px}
.purchase-action .purchase-button{display:inline-flex;align-items:center;justify-content:space-between;gap:30px;min-height:54px;padding:16px 24px;background:#2458ed;color:#fff;border:0;border-radius:16px;font-size:16px;font-weight:700;box-shadow:0 8px 24px #2458ed26;text-decoration:none}
.purchase-action .purchase-button:hover{background:#1846cb;box-shadow:0 10px 28px #2458ed40}
.purchase-action .purchase-helper{font-size:12px;line-height:1.6;color:var(--muted);margin:10px 0 5px}
.purchase-action .disclosure{font-size:11px;line-height:1.6;margin:0;color:var(--muted)}
.purchase-action-closing{padding:26px;background:var(--surface);border-radius:24px;margin-top:36px}
.prose .purchase-action-closing h2{font-size:22px;margin:0 0 18px}
@media(max-width:900px){.connected-library .related-carousel{grid-auto-columns:calc((100% - 60px)/2)}}
@media(max-width:600px){.connected-library .related-carousel{grid-auto-columns:86%}.purchase-action .purchase-button{width:100%;box-sizing:border-box}.purchase-action-closing{padding:20px}}

@media(max-width:600px){.related-controls button{width:44px;height:48px;top:110px;border-radius:14px}.related-controls [data-related-step="-1"]{left:-6px}.related-controls [data-related-step="1"]{right:-6px}}

/* The edge blends into the current day/night page background. */
.related-rail:has(.related-carousel)::after{content:"";position:absolute;z-index:1;inset:0 0 14px auto;width:clamp(48px,7vw,100px);background:linear-gradient(to right,transparent,var(--paper));pointer-events:none;opacity:1;transition:opacity .18s ease}
.related-rail.is-at-end::after{opacity:0}
@media(max-width:600px){.related-rail:has(.related-carousel)::after{width:48px}}
@media(prefers-reduced-motion:reduce){.related-rail:has(.related-carousel)::after{transition:none}}

/* Two separate destinations, aligned at the bottom of each product card. */
.commerce-product-card{display:flex;flex-direction:column;min-width:0}
.commerce-product-card .card-detail-link{display:flex;flex-direction:column;flex:1;min-width:0;border-radius:15px}
.commerce-product-card .card-copy{flex:1}
.card-actions{display:grid;grid-template-columns:auto auto;align-items:center;justify-content:space-between;gap:6px 10px;margin:auto 12px 12px}
.card .card-details{font-size:11px;font-weight:600;line-height:1.3;padding:12px 0;color:var(--muted)}
.card .card-details:hover{color:var(--accent)}
.card .card-buy{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:10px 11px;border-radius:11px;background:var(--surface);color:var(--accent);font-size:11px;font-weight:700;line-height:1.2;transition:background .15s,color .15s}
.card .card-buy:hover{background:#3268ed;color:#fff}
.card-buy .fa-amazon{font-size:17px;line-height:1}
.card-affiliate{grid-column:2;text-align:right;font-size:9px;line-height:1.3;color:var(--muted)}
@media(pointer:coarse){.card .card-buy,.card .card-details{min-height:44px}}
@media(prefers-reduced-motion:reduce){.card .card-buy{transition:none}}

/* The article is the primary destination; shopping stays secondary. */
.card-actions{grid-template-columns:1fr auto;gap:5px 8px}
.card .card-details{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;padding:12px 13px;border-radius:11px;background:var(--surface);color:var(--accent);font-size:12px;font-weight:700;line-height:1.35}
.card .card-details:hover{background:#3268ed;color:#fff}
.card .card-buy{justify-self:start;justify-content:flex-start;background:transparent;color:var(--muted);padding:10px 0;font-weight:500;min-height:40px}
.card .card-buy:hover{background:transparent;color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.card-affiliate{grid-column:2;align-self:center}
@media(pointer:coarse){.card .card-buy{min-height:44px}}

/* A clear alternative beneath the article action. */
.card-actions{grid-template-columns:auto 1fr;gap:8px 10px}
.card-or{font-size:11px;color:var(--muted);padding-left:3px}
.card .card-buy{justify-self:end;justify-content:center;background:var(--surface);color:var(--accent);padding:10px 11px;font-weight:700}
.card .card-buy:hover{background:#3268ed;color:#fff;text-decoration:none}
.card-affiliate{grid-column:1/-1;text-align:right}

/* Give the article a distinct primary treatment; keep or beside the merchant. */
.card-actions{grid-template-columns:1fr auto;column-gap:7px}
.card-or{justify-self:end;padding:0}
.card .card-details{background:#3268ed;color:#fff}
.card .card-details:hover{background:#2454c9;color:#fff}
:root[data-theme=dark] .card .card-details{background:#8db4ff;color:#101a2c}
:root[data-theme=dark] .card .card-details:hover{background:#b3cdff;color:#101a2c}
