/*
 * Home page on phones — Figma 02_Home_Mobile (8:4597, 375 wide, 20px gutter).
 * Loaded after home.css; desktop (> 780px) is untouched except where noted.
 * Weights carry !important (site-wide legacy "font-weight: inherit !important").
 */

/* Pieces that only exist on one side. */
.bh-trust__short, .bh-more-m, .bh-timeline, .bh-m { display: none; }

/* Desktop fixes: rail arrows sit inside the rail edge (1:2690); fallback hero copy at top 260 (1:1995). */
.bh .bh-arrow--prev { inset-inline-start: 0; }
.bh .bh-arrow--next { inset-inline-end: 0; }
.bh-hero:not(.bh-hero--pictures) .bh-hero__body { top: 260px; transform: none; }

@media (max-width: 780px) {
	/* Tokens. */
	.bh { --bh-gutter: 20px; }
	.bh-section { padding-top: 48px; }
	.bh-head { padding-bottom: 22px; }
	.bh .bh-head .bh-more { display: none; } /* Phones: the "All …" link is a full-width button after the content. */
	.bh .bh-kicker { font-size: 10.5px; line-height: 14.7px; letter-spacing: 1.89px; }
	.bh .bh-title { font-size: 30px; line-height: 33px; letter-spacing: -.3px; }
	.bh .bh-more-m { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; margin-top: 22px; border-radius: 999px; background: var(--bh-pill); font-size: 12.5px; font-weight: 500 !important; letter-spacing: 1px; text-transform: uppercase; color: var(--bh-coffee); }
	[dir="rtl"] .bh .bh-more-m { letter-spacing: 0; }
	.bh-d { display: none; }
	.bh-m { display: inline; }

	/* Section order (Figma note): categories, rewards, most loved, then story, gifts, worlds, journal. */
	.home #bh-main { display: flex; flex-direction: column; }
	.home #bh-main > * { order: 20; }
	.home #bh-main > .bh-sr { order: 0; }
	.home #bh-main > .bh-hero { order: 1; }
	.home #bh-main > .bh-trust { order: 2; }
	.home #bh-main > .bh-cats { order: 3; }
	.home #bh-main > .bh-rewards { order: 4; }
	.home #bh-main > .bh-best { order: 5; }
	.home #bh-main > .bh-story { order: 6; }
	.home #bh-main > .bh-gifts { order: 7; }
	.home #bh-main > .bh-worlds { order: 8; }
	.home #bh-main > .bh-journal { order: 9; }

	/* Hero fallback (8:4714). */
	.bh-hero:not(.bh-hero--pictures) { height: 600px; min-height: 0; }
	.bh-hero:not(.bh-hero--pictures) .bh-hero__body { top: auto; bottom: 40px; }
	.bh .bh-hero__kicker { font-size: 10.5px; letter-spacing: 1.89px; }
	.bh-hero__kicker span { width: 22px; }
	.bh .bh-hero__title { margin-top: 18px; font-size: 50px; line-height: 47px; letter-spacing: -1px; }
	.bh .bh-hero__text { margin-top: 17px; }
	.bh .bh-hero .bh-btn { display: flex; justify-content: center; width: 100%; height: 52px; margin-top: 26px; font-size: 13px; letter-spacing: 1.3px; }

	/* Trust strip (8:4598): three columns, icon over a short label. */
	.bh .bh-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6.5px; padding: 14px 12px; border-top: 0; }
	.bh .bh-trust__item { flex-direction: column; justify-content: flex-start; gap: 7px; text-align: center; }
	.bh .bh-trust__item .bh-icon { width: 26px; height: 26px; }
	.bh .bh-trust__item p { display: none; }
	.bh .bh-trust__short { display: block; font-size: 11.5px; line-height: 14.38px; font-weight: 400 !important; color: var(--bh-body); }

	/* Categories (8:4629): 2 columns, 150px pictures; an odd last tile spans the row. */
	.bh .bh-cats__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; overflow: visible; margin: 0; padding: 0; }
	.bh .bh-cats__grid li { flex: none; }
	.bh .bh-cats__grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.bh .bh-cat__img { aspect-ratio: auto; height: 150px; margin-bottom: 10px; border-radius: 14px; }
	.bh .bh-cat__name { font-size: 14.5px; }
	.bh .bh-cat__count { font-size: 12.5px; }

	/* Most loved rail (8:4738): 224px cards. */
	.bh .bh-carousel__track { grid-auto-columns: 224px; gap: 14px; }
	.bh .bh-card__img { height: 186px; padding: 16px; }
	.bh .bh-card__img img { max-height: 154px; }
	.bh .bh-card__body { padding: 14px; }
	.bh .bh-card__name { min-height: 38px; font-size: 14.5px; line-height: 18.85px; }
	.bh .bh-card__price { margin-top: 12px; margin-bottom: 14px; font-size: 16px; }
	.bh .bh-card__add { height: 44px; font-size: 12px; letter-spacing: .96px; }
	.bh .bh-badge { top: 12px; inset-inline-start: 12px; }

	/* Story (8:4775): smaller frame, copy at the start side, full-width button, timeline below. */
	.bh .bh-story__frame { padding: 16px; border-radius: 20px; }
	.bh .bh-story__media { height: 376px; border-radius: 14px; }
	.bh-story__shade, [dir="rtl"] .bh-story__shade { background: linear-gradient(to top, rgba(var(--bh-shade), .86) 6%, rgba(var(--bh-shade), .35) 48%, rgba(var(--bh-shade), 0) 82%); }
	.bh .bh-story__body { inset-inline: 20px; bottom: 22px; width: auto; align-items: stretch; text-align: start; }
	.bh .bh-story__title { font-size: 27px; line-height: 28.62px; letter-spacing: -.405px; }
	.bh .bh-story__text { margin-top: 10px; font-size: 14.5px; line-height: 21.75px; }
	.bh .bh-story .bh-more { justify-content: center; width: 100%; height: 44px; margin-top: 16px; font-size: 12.5px; letter-spacing: 1px; }
	.bh .bh-story .bh-more > span { display: none; }
	.bh .bh-timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-top: 22px; }
	.bh-timeline li { padding-top: 16px; border-top: 1px solid var(--bh-line-2); }
	.bh .bh-timeline strong { display: block; font-size: 22px; font-weight: 500 !important; color: var(--bh-coffee); }
	.bh .bh-timeline span { display: block; margin-top: 4px; font-size: 13px; line-height: 18.85px; font-weight: 300 !important; color: var(--bh-desc); }

	/* Gifts (8:4815): a swipeable rail, 300px tall; first card 250px, the rest 200px. */
	.bh .bh-gifts__grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--bh-gutter)); padding-inline: var(--bh-gutter); scroll-padding-inline: var(--bh-gutter); grid-template-rows: none; }
	.bh .bh-gifts__grid::-webkit-scrollbar { display: none; }
	.bh .bh-gift { flex: 0 0 200px; height: 300px; border-radius: 16px; scroll-snap-align: start; }
	.bh .bh-gift--big { flex-basis: 250px; }
	.bh .bh-gift::after, .bh .bh-gift--big::after { background: linear-gradient(to top, rgba(74, 58, 50, .76), rgba(74, 58, 50, 0) 58%); }
	.bh .bh-gift__body, .bh .bh-gift--big .bh-gift__body { inset-inline-start: 20px; inset-inline-end: 20px; bottom: 19px; }
	.bh .bh-gift--big .bh-gift__kicker { display: none; }
	.bh .bh-gift__name, .bh .bh-gift--big .bh-gift__name { font-size: 20px; }
	.bh .bh-gift__text { font-size: 13.5px; }

	/* Worlds (8:4836). */
	.bh .bh-worlds__grid { gap: 16px; }
	.bh .bh-world__img { height: 143px; }
	.bh .bh-world__body { padding: 20px; }
	.bh .bh-world__ar { font-size: 19px; }
	.bh .bh-world__name { font-size: 16px; }
	.bh .bh-world__text { font-size: 14px; line-height: 21px; }
	.bh .bh-world__cta { padding-top: 10px; font-size: 12.5px; letter-spacing: 1.25px; }

	/* Journal (8:4865): no "Read article" line on phones. */
	.bh .bh-journal { padding-bottom: 48px; }
	.bh .bh-journal__grid { gap: 16px; }
	.bh .bh-post__img { height: 187px; }
	.bh .bh-post__body { padding: 16px 18px 20px; }
	.bh .bh-post__meta { font-size: 10.5px; line-height: 13.65px; letter-spacing: 1.26px; }
	.bh .bh-post__title { font-size: 17px; line-height: 22.1px; }
	.bh .bh-post__text { font-size: 14px; line-height: 21.7px; }
	.bh .bh-post__cta { display: none; }
}
