/* Japan's Best Picks, design 3 — loaded after picks-v2.css on /guides/ pages (picks-v3.php).
   Editorial commerce: the name once, one short line, then products. White space and photos lead; text is quiet.
   Type scale (phone → desktop): page title 26 → 36, article title 28 → 42, section 21 → 26, card title 17 → 20,
   body 16 → 16.5, small text 12.5–13.5. Red only for small accents and the buy button. */

.b3 { --b3-gap: 16px; background: #fff; }
.b3 .jsmg-wrap { max-width: 1160px; }

/* Shared small pieces */
.b3-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--bp-red); box-shadow: 0 0 0 4px var(--bp-blush); }
.b3-h2 { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.2; margin: 0 0 14px !important; }
.b3-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.b3-head a { font-size: 14px; font-weight: 700; color: var(--bp-ink) !important; text-decoration: none; }
.b3-head a:hover { text-decoration: underline; }
.b3-sec { padding: 40px 0 0; }
.b3-sec--first { padding-top: 22px; }

/* Hub and topic header: name, one line, categories — one compact block */
.b3-top { padding: 22px 0 0; border-bottom: 1px solid var(--bp-line); }
.b3-name { display: flex; align-items: center; gap: 12px; font-size: clamp(26px, 3vw, 36px) !important; line-height: 1.12; }
.b3-name--topic { display: block; }
.b3-tag { margin: 8px 0 0; max-width: 560px; font-size: 15.5px; line-height: 1.5; color: var(--bp-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b3-chips { margin-top: 14px; }
.b3-chips .bp-nav__cats { padding: 0 0 14px; }
.b3-chips .bp-chip { min-height: 36px; padding: 0 14px; font-size: 13.5px; }

/* Back link instead of the long breadcrumb: "‹ Japan's Best Picks / Beauty & Grooming" on one line */
.b3-back ol { list-style: none; margin: 0 0 10px; padding: 0; display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; line-height: 1.4; white-space: nowrap; overflow: hidden; }
.b3-back li { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.b3-back li:first-child { flex: none; }
.b3-back li:first-child::before { content: "‹"; margin-right: 6px; font-size: 15px; color: var(--bp-muted); }
.b3-back li + li::before { content: "/"; margin-right: 6px; color: #c4bcb8; }
.b3-back a { color: var(--bp-muted) !important; text-decoration: none; }
.b3-back a:hover { color: var(--bp-ink) !important; text-decoration: underline; }

/* Comparison cards */
.b3-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.b3-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--bp-line); border-radius: 16px; background: #fff; overflow: hidden; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease; }
.b3-card:hover { border-color: #ddd3cd; box-shadow: 0 10px 28px rgba(40, 20, 20, .07); }
.b3-card .b2-mosaic { aspect-ratio: 3 / 2; }
.b3-card__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; min-width: 0; }
.b3-card__meta { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bp-muted); }
.b3-card__title { font-family: var(--bp-serif); font-size: 20px; font-weight: 700; line-height: 1.22; color: var(--bp-ink); text-wrap: balance; }
.b3-card__sub { font-size: 13.5px; line-height: 1.45; color: var(--bp-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b3-card__cta { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 700; color: var(--bp-red); }
.b3-card--lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.b3-card--lead .b2-mosaic { aspect-ratio: auto; min-height: 300px; height: 100%; grid-template-columns: 2fr 1fr; }
.b3-card--lead .b3-card__body { justify-content: center; padding: 28px 32px; gap: 6px; }
.b3-card--lead .b3-card__title { font-size: clamp(24px, 2.4vw, 30px); }
.b3-card--lead .b3-card__sub { font-size: 15px; -webkit-line-clamp: 3; }

/* Categories: a row of small photo tiles */
.b3-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.b3-cat { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border: 1px solid var(--bp-line); border-radius: 14px; background: #fff; text-decoration: none; }
.b3-cat:hover { border-color: #ddd3cd; }
.b3-cat__img { flex: none; width: 52px; height: 52px; padding: 3px; border-radius: 10px; background: #fff; }
.b3-cat__img img { width: 100%; height: 100%; object-fit: contain; }
.b3-cat__name { font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--bp-ink); }

/* How we choose: short, at the end */
.b3-method { margin-top: 44px; padding: 32px 0 30px; background: var(--bp-soft); border-top: 1px solid var(--bp-line); }
.b3-method__intro { margin: 0 0 14px; max-width: 720px; font-size: 15px; line-height: 1.6; color: var(--bp-text); }
.b3-method__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; max-width: 900px; }
.b3-method__list li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.55; color: var(--bp-muted); }
.b3-method__list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--bp-red); }
.b3-method__list strong { color: var(--bp-ink); }
.b3-method__meta { margin: 14px 0 0; font-size: 13px; color: var(--bp-muted); }
.b3-hub .b3-method, .b3-topic .b3-method { margin-top: 48px; }

/* Shop band */
.b3-band { background: var(--bp-ink); color: #e9e6e3; }
.b3-band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 22px; padding-bottom: 22px; }
.b3-band p { margin: 0; font-size: 15.5px; }
.b3-band__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.b3-band__links a:not(.b2-btn) { color: #fff !important; font-weight: 700; font-size: 14.5px; text-decoration: none; }
.b3-band__links a:not(.b2-btn):hover { text-decoration: underline; }
.b3-shoplink { margin: 18px 0 0; font-size: 14.5px; font-weight: 700; }
.b3-shoplink a { color: var(--bp-ink) !important; text-decoration: none; }
.b3-shoplink a:hover { text-decoration: underline; }

/* Article header: back link, title, one trust line */
.b3-ahead { padding: 18px 0 0; }
.b3-ahead h1 { max-width: 860px; line-height: 1.1; }
.b3-t__main { display: block; font-size: clamp(28px, 3.6vw, 42px); }
.b3-t__sub { display: block; margin-top: 8px; font-family: var(--bp-sans); font-size: clamp(15px, 1.4vw, 17px); font-weight: 600; line-height: 1.45; letter-spacing: 0; color: var(--bp-muted); }
.b3-trust { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--bp-muted); }
.b3-trust a { color: var(--bp-muted) !important; text-underline-offset: 2px; }
.b3-nowrap { white-space: nowrap; }
.b3-pick__full { margin: -4px 0 12px !important; font-size: 13px !important; line-height: 1.45 !important; color: var(--bp-muted); }

/* The picks under the title */
.b3-picks { padding: 18px 0 4px; }
.b3-picks__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--pc-cols, 4), minmax(0, 1fr)); gap: 14px; }
/* position: relative keeps the price range's hidden screen-reader text inside the card (it widened the page on phones). */
.b3-pc { position: relative; display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 10px 12px 12px; border: 1px solid var(--bp-line); border-radius: 14px; background: #fff; }
.b3-pc__img { display: block; aspect-ratio: 1; margin: 0 0 8px; padding: 4px; border-radius: 10px; background: #fff; }
.b3-pc__img img { width: 100%; height: 100%; object-fit: contain; }
.b3-picks__list[style*="--pc-cols:1"] .b3-pc__img, .b3-picks__list[style*="--pc-cols:2"] .b3-pc__img, .b3-picks__list[style*="--pc-cols:3"] .b3-pc__img { width: 70%; margin-left: auto; margin-right: auto; }
.b3-pc__for { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bp-red); line-height: 1.35; }
.b3-pc__name { margin: 0; font-family: var(--bp-sans) !important; font-size: 15px !important; font-weight: 800 !important; line-height: 1.3 !important; letter-spacing: 0 !important; }
.b3-pc__name a { text-decoration: none; }
.b3-pc__name a:hover { text-decoration: underline; }
.b3-pc__key { margin: 0; font-size: 13px; line-height: 1.45; color: var(--bp-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b3-pc__buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.b3-pc__buy .b2-price { font-size: 16.5px; }
.b3-pc__buy .b2-btn { min-height: 36px; padding: 0 16px; font-size: 13.5px; }
.b3-pc__more { align-self: flex-start; margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--bp-muted) !important; text-decoration: none; }
.b3-pc__more:hover { color: var(--bp-ink) !important; text-decoration: underline; }
.b3-picks__note { margin: 8px 0 0; font-size: 12px; color: var(--bp-muted); }

/* Jump links */
.b3-toc { margin-top: 18px; border-top: 1px solid var(--bp-line); border-bottom: 1px solid var(--bp-line); background: #fff; }
.b3-toc ol { list-style: none; margin: 0; padding: 9px 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.b3-toc ol::-webkit-scrollbar { display: none; }
.b3-toc a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--bp-soft); font-size: 13px; font-weight: 600; color: var(--bp-text) !important; text-decoration: none; white-space: nowrap; }
.b3-toc a:hover { background: var(--bp-blush); }

/* Article body: one calm reading column; quieter headings */
.b3-body { padding-top: 6px; }
.b3-body > p, .b3-body > ul, .b3-body > ol, .b3-body > .wp-block-details, .b3-body > h2, .b3-body > .jsmg-note { max-width: 720px; }
.b3-body > h2 { margin: 44px 0 14px; padding-top: 0; font-size: clamp(22px, 2.2vw, 27px); }
.b3-body > h2::before { width: 22px; height: 2px; margin-bottom: 10px; }
.b3-body > p { font-size: 16.5px; line-height: 1.7; }
.b3-body > p:first-child { margin-top: 26px; }
.b3-body > ul > li, .b3-body > ol > li { padding: 12px 14px 12px 40px; font-size: 15px; }
.b3-body > ul > li::before { left: 14px; top: 16px; }
.b3 .b2-pick { gap: 24px; padding: 18px; border-radius: 16px; }
.b3 .b2-pick h3 { font-size: 21px; }
.b3 .b2-pick__body > p { font-size: 15.5px; }
.b3-related { margin-top: 0; padding: 34px 0 34px; background: #fff; }
.b3-related .b3-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Tablets */
@media (max-width: 1023px) {
	.b3-grid, .b3-related .b3-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.b3-card--lead .b2-mosaic { grid-template-columns: 2fr 1fr; min-height: 260px; }
	.b3-card--lead .b2-mosaic > span:nth-child(n+4) { display: none; }
	.b3-picks__list { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* Phones: one compact header, then cards; small cards become rows (photo left) so more fit on a screen */
@media (max-width: 760px) {
	.b3 .jsmg-wrap { padding: 0 16px; }
	.b3-top { padding-top: 16px; }
	.b3-name { gap: 10px; font-size: 26px !important; }
	.b3-name--topic { font-size: 28px !important; }
	.b3-tag { margin-top: 6px; font-size: 14.5px; }
	.b3-chips { margin: 12px -16px 0; }
	.b3-chips .bp-nav__cats { padding: 0 16px 12px; }
	.b3-sec { padding-top: 32px; }
	.b3-sec--first { padding-top: 16px; }

	/* Cards: the pick photos first, full width, then the name and the link */
	.b3-grid, .b3-related .b3-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.b3-card, .b3-card--lead { display: flex; grid-column: auto; border-radius: 14px; }
	.b3-card .b2-mosaic, .b3-card--lead .b2-mosaic { display: grid; grid-template-columns: 2fr 1fr; aspect-ratio: 16 / 9; min-height: 0; height: auto; }
	.b3-card .b2-mosaic > span { padding: 8px; }
	.b3-card .b2-mosaic > span:nth-child(n+4) { display: none; }
	.b3-card__body, .b3-card--lead .b3-card__body { padding: 12px 14px 14px; gap: 2px; }
	.b3-card__title, .b3-card--lead .b3-card__title { font-size: 19px; }
	.b3-card__cta { padding-top: 6px; font-size: 14px; }

	.b3-cats { display: flex; gap: 8px; margin: 0 -16px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
	.b3-cats::-webkit-scrollbar { display: none; }
	.b3-cat { flex: none; padding: 8px 12px 8px 8px; }
	.b3-cat__img { width: 40px; height: 40px; }
	.b3-cat__name { font-size: 13.5px; white-space: nowrap; }

	.b3-method { padding: 26px 0 24px; margin-top: 36px; }
	.b3-method__list { grid-template-columns: minmax(0, 1fr); gap: 6px; }
	.b3-method__intro { font-size: 14.5px; }
	.b3-band__in { padding-top: 18px; padding-bottom: 20px; }
	.b3-band p { font-size: 15px; }

	.b3-ahead { padding-top: 12px; }
	.b3-back ol { font-size: 12.5px; margin-bottom: 8px; }
	.b3-t__main { font-size: 26px; }
	.b3-t__sub { margin-top: 6px; font-size: 15px; }
	.b3-trust { margin-top: 10px; font-size: 12px; }
	.b3-picks { padding-top: 14px; }
	.b3-picks__scroll { margin: 0 -16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
	.b3-picks__scroll::-webkit-scrollbar { display: none; }
	.b3-picks__list { display: flex; gap: 10px; width: max-content; padding: 0 16px 2px; }
	.b3-pc { flex: none; width: calc((100vw - 42px) / 2.12); scroll-snap-align: start; padding: 8px 10px 10px; }
	.b3-pc__name { font-size: 14px !important; }
	.b3-pc__key { font-size: 12.5px; }
	.b3-pc__buy { flex-direction: column; align-items: stretch; gap: 6px; }
	.b3-pc__buy .b2-btn { width: 100%; }
	.b3-pc__more { align-self: center; }
	.b3-picks__note { font-size: 11.5px; }
	.b3-toc { margin-top: 14px; }
	.b3-toc .jsmg-wrap { padding: 0; }
	.b3-toc ol { padding: 8px 16px; }
	.b3-body > h2 { margin: 36px 0 12px; font-size: 22px; }
	.b3-body > p { font-size: 16px; }
	.b3-body > p:first-child { margin-top: 22px; }
	.b3 .b2-pick { padding: 14px 14px 16px; }
	.b3 .b2-pick h3 { font-size: 19px; }
	.b3-related { padding: 28px 0; }
}
@media (max-width: 359px) {
	.b3-pc { width: calc((100vw - 32px) * .64); }
}
@media (prefers-reduced-motion: reduce) {
	.b3-card { transition: none; }
}
