/* CV widgets redesign (PM-791). Skeleton mirrors pm-price-chart.css:
   navy #012543 / border #e3e8ee / surface #f7f9fb. Affiliate CV buttons are
   orange (complementary to the navy/blue site chrome — 2026-08-10 user
   decision); the BtoB consult CTA stays brand blue #2638E6 so the two
   conversion lanes never compete visually. */

/* --- shared --- */
/* Affiliate CV button. Color follows the legacy article button
   (.customBtn1.btnColor2 in style.css, #ee390c) so migrated articles keep
   the look readers already know (PM-1016); hover darkens instead of the
   legacy invert. Inline form (tables/rows) stays compact; the --block
   modifier is the legacy full-width pill used by [pm_asp_button] and the
   exchange card. */
.pm-cvbtn {
    display: inline-block;
    background: #ee390c;
    color: #fff !important;
    font-weight: 700;
    font-size: 13.5px;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    white-space: nowrap;
    line-height: 1.5;
    transition: background .2s ease;
}
.pm-cvbtn:hover { background: #c92e08; color: #fff; }
.pm-cvbtn::after { content: " ›"; font-weight: 700; }
.pm-cvbtn--block {
    display: block;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
    text-align: center;
    font-size: 16px;
    padding: 14px 24px;
    border-radius: 999px;
    white-space: normal;
}
.pm-cvbtn-wrap { margin: 16px 0; }
.pm-cvbtn-copy {
    margin: 0 0 4px !important;
    padding: 0;
    text-align: center;
    color: #ee390c;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.pm-exlogo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #e3e8ee;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #012543;
    flex: none;
    overflow: hidden;
}
.pm-exlogo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.pm-cvcard {
    border: 1px solid #e3e8ee;
    border-radius: 8px;
    margin: 24px 0;
    background: #fff;
    overflow: hidden;
}
.pm-cvcard-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid #e3e8ee;
}
.pm-cvcard-title { font-size: 15px; font-weight: 700; color: #012543; margin: 0; }
.pm-cvcard-pr { font-size: 11px; color: #8b98a5; flex: none; }
.pm-cvcard-foot {
    padding: 8px 16px 10px;
    font-size: 11px;
    color: #8b98a5;
    border-top: 1px solid #eef2f6;
}

/* --- [pm_exchange_table] row list (no grid, no horizontal scroll) --- */
.pmwidget-exchange-table.pm-cvcard { border: none; border-radius: 0; background: transparent; overflow: visible; }
.pmwidget-exchange-table .pm-cvcard-head { padding: 0 0 8px; border-bottom: 2px solid #012543; }
.pm-exrows { list-style: none; margin: 0; padding: 0; }
.pm-exrow {
    display: grid;
    grid-template-columns: minmax(150px, 1.1fr) minmax(0, 1.6fr) auto;
    align-items: center;
    gap: 8px 16px;
    margin: 0;
    padding: 12px 4px;
    border-bottom: 1px solid #e3e8ee;
}
.pm-exrow:last-child { border-bottom: none; }
.pm-exrow-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pm-exrow-facts { font-size: 12.5px; line-height: 1.6; color: #1a2733; min-width: 0; }
.pm-exrow-cv { justify-self: end; }
.pm-exrow-cv .pm-cvbtn-wrap { margin: 0; }
.pm-exrow-cv .pm-cvbtn { display: block; min-width: 236px; text-align: center; font-size: 13px; padding: 9px 16px; white-space: nowrap; }
.pmwidget-exchange-table .pm-cvcard-foot { padding: 8px 4px 0; border-top: none; }
.pm-ext-name { font-weight: 700; font-size: 13.5px; }
.pm-ext-reg { display: block; font-size: 10.5px; color: #8b98a5; font-weight: 400; }
@media (max-width: 640px) {
    .pm-exrow { grid-template-columns: 1fr; gap: 6px; padding: 14px 0; }
    .pm-exrow-cv { justify-self: stretch; }
    .pm-exrow-cv .pm-cvbtn { min-width: 0; width: 100%; box-sizing: border-box; white-space: normal; padding: 11px 12px; }
}

/* --- [pm_recommended_exchanges] --- */
.pm-reco-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid #eef2f6;
    flex-wrap: wrap;
}
.pm-reco-row:last-of-type { border-bottom: none; }
.pm-reco-purpose {
    flex: 0 0 112px;
    font-size: 13px;
    font-weight: 700;
    color: #012543;
    background: #f7f9fb;
    border: 1px solid #e3e8ee;
    border-radius: 8px;
    padding: 10px 6px;
    text-align: center;
    line-height: 1.5;
}
.pm-reco-row .pm-exlogo { width: 44px; height: 44px; }
.pm-reco-body { flex: 1; min-width: 180px; }
.pm-reco-name { display: block; font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.pm-reco-reason { display: block; font-size: 12.5px; color: #5a6b7a; line-height: 1.6; }
.pm-reco-row .pm-cvbtn { margin-left: auto; }

/* --- [pm_asp_button] --- */
.pmwidget-asp-button { margin: 24px 0; text-align: center; }
.pmwidget-asp-button .pm-cvbtn-wrap { margin: 0; }
.pmwidget-asp-button small { display: block; margin-top: 6px; font-size: 11px; color: #8b98a5; }

/* --- [pm_exchange_card] / [pm_exchange_cards] ---
   White card, hairline border, 16:9 hero, single column (mobile first).
   No gradients / heavy shadows. */
.pm-excard {
    border: 1px solid #e3e8ee;
    border-radius: 8px;
    background: #fff;
    margin: 24px 0;
    overflow: hidden;
    max-width: 100%;
}
.pm-excards .pm-excard { margin: 20px 0; }
.pm-excard-hero { margin: 0; }
.pm-excard-hero a { display: block; line-height: 0; }
.pm-excard-hero img {
    display: block;
    width: 100%;
    height: auto; /* keep the creative's own ratio (16:9 captures, 1.91:1 ASP banners) */
    margin: 0;
}
.pm-excard-hero figcaption {
    font-size: 10.5px;
    color: #8b98a5;
    text-align: right;
    padding: 4px 12px 0;
    line-height: 1.5;
}
.pm-excard-body { padding: 14px 16px 16px; }
.pm-excard-id { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pm-excard-id .pm-exlogo { width: 44px; height: 44px; }
.pm-excard-name { display: block; font-weight: 700; font-size: 16px; color: #012543; line-height: 1.4; }
.pm-excard-reg { display: block; font-size: 11px; color: #8b98a5; }
.pm-excard-points {
    list-style: none;
    margin: 0 0 12px !important;
    padding: 0 !important;
    font-size: 13.5px;
    line-height: 1.7;
    color: #1a2733;
}
.pm-excard-points li {
    position: relative;
    padding-left: 18px;
    margin: 0 !important;
}
.pm-excard-points li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.62em;
    width: 8px;
    height: 5px;
    border-left: 2px solid #ee390c;
    border-bottom: 2px solid #ee390c;
    transform: rotate(-45deg);
}
.pm-excard-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    font-size: 12.5px;
    color: #1a2733;
}
.pm-excard-facts li {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    border: 1px solid #e3e8ee;
    border-radius: 6px;
    overflow: hidden;
    line-height: 1.4;
}
.pm-excard-facts-k {
    padding: 5px 8px;
    background: #f0f3f7;
    color: #5a6b7a;
    font-weight: 600;
    white-space: nowrap;
}
.pm-excard-facts-v { padding: 5px 10px; background: #fff; }
.pm-excard .pm-cvbtn-wrap { margin: 0; }

/* --- BtoB inline CTA (above TOC) ---
 * Card composition (2026-08-13 PM-872): a softly-lifted white card
 * (hairline border + faint shadow) so the slot reads as a unit without
 * banner-level decoration; the blue button stays the only color. */
/* Type scale is set against the measured production body text (PC 16px /
 * SP 15px — 2026-08-13 PM-874): the heading must sit ABOVE body size or the
 * card sinks into the article flow. */
.pm-inline-cta {
    background: #fff;
    border: 1px solid #E4E4EA;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(35, 32, 49, 0.06);
    padding: 22px 28px;
    margin: 24px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.pm-inline-cta-tx { flex: 1; min-width: 220px; }
.pm-inline-cta-h {
    font-size: 17px;
    font-weight: 700;
    color: #232031;
    line-height: 1.55;
    margin: 0;
}
.pm-inline-cta-body { font-size: 13.5px; color: #74727d; line-height: 1.7; margin: 5px 0 0; }
.pm-inline-cta-btn {
    display: inline-block;
    background: #2638E6;
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: 999px;
    text-decoration: none !important;
    white-space: nowrap;
}
.pm-inline-cta-btn:hover { background: #1c2bc4; }
@media (max-width: 560px) {
    .pm-inline-cta { padding: 20px 18px; gap: 14px; }
    .pm-inline-cta-h { font-size: 16px; }
    .pm-inline-cta-body { font-size: 13px; }
    .pm-inline-cta-btn { width: 100%; text-align: center; }
}

@media (max-width: 560px) {
    .pm-reco-purpose { flex-basis: 100%; padding: 6px; }
    .pm-reco-row .pm-cvbtn { margin-left: 0; width: 100%; text-align: center; box-sizing: border-box; }
}

/* --- <details class="pm-details"> supplement toggles (2026-08-11) ---
   Card-language box so the open state reads as a distinct supplement block
   instead of body text: summary = header strip, body = separated pane. */
.pm-details {
    border: 1px solid #e3e8ee;
    border-radius: 8px;
    background: #fff;
    margin: 20px 0;
    overflow: hidden;
}
.pm-details > summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 16px;
    background: #f7f9fb;
    font-weight: 700;
    font-size: 14px;
    color: #012543;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pm-details > summary::-webkit-details-marker { display: none; }
.pm-details > summary::before {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid #012543;
    border-bottom: 2px solid #012543;
    transform: rotate(-45deg);
    transition: transform .15s ease;
    flex: none;
    margin-top: -2px;
}
.pm-details[open] > summary { border-bottom: 1px solid #e3e8ee; }
.pm-details[open] > summary::before { transform: rotate(45deg); margin-top: -4px; }
.pm-details__body { padding: 14px 16px; font-size: 13.5px; line-height: 1.9; color: #1a2733; }
.pm-details__body > :first-child { margin-top: 0; }
.pm-details__body > :last-child { margin-bottom: 0; }

/* --- 監修者 (editorial supervisor) box: single block at the top of content --- */
.pm-superv-box {
    margin: 0 0 28px;
    padding: 14px 16px 16px;
    border: 1px solid #e3e8ee;
    border-radius: 8px;
    background: #f7f9fb;
}
.pm-superv-box-h {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 15px;
    font-weight: 700;
    color: #012543;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #d6dee6;
}
.pm-superv-meta { font-size: 12px; font-weight: 400; color: #5a6b7a; }
.pm-superv-box p { font-size: 13px; line-height: 1.8; color: #1a2733; margin: 0 0 6px; }
.pm-superv-box p:last-child { margin-bottom: 0; }
.pm-superv-links { font-size: 12px; color: #5a6b7a; }
.pm-superv-box a { color: #012543; text-decoration: underline; }
