/* Shared by the editor and public pages; never style unrelated article content. */
.wpo-product-link-card { box-sizing: border-box; container-type: inline-size; min-width: 0; }
/* Gutenberg controls the width and margins of its editable block wrapper. */
.wpo-product-link-card:where(:not(.block-editor-block-list__block)) { margin: 32px 0; max-width: 100%; }
.wpo-product-link-card *, .wpo-product-link-card *::before, .wpo-product-link-card *::after { box-sizing: border-box; }
.wpo-product-link-card .wpo-product-link-card__link {
    display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: center; gap: 26px;
    width: 100%; padding: 24px; border: 1px solid #dfe6f2; border-radius: 20px;
    background: linear-gradient(120deg, #f8faff, #fff 65%); color: #17243c;
    font-family: "Noto Sans JP", sans-serif; text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(38, 78, 133, .06);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.wpo-product-link-card a.wpo-product-link-card__link:hover { border-color: #9baff6; box-shadow: 0 12px 28px rgba(49, 91, 244, .12); transform: translateY(-2px); }
.wpo-product-link-card a.wpo-product-link-card__link:focus-visible { outline: 3px solid #315bf4; outline-offset: 4px; }
.wpo-product-link-card .wpo-product-link-card__media { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; padding: 12px; border-radius: 16px; background: #eef3ff; overflow: hidden; }
/* Article image rules use height:auto; keep the entire image inside this card. */
.wpo-product-link-card .wpo-product-link-card__media img { display: block; width: 100%; height: 100% !important; max-width: 100%; object-fit: contain; border: 0; border-radius: 10px; margin: 0; }
.wpo-product-link-card .wpo-product-link-card__placeholder { color: #8093c4; font: 700 36px/1 sans-serif; letter-spacing: -.05em; }
.wpo-product-link-card .wpo-product-link-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-width: 0; overflow-wrap: anywhere; }
.wpo-product-link-card .wpo-product-link-card__eyebrow { color: #5067ed; font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: .12em; }
.wpo-product-link-card .wpo-product-link-card__title { display: block; margin: 0; padding: 0; color: #17243c; font-size: 22px; font-weight: 800; line-height: 1.5; letter-spacing: -.025em; }
.wpo-product-link-card .wpo-product-link-card__summary { display: block; color: #607087; font-size: 15px; font-weight: 400; line-height: 1.85; letter-spacing: normal; white-space: pre-line; }
.wpo-product-link-card .wpo-product-link-card__cta { display: block; margin-top: 5px; color: #315bf4; font-size: 14px; font-weight: 700; line-height: 1.6; letter-spacing: normal; }
.wpo-product-link-card__editor { margin-bottom: 16px; padding: 16px; border: 1px dashed #a8bdd1; border-radius: 12px; background: #fff; color: #1e1e1e; font: 13px/1.5 sans-serif; }
.wpo-product-link-card__empty { padding: 24px; border: 1px solid #dfe6f2; border-radius: 16px; background: #f8faff; color: #607087; font: 14px/1.8 sans-serif; }
@container (max-width: 560px) {
    .wpo-product-link-card .wpo-product-link-card__link { grid-template-columns: 100px minmax(0, 1fr); gap: 18px; padding: 20px; }
    .wpo-product-link-card .wpo-product-link-card__title { font-size: 19px; }
    .wpo-product-link-card .wpo-product-link-card__summary { font-size: 14px; }
}
@container (max-width: 380px) {
    .wpo-product-link-card .wpo-product-link-card__link { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .wpo-product-link-card .wpo-product-link-card__media { height: 140px; aspect-ratio: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .wpo-product-link-card .wpo-product-link-card__link { transition: none; }
    .wpo-product-link-card a.wpo-product-link-card__link:hover { transform: none; }
}
