/* JSM Guides — links from the shop to the guides: the home page row under New Arrivals and the box on product pages that a
   guide recommends. Colors and corners come from the site's design (--jsm-* in the theme's custom CSS). */

/* Home page: three cards side by side; on phones and tablets one compact row each (small photo | topic, title). */
.jsm-guides-home__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.jsm-guides-home__card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--jsm-line, #e9e5de); border-radius: var(--jsm-r, 12px); background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .04); color: var(--jsm-ink, #111); text-decoration: none; transition: box-shadow .2s ease, transform .2s ease; }
.jsm-guides-home__card:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.jsm-guides-home__img { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #fff; border-bottom: 1px solid var(--jsm-line, #e9e5de); }
.jsm-guides-home__img img { position: absolute; inset: 0; box-sizing: border-box; width: 100%; height: 100%; padding: 10px; object-fit: contain; }
.jsm-guides-home__body { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 14px 16px 16px; }
.jsm-guides-home__kicker { color: var(--jsm-red, #c8102e); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.jsm-guides-home__title { font-size: 1rem; font-weight: 700; line-height: 1.35; transition: color .2s ease; }
.jsm-guides-home__card:hover .jsm-guides-home__title { color: var(--jsm-red, #c8102e); }
/* Japan's Best Picks titles split at the colon: the name, then what is compared in a lighter line. */
.jsm-guides-home__title .bp-t__main, .jsm-guides-home__title .bp-t__sub { display: block; }
.jsm-guides-home__title .bp-t__sep { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jsm-guides-home__title .bp-t__sub { margin-top: 2px; font-size: .86em; font-weight: 500; color: #5f5a63; }
@media (max-width: 781px) {
	/* 2026-11-16: every card as tall as the tallest one, so a one-line title does not make a shorter card. */
	.jsm-guides-home__list { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; gap: 10px; }
	.jsm-guides-home__card { flex-direction: row; }
	.jsm-guides-home__img { flex: 0 0 104px; min-height: 104px; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--jsm-line, #e9e5de); }
	.jsm-guides-home__img img { padding: 6px; }
	.jsm-guides-home__body { gap: 4px; padding: 10px 14px; }
	.jsm-guides-home__title { font-size: .92rem; }
}

/* Product page: above the description. */
.jsm-guide-ref { display: grid; gap: 10px; margin-top: 28px; margin-bottom: 8px; }
.jsm-guide-ref__link { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 14px 18px; border: 1px solid #f4d6d4; border-radius: var(--jsm-r, 12px); background: var(--jsm-pink, #fdf1f0); color: var(--jsm-ink, #111); text-decoration: none; }
.jsm-guide-ref__kicker { flex-basis: 100%; color: var(--jsm-red, #c8102e); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.jsm-guide-ref__title { flex: 1 1 260px; min-width: 0; font-weight: 700; line-height: 1.35; }
.jsm-guide-ref__more { color: var(--jsm-red, #c8102e); font-size: .88rem; font-weight: 700; white-space: nowrap; }
.jsm-guide-ref__link:hover .jsm-guide-ref__title { color: var(--jsm-red, #c8102e); }
@media (max-width: 781px) {
	.jsm-guide-ref { margin-top: 20px; }
	.jsm-guide-ref__link { padding: 12px 16px; }
	.jsm-guide-ref__title { font-size: .95rem; }
}
