/* ============================================================
   revamp-home: Home ("/") and Stories ("/stories")
   Uses tokens and primitives from revamp.css. Prefixes: bl-home- / bl-stories-
   ============================================================ */

/* ---------- HOME: hero ---------- */
.bl-home-hero { padding: 48px 0 56px; background: var(--bl-page); }
.bl-home-hero h1 { margin: 0 0 22px; max-width: 12ch; color: var(--bl-night); font: 700 clamp(40px, 5.2vw, 70px)/1.05 var(--font-display); }
.bl-home-hero h1 em { font-style: normal; }
.bl-home-lead { margin: 0 0 32px; max-width: 46ch; color: var(--bl-slate); font-size: 18px; line-height: 1.55; }
.bl-home-hero .bl-trust { margin-top: 20px; }

.bl-home-search { display: flex; align-items: center; gap: 14px; max-width: 640px; padding: 10px 10px 10px 22px; border: 1px solid var(--bl-line); border-radius: var(--bl-r-pill); background: var(--bl-surface); box-shadow: var(--bl-shadow-md); }
.bl-home-search:focus-within { border-color: var(--bl-night); box-shadow: 0 0 0 3px rgba(245, 213, 63, .55), var(--bl-shadow-md); }
.bl-home-search-icon { width: 22px; height: 22px; flex: 0 0 auto; color: var(--bl-night); }
.bl-home-search-field { display: grid; gap: 4px; flex: 1; min-width: 0; }
.bl-home-search-field label { color: var(--bl-night); font: 800 10px/1 var(--font-body); letter-spacing: 1.4px; text-transform: uppercase; }
.bl-home-search-field input { width: 100%; min-height: 28px; padding: 0; border: 0; background: transparent; color: #3F4863; font: 600 16px/1.2 var(--font-body); }
.bl-home-search-field input:focus { outline: 0; box-shadow: none; }
.bl-home-search-field input::placeholder { color: #6B7385; opacity: 1; }
.bl-home-search-field { position: relative; }
.bl-home-search-field.has-clear { padding-right: 34px; }
.bl-home-search-clear { position: absolute; right: 0; bottom: 1px; z-index: 1; display: grid; place-items: center; width: 27px; height: 27px; padding: 0; border: 0; border-radius: 50%; background: var(--bl-cream, #F6F2E9); color: var(--bl-slate); cursor: pointer; transition: background .18s, color .18s; }
.bl-home-search-clear:hover { background: #ECE5D3; color: var(--bl-navy); }
.bl-home-search-clear:focus-visible { outline: 2px solid #2864FF; outline-offset: 2px; }
.bl-home-category-field { flex: 0 0 190px; padding-left: 16px; border-left: 1px solid var(--bl-line); }
.bl-home-search-field select { width: 100%; min-height: 28px; padding: 0 22px 0 0; border: 0; background: transparent; color: #3F4863; font: 600 16px/1.2 var(--font-body); text-overflow: ellipsis; }
.bl-home-search-field select:focus-visible { outline: 2px solid #2864FF; outline-offset: 3px; }
.bl-home-quiz-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 10px 0 0 4px; color: var(--bl-slate); font-size: 13px; font-weight: 600; text-underline-offset: 4px; }
.bl-home-quiz-link:hover { color: var(--bl-night); }
.bl-home-search-go { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 22px; flex: 0 0 auto; border: 0; border-radius: var(--bl-r-pill); font: 700 15px/1 var(--font-body); white-space: nowrap; background: var(--bl-lemon); color: var(--bl-night); cursor: pointer; transition: background .18s, transform .18s; }
.bl-home-search-go:hover { background: #F0CB1F; transform: translateX(2px); }
.bl-home-search-go svg { width: 20px; height: 20px; }

.bl-home-hero-card { position: relative; display: block; overflow: hidden; border-radius: var(--bl-r-xl); background: var(--bl-night); box-shadow: var(--bl-shadow-lg); aspect-ratio: 1200 / 840; color: #fff; text-decoration: none; }
.bl-home-hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.bl-home-hero-card:hover img { transform: scale(1.03); }
.bl-home-hero-preview { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(circle at 73% 24%, rgba(239, 255, 105, .3), transparent 26%), linear-gradient(145deg, var(--bl-night-2), var(--bl-night) 72%); }
.bl-home-hero-preview::before { content: ""; position: absolute; top: 10%; right: 13%; width: 52%; aspect-ratio: 1; border: clamp(24px, 5vw, 72px) solid var(--bl-lemon); border-radius: 50%; transform: rotate(-22deg); opacity: .9; }
.bl-home-hero-preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(5, 12, 29, .38)); }
.bl-home-hero-caption { position: absolute; left: 24px; bottom: 24px; display: grid; gap: 6px; max-width: min(420px, calc(100% - 48px)); padding: 20px 22px; border-radius: var(--bl-r-md); background: rgba(11, 21, 48, .88); backdrop-filter: blur(8px); }
.bl-home-hero-caption small { color: var(--bl-aqua); font: 700 11px/1.2 var(--font-body); letter-spacing: 1.4px; text-transform: uppercase; }
.bl-home-hero-caption strong { font: 700 var(--subsection)/1.2 var(--font-display); }
.bl-home-hero-caption span { color: rgba(255, 255, 255, .78); font-size: 13px; }

/* ---------- HOME: sections ---------- */
.bl-home-band { padding: 48px 0 64px; background: var(--bl-surface); }
.bl-home-band .bl-shell { margin-inline: auto; }
.bl-home-section { margin-inline: auto; }
.bl-home-band .bl-sec-head h2, .bl-home-section .bl-sec-head h2 { color: var(--bl-night); }
.bl-home-band .bl-sec-head > a, .bl-home-section .bl-sec-head > a { flex: 0 0 auto; }

/* "Pick your kind of day": heading, chips, one-line blurb, cards. The blurb belongs to the chip that is picked, so it sits close to the chips (14px) and the cards get a clear step below it (24px) */
.bl-home-moment-section .bl-sec-head { margin-bottom: 20px; }
.bl-home-moments { margin: 0; flex-wrap: wrap; }
.bl-home-moments + .bl-sec-sub { margin: 14px 0 24px; line-height: 1.5; }

.bl-home-skel-card { aspect-ratio: 4 / 5; border-radius: 20px; }
.bl-home-skel-person { height: 200px; border-radius: var(--bl-r-lg); }
.bl-home-state-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.bl-home-flavours { gap: 10px; }
.bl-home-flavour { min-height: 44px; padding: 0 22px; font-size: 14px; }
.bl-home-flavour.is-active { background: var(--bl-night); border-color: var(--bl-night); color: #fff; }
.bl-home-flavour.is-active:hover { color: #fff; background: var(--bl-night-2); }

.bl-home-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

.bl-home-cta { padding: 72px 0; background: radial-gradient(circle at 85% 0%, var(--bl-night-2), var(--bl-night) 65%); color: #fff; }
.bl-home-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-inline: auto; }
.bl-home-cta .bl-eyebrow { color: var(--bl-aqua); }
.bl-home-cta h2 { margin: 0 0 10px; color: #fff; font: 700 var(--bl-fs-h1)/1.12 var(--font-display); }
.bl-home-cta p:not(.bl-eyebrow) { margin: 0; max-width: 46ch; color: rgba(255, 255, 255, .78); font-size: 16px; }
.bl-home-cta :where(a):focus-visible { outline-color: var(--bl-lemon); }

.bl-home-how { padding-block: 48px 56px; background: var(--bl-night); color: #fff; }
.bl-home-how .bl-shell { margin-inline: auto; }
.bl-home-how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.bl-home-how-grid li { min-width: 0; padding: 24px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--bl-r-lg); background: rgba(255,255,255,.06); }
.bl-home-how-grid li > span { color: var(--bl-lemon); font: 700 12px/1 var(--font-body); letter-spacing: 1.4px; }
.bl-home-how-grid h3 { margin: 18px 0 8px; color: #fff; font: 700 var(--card-title)/1.25 var(--font-display); }
.bl-home-how-grid p { margin: 0; color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.6; }

.bl-how-page { min-height: 60vh; padding-bottom: 72px; background: var(--bl-page); }

/* ---------- HOME: tablet / mobile ---------- */
@media (max-width: 1024px) {
    .bl-home-hero { padding: 32px 0 44px; }
    /* image first on stacked layouts */
    .bl-home-hero-visual { order: -1; }
    .bl-home-hero h1 { max-width: 16ch; }
    .bl-home-hero-card { aspect-ratio: 16 / 10; }
    .bl-home-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bl-home-people > :nth-child(3) { display: none; }
    .bl-home-search { flex-wrap: wrap; border-radius: 24px; }
    .bl-home-search-field:not(.bl-home-category-field) { flex: 1 1 60%; }
    .bl-home-category-field { flex: 1 1 30%; }
}
@media (max-width: 640px) {
    .bl-home-hero { padding: 16px 0 36px; }
    .bl-home-hero-card { aspect-ratio: 4 / 3; border-radius: var(--bl-r-lg); }
    .bl-home-hero-caption { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 14px 16px; }
    .bl-home-hero-caption strong { font-size: 18px; }
    .bl-home-lead { margin-bottom: 24px; font-size: 16px; }
    .bl-home-search { padding: 8px 8px 8px 16px; gap: 10px; }
    .bl-home-search-field:not(.bl-home-category-field), .bl-home-category-field { flex: 1 1 100%; padding: 8px 4px; border-left: 0; border-bottom: 1px solid var(--bl-line); }
    .bl-home-category-field { padding-block: 10px; }
    .bl-home-search-go { flex: 1 1 100%; height: 48px; }
    .bl-home-how { padding-block: 36px 44px; }
    .bl-home-how-grid { grid-template-columns: 1fr; gap: 12px; }
    .bl-home-how-grid li { padding: 20px; }
    .bl-how-page { padding-bottom: 48px; }
    .bl-home-band { padding: 36px 0 44px; }
    .bl-home-band .bl-sec-head > a, .bl-home-section .bl-sec-head > a { align-self: stretch; justify-content: center; }
    .bl-home-skel-card { flex: 0 0 80%; }
    .bl-home-flavours { flex-wrap: nowrap; margin-inline: -16px; padding: 0 16px 6px; overflow-x: auto; scrollbar-width: none; }
    .bl-home-flavours::-webkit-scrollbar { display: none; }
    .bl-home-flavour { flex: 0 0 auto; }
    .bl-home-people { grid-template-columns: 1fr; gap: 14px; }
    .bl-home-people > :nth-child(3) { display: block; }
    .bl-home-cta { padding: 48px 0; }
    .bl-home-cta-inner { flex-direction: column; align-items: stretch; gap: 24px; }
    .bl-home-cta .bl-btn { width: 100%; }
}

/* ---------- STORIES ---------- */
.bl-stories-page { background: var(--bl-page); }
.bl-stories-kicker { margin: 0 0 10px; color: var(--bl-aqua); font: 700 11px/1.2 var(--font-body); letter-spacing: 1.4px; text-transform: uppercase; }

.bl-stories-chips { margin: 0; padding: 0; list-style: none; }
.bl-stories-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 26px; }

.bl-stories-latest { padding: 44px 0 72px; background: var(--bl-page); }
.bl-stories-latest .bl-shell { margin-inline: auto; }
.bl-stories-latest .bl-sec-head { align-items: center; }
.bl-stories-all { color: var(--bl-night); font: 700 13px/1 var(--font-body); text-decoration: none; }
.bl-stories-all:hover { text-decoration: underline; text-underline-offset: 4px; }
.bl-stories-trio { display: grid; grid-template-columns: repeat(auto-fill, min(407px, 100%)); justify-content: space-between; gap: 20px 16px; }
.bl-stories-tile { position: relative; display: block; overflow: hidden; height: 380px; border-radius: var(--bl-r-xl); background: var(--bl-night); color: #fff; text-decoration: none; }
.bl-stories-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.bl-stories-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 21, 48, 0) 35%, rgba(11, 21, 48, .9) 100%); }
.bl-stories-tile:hover img, .bl-stories-tile:focus-visible img { transform: scale(1.04); }
.bl-stories-tile:focus-visible { outline: 3px solid #2864ff; outline-offset: 3px; }
.bl-stories-tile-copy { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 22px; }
.bl-stories-tile h3 { margin: 0 0 8px; color: #fff; font: 700 var(--subsection)/1.2 var(--font-display); overflow-wrap: break-word; }
.bl-stories-tile-meta { margin: 0; color: rgba(255, 255, 255, .82); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .bl-stories-tile img { transition: none; } .bl-stories-tile:hover img { transform: none; } }
/* Stories block (layout idea from a Dribbble travel landing page's blog block; no colours or imagery borrowed):
   a heading with a small "See more" pill, then one large lead story beside a stack of compact rows */
.bl-stories-intro { min-width: 0; max-width: none; }
.bl-stories-intro h1 { margin: 0; color: var(--bl-night); font: 700 var(--page-title)/1.1 var(--font-display); overflow-wrap: break-word; }
.bl-stories-lede { margin: 10px 0 0; color: var(--bl-slate); font-size: 17px; line-height: 1.6; text-wrap: balance; }
.bl-stories-latest .bl-stories-head { align-items: flex-end; margin-bottom: 28px; }
.bl-stories-head-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 20px; }
.bl-stories-all:focus-visible { outline: 3px solid #2864ff; outline-offset: 3px; }
.bl-stories-feedfail { margin: 0 0 28px; }
.bl-stories-row, .bl-stories-card { color: inherit; text-decoration: none; }
.bl-stories-row:focus-visible, .bl-stories-card:focus-visible { outline: 3px solid #2864ff; outline-offset: 3px; }
.bl-stories-media, .bl-stories-thumb { position: relative; overflow: hidden; background: var(--bl-night); }
.bl-stories-media img, .bl-stories-thumb img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.bl-stories-cat { margin: 0; color: var(--bl-green); font: 700 12px/1.2 var(--font-body); letter-spacing: 1.2px; text-transform: uppercase; }
.bl-stories-byline { margin: 0; color: var(--bl-slate); font-size: 13px; line-height: 1.4; }
.bl-stories-cue { margin: 2px 0 0; color: var(--bl-navy); font: 600 13px/1.3 var(--font-body); }
a:hover > * > .bl-stories-cue, a:focus-visible > * > .bl-stories-cue { text-decoration: underline; text-underline-offset: 3px; }
/* Long text is clamped, so a long title or story never breaks the layout; the full story is one click away */
.bl-stories-card-excerpt { -webkit-line-clamp: 3; line-clamp: 3; color: var(--bl-slate); font-size: 16px; line-height: 1.6; }
.bl-stories-row-title, .bl-stories-card-title { -webkit-line-clamp: 2; line-clamp: 2; color: var(--bl-night); font: 700 18px/1.3 var(--font-display); }
.bl-stories-row-excerpt { -webkit-line-clamp: 2; line-clamp: 2; color: var(--bl-slate); font-size: 14px; line-height: 1.5; }
.bl-stories-card-title { font-size: 20px; line-height: 1.25; }
.bl-stories-card-excerpt { font-size: 15px; line-height: 1.55; }
.bl-stories-rows { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 0; list-style: none; }
.bl-stories-rows > li { border-bottom: 1px solid var(--bl-line); }
.bl-stories-rows > li:last-child { border-bottom: 0; }
.bl-stories-rows > li:first-child > .bl-stories-row { padding-top: 0; }
.bl-stories-row { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 20px; align-items: start; min-height: 44px; padding: 18px 0; border-radius: var(--bl-r-md); }
.bl-stories-thumb { width: 128px; height: 96px; border-radius: var(--bl-r-lg); }
.bl-stories-row-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bl-stories-card { display: flex; flex-direction: column; gap: 16px; width: 100%; min-width: 0; border-radius: var(--bl-r-lg); }
.bl-stories-card .bl-stories-media { aspect-ratio: 3 / 2; border-radius: var(--bl-r-lg); }
.bl-stories-card-copy { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; }
.bl-stories-card-copy .bl-stories-byline { margin-top: auto; padding-top: 4px; }
.bl-stories-latest .bl-stories-postcard { margin-top: 56px; }
a:hover > .bl-stories-row-copy > h3, a:hover > .bl-stories-card-copy > h3,
a:focus-visible > .bl-stories-row-copy > h3, a:focus-visible > .bl-stories-card-copy > h3 { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
    .bl-stories-media img, .bl-stories-thumb img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
    .bl-stories-row:hover img, .bl-stories-card:hover img,
    .bl-stories-row:focus-visible img, .bl-stories-card:focus-visible img { transform: scale(1.04); }
}
.bl-stories-postcard { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 32px; padding: 24px 28px; border-radius: var(--bl-r-lg); background: var(--bl-lemon); color: var(--bl-night); }
.bl-stories-postcard .bl-eyebrow { color: var(--bl-night); opacity: .7; margin-bottom: 6px; }
.bl-stories-postcard-line { margin: 0; font: 700 var(--section-title)/1.2 var(--font-display); }
.bl-stories-postcard .bl-btn-navy:hover { background: var(--bl-night-2); }

/* Brand note: why blue, why lemon. Picture left, copy right from 901px; stacked below. */
.bl-stories-brand { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: 48px; align-items: center; margin: 0 0 40px; }
.bl-stories-brand-media { overflow: hidden; border-radius: var(--bl-r-xl); background: var(--bl-night); aspect-ratio: 3 / 2; }
.bl-stories-brand-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bl-stories-brand-copy { min-width: 0; }
.bl-stories-brand-copy .bl-eyebrow { margin: 0 0 10px; }
.bl-stories-brand-copy h2 { margin: 0 0 22px; color: var(--bl-night); font: 700 var(--section-title)/1.15 var(--font-display); overflow-wrap: break-word; }
.bl-stories-brand-copy p { margin: 0; color: var(--bl-slate); font-size: 16px; line-height: 1.65; }
.bl-stories-brand-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 20px; }
.bl-stories-brand-copy .bl-stories-brand-label { display: inline-block; margin-bottom: 8px; padding: 2px 8px; border-radius: var(--bl-r-pill); background: var(--bl-lemon); color: var(--bl-night); font: 700 12px/1.4 var(--font-body); letter-spacing: 1.2px; text-transform: uppercase; }
.bl-stories-brand-copy .bl-stories-brand-close { color: var(--bl-night); font-weight: 600; }
.bl-stories-brand-copy .bl-stories-brand-by { margin-top: 14px; color: var(--bl-slate); font: 700 14px/1.2 var(--font-display); }
.bl-stories-brand-share { margin-top: 20px; }

/* Stories: a big lead story, then a grid that wraps (no sideways scroll, so nothing is cut off) */
.bl-stories-feature { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin: 0 0 56px; color: inherit; text-decoration: none; border-radius: var(--bl-r-xl); }
.bl-stories-feature:focus-visible { outline: 3px solid #2864ff; outline-offset: 6px; }
.bl-stories-feature-media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--bl-r-xl); background: var(--bl-night); }
.bl-stories-feature-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.bl-stories-feature-copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bl-stories-feature-title { margin: 0; color: var(--bl-night); font: 700 clamp(30px, 3.4vw, 46px)/1.1 var(--font-display); overflow-wrap: break-word; text-wrap: balance; }
.bl-stories-feature-excerpt { margin: 0; color: var(--bl-slate); font-size: 18px; line-height: 1.7; overflow-wrap: break-word; }
.bl-stories-feature .bl-stories-cue { margin-top: 6px; font-size: 15px; }
.bl-stories-feature:hover .bl-stories-feature-title, .bl-stories-feature:focus-visible .bl-stories-feature-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.bl-stories-more { margin: 0 0 24px; }
.bl-stories-more-title { margin: 0 0 20px; color: var(--bl-night); font: 700 var(--section-title)/1.15 var(--font-display); }
.bl-stories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 40px 28px; margin: 0; padding: 0; list-style: none; }
.bl-stories-grid > li { display: flex; min-width: 0; }
.bl-stories-grid .bl-stories-card-excerpt { -webkit-line-clamp: 4; line-clamp: 4; }
.bl-stories-brand { margin: 8px 0 48px; padding-bottom: 48px; border-bottom: 1px solid var(--bl-line); }
/* Browser width: the lead photo is sized to the window, so the whole picture shows on the first screen */
@media (min-width: 901px) {
    .bl-stories-latest { padding-top: 32px; }
    .bl-stories-feature-media { aspect-ratio: auto; height: clamp(300px, calc(var(--bl-vh) - var(--bl-nav-height) - 290px), 560px); }
}
@media (max-width: 900px) {
    .bl-stories-feature { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-bottom: 40px; }
    .bl-stories-brand { grid-template-columns: minmax(0, 1fr); gap: 24px; margin: 8px 0 36px; padding-bottom: 36px; }
    .bl-stories-brand-media { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
    .bl-stories-feature-media { border-radius: var(--bl-r-lg); }
    .bl-stories-feature-excerpt { font-size: 16px; }
    .bl-stories-grid { gap: 32px 20px; }
    .bl-stories-brand { margin-bottom: 28px; padding-bottom: 28px; }
    .bl-stories-brand-media { aspect-ratio: 4 / 3; border-radius: var(--bl-r-lg); }
    .bl-stories-brand-pair { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

@media (max-width: 900px) {
}
@media (max-width: 600px) {
    .bl-stories-bar { flex-direction: column; align-items: stretch; gap: 14px; min-width: 0; }
    .bl-stories-bar > * { min-width: 0; }
    .bl-stories-bar .bl-stories-all { align-self: flex-start; }
    .bl-stories-chips { flex-wrap: nowrap; margin-inline: -16px; padding: 0 16px 6px; overflow-x: auto; scrollbar-width: none; }
    .bl-stories-chips::-webkit-scrollbar { display: none; }
    .bl-stories-chips .bl-chip { flex: 0 0 auto; white-space: nowrap; }
    .bl-stories-latest { padding: 28px 0 48px; }
    .bl-stories-latest .bl-stories-head { flex-direction: row; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 20px; }
    .bl-stories-head-actions { justify-content: flex-start; }
    .bl-stories-row { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 14px 0; }
    .bl-stories-thumb { width: 88px; height: 88px; border-radius: var(--bl-r-md); }
    .bl-stories-row-title { font-size: 16px; }
    .bl-stories-latest .bl-stories-postcard { margin-top: 40px; }
    .bl-stories-postcard { flex-direction: column; align-items: stretch; padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .bl-home-hero-card img, .bl-home-search-go { transition: none; }
    .bl-home-hero-card:hover img { transform: none; }
}

/* Top-nav pages: the first screen is one complete view (nav excluded); the rest follows on scroll */
@media (min-width: 1101px) and (min-height: 600px) {
    .bl-home-hero { box-sizing: border-box; display: flex; align-items: center; min-height: calc(var(--bl-vh) - var(--bl-nav-height)); padding-block: 32px; }
}

/* Stories: linked cards, topic buttons, and the story page */
.bl-stories-chips button.bl-chip { font: inherit; cursor: pointer; }
.bl-stories-empty { margin: 8px 0 20px; color: var(--bl-slate); }
.bl-story-page { max-width: 760px; padding-top: 28px; padding-bottom: 56px; }
.bl-story-back { display: inline-flex; align-items: center; min-height: 40px; color: var(--bl-navy); font-weight: 600; text-decoration: none; }
.bl-story-page h1 { margin: 4px 0 12px; font-size: var(--page-title); }
.bl-story-lead { margin: 0 0 8px; color: var(--bl-night); font-size: 18px; line-height: 1.5; }
.bl-story-meta { margin: 0 0 20px; color: var(--bl-slate); font-size: 13px; }
.bl-story-hero { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--bl-r-lg); margin-bottom: 28px; }
.bl-story-body p { margin: 0 0 18px; font-size: 17px; line-height: 1.7; }
.bl-story-more-title { margin: 40px 0 16px; font-size: 22px; }
.bl-story-page .bl-stories-postcard { margin-top: 32px; }

/* Community stories: rail, share form, my stories, admin review */
.bl-stories-community { padding: 8px 0 24px; }
.bl-csf { position: relative; }
.bl-csf-viewport { overflow: hidden; border-radius: var(--bl-r-xl); background: var(--bl-night); }
.bl-csf-track { display: flex; transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
.bl-csf-slide { flex: 0 0 100%; display: flex; flex-direction: column; gap: 12px; min-height: 260px; padding: 28px 28px 24px; color: #fff; text-decoration: none; }
.bl-csf-slide:focus-visible { outline: 3px solid var(--bl-lemon); outline-offset: -3px; }
.bl-csf-label { margin: 0; color: var(--bl-lemon); font: 800 12px/1 var(--font-body); letter-spacing: 1.2px; text-transform: uppercase; }
.bl-csf-quote { margin: 0; font: 700 clamp(20px, 3.2vw, 28px)/1.3 var(--font-display); overflow-wrap: break-word; }
.bl-csf-title { margin: 0; color: rgba(255, 255, 255, .8); font-size: 14px; }
.bl-csf-by { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: auto 0 0; font-size: 14px; }
.bl-csf-mark, .bl-csf-tour { padding: 3px 10px; border-radius: var(--bl-r-pill); background: rgba(255, 255, 255, .14); font-size: 12px; }
.bl-story-meta .bl-csf-mark { background: var(--bl-cream, #f6f1e7); color: var(--bl-navy); }
.bl-csf-controls { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; }
.bl-csf-controls .bl-fc-btn { color: var(--bl-navy); }
.bl-csf-controls .bl-fc-btn:hover { background: rgba(11, 24, 48, .08); }
.bl-csf-controls .bl-fc-dot { background: rgba(11, 24, 48, .25); }
.bl-csf-controls .bl-fc-dot.is-active { background: var(--bl-navy); }
@media (prefers-reduced-motion: reduce) { .bl-csf-track { transition: none; } }
.bl-story-report { margin: 24px 0 0; font-size: 13px; }
.bl-story-form { display: grid; gap: 20px; margin-top: 24px; }
.bl-story-field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; }
.bl-story-field label, .bl-story-field legend { font-weight: 700; font-size: 14px; }
.bl-story-field input[type=text], .bl-story-field textarea, .bl-story-field select { width: 100%; padding: 12px 14px; border: 1px solid var(--bl-line); border-radius: var(--bl-r-md, 12px); background: #fff; font: 400 16px/1.5 var(--font-body); }
.bl-story-field small { color: var(--bl-slate); }
.bl-story-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.bl-story-check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.bl-story-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bl-story-error { margin: 0; color: #a3261c; font-weight: 600; }
.bl-story-notice { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--bl-r-md, 12px); background: #fff8d6; color: var(--bl-night); }
.bl-mystories { display: grid; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.bl-mystory { padding: 18px 20px; border: 1px solid var(--bl-line); border-radius: var(--bl-r-lg); background: #fff; }
.bl-mystory-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.bl-mystory-head h2 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.bl-mystory-status { padding: 4px 12px; border-radius: var(--bl-r-pill); background: #eef1f6; font-size: 12px; font-weight: 700; }
.bl-mystory-status.is-live { background: #dff5e8; }
.bl-mystory-status.is-notpublished, .bl-mystory-status.is-removed { background: #fde6e2; }
.bl-mystory-meta { margin: 6px 0 0; color: var(--bl-slate); font-size: 13px; }
.bl-mystory-note { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #f6f1e7; font-size: 14px; }
.bl-mystory-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.bl-mystory-confirm { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
/* Admin: the Live tab order controls and the "how it will look" preview (it reuses the real StoryRow) */
.bl-story-order-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.bl-story-move { min-height: 44px; white-space: nowrap; }
.bl-story-preview { display: grid; gap: 10px; max-width: 640px; padding: 16px 20px; border: 1px solid var(--bl-line); border-radius: var(--bl-r-lg); background: var(--bl-surface); }
.bl-story-preview h3 { margin: 0; font: 700 16px/1.3 var(--font-body); }
.bl-story-preview .bl-stories-rows > li:first-child > .bl-stories-row { padding-top: 0; }
.bl-story-preview .bl-stories-row { padding-bottom: 0; }
.bl-stories-row.is-preview { cursor: default; }
.bl-story-review { display: grid; gap: 14px; }
.bl-story-review .bl-story-body p { font-size: 15px; }
.bl-story-hits { padding: 12px 14px; border-radius: 10px; background: #fff3d6; font-size: 14px; }
.bl-story-hits ul { margin: 6px 0 0; padding-left: 18px; }
@media (max-width: 640px) { .bl-csf-slide { padding: 22px 20px 20px; min-height: 240px; } }

/* Flavour dropdown in the hero search: same bare look as the Where field, with the styled list */
.bl-home-search-field .bl-sel-btn { min-height: 28px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #3F4863; font: 600 16px/1.2 var(--font-body); }
.bl-home-search-field .bl-sel-btn:focus-visible, .bl-home-search-field .bl-sel.is-open .bl-sel-btn { box-shadow: none; }
.bl-home-search-field .bl-sel-btn .is-placeholder { color: #6B7385; }
.bl-home-search-field .bl-sel-pop { top: calc(100% + 14px); left: 0; right: auto; min-width: 240px; padding: 6px; }
.bl-home-search-field .bl-sel-list li { min-height: 40px; }

@media (max-width: 560px) {
    .bl-stories-trio { justify-content: center; }
    .bl-stories-tile { border-radius: var(--bl-r-lg); }
    .bl-stories-tile-copy { left: 18px; right: 18px; bottom: 18px; }
}

/* Story page: feature-card hero, a readable text column, then the same photo tiles as /stories */
.bl-sd { background: var(--bl-page); }
.bl-sd-wrap { margin-inline: auto; padding-top: 20px; padding-bottom: 8px; }
.bl-sd .bl-story-back { margin-bottom: 12px; }
.bl-sd-hero { position: relative; margin: 0; overflow: hidden; border-radius: var(--bl-r-xl); background: var(--bl-night); aspect-ratio: 21 / 8; min-height: 340px; color: #fff; }
.bl-sd-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bl-sd-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 21, 48, 0) 25%, rgba(11, 21, 48, .9) 100%); }
.bl-sd-hero-copy { position: absolute; z-index: 1; left: 36px; right: 36px; bottom: 32px; max-width: 24em; }
.bl-sd .bl-sd-hero h1 { margin: 0 0 12px; color: #fff; font: 700 var(--display)/1.08 var(--font-display); }
.bl-sd-meta { margin: 0; color: rgba(255, 255, 255, .82); font-size: 14px; }
.bl-sd-text { max-width: 720px; margin: 44px auto 0; }
.bl-sd-lead { margin: 0 0 28px; padding-bottom: 28px; border-bottom: 1px solid var(--bl-line); color: var(--bl-night); font: 600 clamp(20px, 2vw, 24px)/1.5 var(--font-display); }
.bl-sd .bl-story-body p { margin: 0 0 22px; color: var(--bl-ink, #111827); font-size: 18px; line-height: 1.75; }
.bl-sd .bl-story-body p:first-child::first-letter { float: left; margin: 4px 10px 0 0; color: var(--bl-night); font: 700 3.4em/.8 var(--font-display); }
.bl-sd-postcard { max-width: 720px; margin: 36px auto 0; }
.bl-sd-more { padding: 56px 0 72px; }
.bl-sd-more .bl-shell { margin-inline: auto; }
.bl-sd-more .bl-sec-head { align-items: center; }
.bl-sd-more .bl-stories-trio { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
@media (max-width: 1024px) {
    .bl-sd-hero { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
    .bl-sd-wrap { padding-top: 8px; }
    .bl-sd-hero { aspect-ratio: auto; min-height: 380px; border-radius: var(--bl-r-lg); }
    .bl-sd-hero-copy { left: 18px; right: 18px; bottom: 18px; }
    .bl-sd .bl-sd-hero h1 { font-size: 30px; }
    .bl-sd-text { margin-top: 28px; }
    .bl-sd .bl-story-body p { font-size: 17px; }
    .bl-sd-more { padding: 40px 0 48px; }
}

/* Home "how it works" band is navy; its heading and buttons flip to light */
.bl-home-how .bl-eyebrow { color: var(--bl-lemon); }
.bl-home-how .bl-sec-head h2 { color: #fff; }
.bl-home-how .bl-btn-outline { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.bl-home-how .bl-btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.bl-home-how :where(a):focus-visible { outline-color: var(--bl-lemon); }
.bl-home-how-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
@media (max-width: 600px) { .bl-home-how-actions { justify-content: flex-start; } }

/* ---------- Home hero stage (after the Indotravi reference, Dribbble 27082369) ----------
   A rounded photo stage with centred copy and search.
   Motion is CSS only and runs only when the visitor has not asked for reduced motion. */
.bl-home-hero.is-stage { display: block; min-height: 0; padding: clamp(10px, 1.6vw, 22px) 0 clamp(10px, 1.6vw, 22px); }
.bl-hs {
    /* phones: copy and search both sit inside the photo, high (start, not centre) so the open Where / Vibe panel has room to fall below the box.
       Desktop and tablet (from 641px) put the search bar on the photo's bottom edge instead: see "Home hero, search on the photo edge" below */
    position: relative; isolation: isolate; display: grid; place-items: start center;
    width: min(1560px, calc(100% - 2 * clamp(10px, 1.6vw, 24px))); margin-inline: auto;
    /* the first screen is the stage and nothing else: window height minus the nav and the section's own top and bottom padding, so "Pulp Picks" starts below the fold */
    min-height: clamp(560px, calc(var(--bl-vh) - var(--bl-nav-height) - 2 * clamp(10px, 1.6vw, 22px)), 1100px);
    padding: clamp(44px, 7vh, 80px) clamp(18px, 4vw, 64px) clamp(48px, 8vh, 96px);
    border-radius: clamp(20px, 2.4vw, 32px); transform-origin: 50% 100%;
}
.bl-hs-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; background: var(--bl-night); }
.bl-hs-media .bl-fc, .bl-hs-media .bl-home-hero-card { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.bl-hs-media .bl-home-hero-caption { left: 20px; top: 20px; bottom: auto; max-width: min(340px, 36%); padding: 12px 16px; background: rgba(11, 21, 48, .6); }
.bl-hs-media .bl-home-hero-caption strong { font-size: 16px; }
.bl-hs-scrim {
    position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
    background:
        radial-gradient(70% 58% at 50% 46%, rgba(5, 12, 29, .5), transparent 78%),
        linear-gradient(180deg, rgba(5, 12, 29, .34), rgba(5, 12, 29, .12) 38%, rgba(5, 12, 29, .58));
}
.bl-hs-copy { position: relative; z-index: 2; display: grid; justify-items: center; width: min(100%, 880px); text-align: center; }
.bl-hs-copy .bl-eyebrow { margin: 0 0 18px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); color: #fff; }
.bl-home-hero.is-stage h1 {
    max-width: none; margin: 0 0 18px; color: #fff; font: 700 clamp(40px, 6.2vw, 92px)/1.02 var(--font-display);
    letter-spacing: -.015em; text-wrap: balance; text-shadow: 0 2px 30px rgba(5, 12, 29, .35);
}
/* the shine from react-bits-fx.css paints the italic line in navy: on the photo it stays lemon */
.bl-home-hero.is-stage h1 em { background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor; color: var(--bl-lemon); animation: none; }
.bl-hs-copy .bl-home-lead { max-width: 52ch; margin: 0 auto 28px; color: rgba(255, 255, 255, .92); font-size: clamp(16px, 1.4vw, 19px); text-shadow: 0 1px 18px rgba(5, 12, 29, .4); }
.bl-hs-copy .bl-home-search { width: 100%; max-width: none; text-align: left; border-color: #fff; background: #fff; box-shadow: 0 18px 50px rgba(5, 12, 29, .35); }

@media (max-width: 640px) {
    /* the slideshow controls sit across the top of the photo: leave them their own band so the eyebrow tag never runs under them */
    .bl-hs { min-height: 0; padding: 68px 16px 44px; }
    /* phones: the show advances on its own, so drop the arrows; keep the dots (tap to jump) and the pause button, small */
    .bl-hs-media .bl-fc-controls { top: 12px; right: 12px; gap: 6px; padding: 2px 6px; }
    .bl-hs-media .bl-fc-controls .bl-fc-btn:not(.bl-fc-play) { display: none; }
    .bl-hs-media .bl-fc-controls .bl-fc-play { width: 44px; height: 44px; }
    /* Q-05 PHONE-04: each dot is a 22 x 44 tap area; the small round dot is drawn inside it, so the look stays the same */
    html body .bl-hs-media .bl-fc-dots { gap: 0; }
    html body .bl-hs-media .bl-fc-dot { position: relative; width: 22px; height: 44px; border-radius: 0; background: transparent; }
    html body .bl-hs-media .bl-fc-dot.is-active { width: 36px; background: transparent; }
    html body .bl-hs-media .bl-fc-dot::after { display: none; }
    html body .bl-hs-media .bl-fc-dot::before { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
    html body .bl-hs-media .bl-fc-dot.is-active::before { width: 22px; margin-left: -11px; border-radius: 8px; background: var(--bl-lemon); }
    .bl-home-hero.is-stage h1 { font-size: clamp(38px, 11.5vw, 48px); }
    .bl-hs-copy .bl-home-lead { margin-bottom: 22px; }
    .bl-hs-media .bl-home-hero-caption, .bl-hs-copy .bl-home-search-icon { display: none; }
}

/* Desktop: the stage spans the window minus a 24px gutter each side. From 1101px the page renders at zoom .8, so the gutter is
   written as 30 CSS px (30 x .8 = 24 screen px); the stage's parent is the full-width section, so 100% is the whole window. */
@media (min-width: 901px) {
    .bl-hs { width: calc(100% - 48px); }
}
@media (min-width: 1101px) {
    .bl-hs { width: calc(100% - 60px); }
}

/* Home search dropdowns (U-05): the page never moves for them. They always open below their field; --bl-home-dd-max is set on the form
   by blFitHomeDropdown (index.html) = the room under the field minus an edge margin. From 641px the bar sits on the photo's bottom edge
   (I-136, next block), so that room is the plain page under the photo; phones keep the copy near the top of the stage.
   Where: click or arrow opens "Hot right now" (the five hottest states); typing swaps it for the matches only. From 641px the panel is exactly as tall
   as heading + five rows + Done bar (--bl-hs-where-h), and a longer list of matches scrolls inside (block below the Vibe rules). Vibe: all twelve
   as chips in columns (VibeSelect), no inner scroll, its own height. */
.bl-hs { z-index: 5; }

/* Home hero, search on the photo edge (I-136 option C, owner 2026-11-28). From 641px the search bar sits half on the photo and half on the
   plain page below it, so the open Where / Vibe panel falls onto the page and never covers the photo. Placement only: the bar, the heading and
   the panels keep their own styling. The heading block is centred in the photo above the bar; the stage ends --bl-hs-room short of the window
   bottom so the panel has space to open into. --bl-hs-lap = about half the bar's height (how far the bar hangs below the photo). */
@media (min-width: 641px) {
    .bl-hs {
        --bl-hs-lap: 34px; --bl-hs-room: 430px; --bl-hs-dd-h: 240px; --bl-hs-where-h: 388px;
        padding: 0 clamp(18px, 4vw, 64px);
        /* The usual stage (480-1000px, ends --bl-hs-room short of the window bottom), but never so tall that fewer than the taller panel + 56px are
           left under the bar: on a short window the stage shrinks (down to 400px) so the panel still opens in full. */
        min-height: max(400px, min(
            clamp(480px, calc(var(--bl-vh) - var(--bl-nav-height) - 2 * clamp(10px, 1.6vw, 22px) - var(--bl-hs-room)), 1000px),
            calc(var(--bl-vh) - var(--bl-nav-height) - clamp(10px, 1.6vw, 22px) - max(var(--bl-hs-dd-h), var(--bl-hs-where-h)) - 56px)));
    }
    .bl-hs-media, .bl-hs-scrim { bottom: var(--bl-hs-lap); }
    .bl-hs-copy { align-self: stretch; align-content: center; box-sizing: border-box; padding: clamp(44px, 7vh, 80px) 0 calc(var(--bl-hs-lap) + clamp(36px, 5vh, 64px)); }
    .bl-hs-copy .bl-home-search { position: absolute; inset: auto 0 0; margin-inline: auto; }
    /* Between 641 and 1024 the old tablet rule wrapped the bar onto two rows, so a panel opened over the button row. The bar stays one pill. */
    .bl-hs-copy .bl-home-search { flex-wrap: nowrap; border-radius: var(--bl-r-pill); }
    .bl-hs-copy .bl-home-search-field:not(.bl-home-category-field) { flex: 2 1 0; }
    .bl-hs-copy .bl-home-category-field { flex: 1 1 0; }
}

.bl-home-search .bl-ps-global-pop { display: flex; flex-direction: column; max-height: min(460px, var(--bl-home-dd-max, 460px)); }
.bl-home-search .bl-ps-global-pop .bl-ps-list { flex: 0 1 auto; min-height: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; }
.bl-home-search .bl-ps-global-pop .bl-ps-searchbox, .bl-home-search .bl-ps-global-pop .bl-ps-foot { flex: 0 0 auto; }
.bl-home-search .bl-ps-destination-opt { min-height: 46px; }
.bl-home-search .bl-sel-pop { display: flex; flex-direction: column; max-height: min(460px, var(--bl-home-dd-max, 460px)); }
.bl-home-search .bl-sel-pop .bl-sel-list { flex: 0 1 auto; min-height: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; }

/* Vibe picker (VibeSelect): all twelve vibes as chips, 4 across x 3 down, any number can be picked (none = any vibe), no inner scroll.
   The panel lines up with the field's left edge; blFitHomeDropdown sets form[data-align="end"] when it would run off the window, and it lines up with the right edge instead. */
.bl-home-search .bl-vs .bl-sel-pop { width: min(520px, calc(var(--bl-vw, 100vw) - 24px)); padding: 14px; }
.bl-home-search[data-align="end"] .bl-vs .bl-sel-pop { left: auto; right: 0; }
/* On a phone neither edge fits: blFitHomeDropdown sets --bl-home-dd-shift (the overflow) and the panel slides left by it */
.bl-home-search .bl-ps-pop, .bl-home-search .bl-sel-pop { margin-left: calc(-1 * var(--bl-home-dd-shift, 0px)); }
.bl-vs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.bl-vs-done:focus-visible, .bl-vs .bl-ps-clear:focus-visible { outline: 3px solid #2864ff; outline-offset: 2px; }
.bl-vs-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: 0 0 auto; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--bl-line); }
.bl-vs-done { min-height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--bl-navy); color: #fff; font: 700 13px/1 var(--font-body); cursor: pointer; }
.bl-vs-done:hover { background: #2C3A5C; }
.bl-vs .bl-ps-clear[aria-disabled="true"] { opacity: .45; cursor: default; }
@media (max-width: 900px) {
    .bl-vs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .bl-vs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Panel heights on the Home hero (owner 2026-11-28, two steps). The Vibe panel is as tall as its twelve chips need (no scrollbar): --bl-hs-dd-h.
   From 641px it is 520px wide at any window width, so Vibe stays 4 across and one height fits every desktop and tablet width. The Where panel
   (second step: it no longer copies Vibe) is as tall as its heading, five destination rows and the Done bar: --bl-hs-where-h, so "Hot right now" shows
   with no scrollbar; a longer list of typed matches scrolls inside that height. The window room cap (--bl-home-dd-max) still wins on a very short window. */
@media (min-width: 641px) {
    .bl-home-search .bl-sel-pop { max-height: min(var(--bl-hs-dd-h), var(--bl-home-dd-max, var(--bl-hs-dd-h))); }
    .bl-home-search .bl-ps-global-pop { max-height: min(var(--bl-hs-where-h), var(--bl-home-dd-max, var(--bl-hs-where-h))); }
    .bl-home-search .bl-vs .bl-sel-pop { min-height: min(var(--bl-hs-dd-h), var(--bl-home-dd-max, var(--bl-hs-dd-h))); }
    /* DISC-48: the open "Hot right now" list measured 378px (its content) against the specified 388px, which the stage room is worked out from.
       The hot list (heading + five rows + Done bar) is held at --bl-hs-where-h like Vibe, the Done bar sits on the bottom edge; typed matches stay as tall as they are. */
    .bl-home-search .bl-ps-global-pop:has(.bl-ps-list.is-hot) { min-height: min(var(--bl-hs-where-h), var(--bl-home-dd-max, var(--bl-hs-where-h))); }
    .bl-home-search .bl-ps-global-pop:has(.bl-ps-list.is-hot) .bl-ps-foot { margin-top: auto; }
    .bl-home-search .bl-vs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Up to 900px wide, or on a touch screen, Clear and Done are 44px targets (revamp-type.css), 8px more than the 36px Done: both heights grow to match */
@media (min-width: 641px) and (max-width: 900px), (min-width: 641px) and (pointer: coarse) {
    .bl-hs { --bl-hs-dd-h: 248px; --bl-hs-where-h: 404px; }
}

@media (prefers-reduced-motion: no-preference) {
    /* the photo settles into its rounded frame; words come into focus one after another */
    .bl-hs-media { animation: bl-hs-settle 1.4s cubic-bezier(.2, .7, .2, 1) backwards; }
    .bl-hs-media img { animation: bl-fx-settle 2s cubic-bezier(.2, .7, .2, 1) backwards; }
    .bl-hs-copy > * { animation: bl-fx-focus .95s cubic-bezier(.2, .7, .2, 1) .2s backwards; }
    .bl-hs-copy > :nth-child(2) { animation-delay: .3s; }
    .bl-hs-copy > :nth-child(3) { animation-delay: .46s; }
    .bl-hs-copy > :nth-child(4) { animation-delay: .6s; }
}
@keyframes bl-hs-settle { from { transform: scale(1.045); border-radius: 6px; } }
/* QO-13: the scale above grows with the stage (4.5% of its width), so at 2560 the photo, its controls and the Pause button reached past the window
   edge (measured -32..2577 in a 2545 window) while the page gutter is a fixed 24px. From 1101px the photo settles by a fixed 14 CSS px (11 screen px
   at the .8 zoom) on each side instead, which always fits inside that gutter. The controls move with the box, so they are never under the scrollbar. */
@keyframes bl-hs-settle-wide { from { top: -14px; right: -14px; bottom: -14px; left: -14px; border-radius: 6px; } }
@media (prefers-reduced-motion: no-preference) and (min-width: 1101px) {
    .bl-hs-media { animation-name: bl-hs-settle-wide; }
}
@keyframes bl-hs-rise { from { opacity: 0; transform: translateY(30px) scale(.97); } }

/* scrolling: the stage eases back a little, then the picks come into focus as they enter (browsers without scroll timelines just show it) */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .bl-hs { animation: bl-hs-recede linear both; animation-timeline: scroll(root); animation-range: 0 80vh; }
        .bl-home-evening .bl-sec-head, .bl-home-evening .bl-card-row > *, .bl-home-section .bl-sec-head, .bl-home-how-grid > li {
            animation: bl-fx-ink linear backwards; animation-timeline: view(); animation-range: entry 0% entry 65%;
        }
    }
}
@keyframes bl-hs-recede { to { transform: scale(.955); } }

/* How it works: one slide at a time. Picture on the left, the steps on the right (picture on top on a phone).
   "For guests" shows first; the tabs, the Next button on the picture, or a swipe on a phone switch to "For locals".
   No fixed heights and no overflow:hidden on the body, so no text is ever cut off, in English or Chinese. */
.bl-how-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-inline: auto; padding-block: 24px 4px; }
.bl-how-top h1 { margin: 0; color: var(--bl-night); font: 700 clamp(34px, 4.6vw, 56px)/1.05 var(--font-display); }
.bl-hiw-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--bl-line); border-radius: 999px; background: var(--bl-surface); }
.bl-hiw-tab { min-height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--bl-slate); font: 700 15px/1 var(--font-body); cursor: pointer; transition: background-color .18s ease, color .18s ease; }
.bl-hiw-tab:hover { color: var(--bl-night); }
.bl-hiw-tab[aria-selected="true"] { background: var(--bl-lemon); color: var(--bl-night); }
.bl-hiw-tab:focus-visible, .bl-hiw-next:focus-visible, .bl-hiw-stage:focus-visible { outline: 2px solid var(--bl-night); outline-offset: 2px; }
.bl-hiw { margin-inline: auto; padding-block: 12px 0; }
.bl-hiw-stage { display: grid; touch-action: pan-y; scroll-margin-top: calc(var(--bl-nav-height, 64px) + 16px); }
/* Both slides share one grid cell: the stage is as tall as the taller slide, so For guests and For locals are always the same height. */
.bl-hiw-stage > .bl-hiw-slide { grid-area: 1 / 1; }
.bl-hiw-slide:not(.is-active) { visibility: hidden; pointer-events: none; }
.bl-hiw-slide { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); min-height: clamp(460px, 64vh, 620px); border: 1px solid var(--bl-line); border-radius: var(--bl-r-xl); background: var(--bl-surface); box-shadow: 0 24px 60px -40px rgba(17, 24, 39, .4); }
.bl-hiw-photo { position: relative; margin: 0; overflow: hidden; border-radius: calc(var(--bl-r-xl) - 1px) 0 0 calc(var(--bl-r-xl) - 1px); background: var(--bl-night); }
.bl-hiw-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.bl-hiw-next { position: absolute; left: 16px; bottom: 16px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--bl-surface); color: var(--bl-night); font: 700 15px/1 var(--font-body); box-shadow: 0 8px 24px -8px rgba(17, 24, 39, .5); cursor: pointer; transition: transform .18s ease, background-color .18s ease; }
.bl-hiw-next:hover { background: var(--bl-lemon); transform: translateY(-2px); }
.bl-hiw-body { display: flex; flex-direction: column; min-width: 0; padding: clamp(20px, 2.4vw, 32px); }
.bl-hiw-body h2 { margin: 0 0 12px; color: var(--bl-night); font: 700 var(--section-lg)/1.1 var(--font-display); overflow-wrap: break-word; text-wrap: balance; }
.bl-hiw-steps { display: grid; row-gap: 4px; margin: 0; padding: 0; list-style: none; }
.bl-hiw-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; padding: 10px 12px; border-radius: var(--bl-r-lg); transition: background-color .18s ease; }
.bl-hiw-steps li:hover { background: var(--bl-lemon); }
.bl-hiw-steps li:hover .bl-hiw-icon { background: var(--bl-surface); }
.bl-hiw-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--bl-page); color: var(--bl-night); transition: background-color .18s ease; }
.bl-hiw-steps h3 { margin: 0 0 4px; color: var(--bl-night); font: 700 var(--card-title)/1.25 var(--font-display); overflow-wrap: break-word; }
.bl-hiw-steps p { margin: 0; color: var(--bl-slate); font-size: 15px; line-height: 1.5; overflow-wrap: break-word; }
.bl-hiw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block: 14px 16px; }
.bl-hiw-status { color: var(--bl-slate); font-size: 13px; line-height: 1.45; }
.bl-hiw-details { margin-top: auto; padding: 14px 20px 4px; border-radius: var(--bl-r-lg); background: var(--bl-page); }
.bl-hiw-details h3 { margin: 0 0 10px; color: var(--bl-night); font: 700 16px/1.3 var(--font-display); }
.bl-hiw-details ul { display: grid; gap: 6px; margin: 0 0 2px; padding: 0; list-style: none; }
.bl-hiw-details li { position: relative; padding-left: 22px; color: var(--bl-slate); font-size: 15px; line-height: 1.55; overflow-wrap: break-word; }
.bl-hiw-details li::before { content: ""; position: absolute; top: .55em; left: 2px; width: 9px; height: 9px; box-sizing: border-box; border: 1.5px solid var(--bl-night); border-radius: 50%; background: var(--bl-lemon); }
.bl-hiw-contact { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--bl-night); font-weight: 700; text-decoration: underline; text-decoration-color: var(--bl-lemon); text-decoration-thickness: 2px; text-underline-offset: 5px; }
/* Desktop screen (wide and tall enough): the page fills the window under the header, so the footer waits below the fold at 100% zoom.
   The picture and the card take the free height. A short or narrow window keeps the natural height and scrolls. */
@media (min-width: 861px) and (min-height: 700px) {
    .bl-how-page { display: flex; flex-direction: column; min-height: calc(var(--bl-vh) - var(--bl-nav-height, 64px)); padding-bottom: clamp(32px, 4.5vh, 56px); }
    .bl-how-top { padding-block: clamp(20px, 3vh, 36px) 0; }
    .bl-hiw { flex: 1 1 auto; display: flex; flex-direction: column; padding-block: clamp(16px, 2.6vh, 32px) 0; }
    .bl-hiw-stage { flex: 1 1 auto; }
    .bl-hiw-slide { min-height: 0; }
    .bl-hiw-body { padding: clamp(24px, 3.4vh, 40px) clamp(24px, 2.8vw, 44px); }
    .bl-hiw-body h2 { margin-bottom: clamp(12px, 2vh, 22px); }
    .bl-hiw-steps { row-gap: clamp(4px, 1.2vh, 14px); }
    .bl-hiw-actions { margin-block: clamp(16px, 2.6vh, 30px); }
}
@media (max-width: 860px) {
    .bl-hiw-slide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: 0; }
    .bl-hiw-photo { height: 190px; border-radius: calc(var(--bl-r-xl) - 1px) calc(var(--bl-r-xl) - 1px) 0 0; }
    .bl-hiw-tabs { width: 100%; }
    .bl-hiw-tab { flex: 1 1 0; padding: 0 12px; }
}
@media (max-width: 640px) {
    .bl-hiw-photo { height: 170px; }
    .bl-hiw-body { padding: 20px 18px 16px; }
    .bl-hiw-steps li { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
    .bl-hiw-icon { width: 40px; height: 40px; border-radius: 12px; }
    .bl-hiw-actions .bl-btn { flex: 1 1 100%; justify-content: center; }
}
/* Entrance (React Bits "AnimatedContent" + "BlurText" idea, plain CSS): the picture glides in from the side the slide came from,
   then the heading, steps and details come into focus one after another. The animation starts when a slide becomes active, so it replays on every switch. */
@media (prefers-reduced-motion: no-preference) {
    .bl-hiw-slide { --hiw-shift: 7%; }
    .bl-hiw-stage[data-dir="prev"] .bl-hiw-slide { --hiw-shift: -7%; }
    .bl-hiw-slide.is-active { animation: bl-hiw-slide-in .55s cubic-bezier(.2, .7, .2, 1) both; }
    .bl-hiw-slide.is-active .bl-hiw-photo img { animation: bl-hiw-photo-in .9s cubic-bezier(.2, .7, .2, 1) both; }
    .bl-hiw-slide.is-active .bl-hiw-body > h2, .bl-hiw-slide.is-active .bl-hiw-steps li, .bl-hiw-slide.is-active .bl-hiw-actions, .bl-hiw-slide.is-active .bl-hiw-details { animation: bl-fx-focus .7s cubic-bezier(.2, .7, .2, 1) both; }
    .bl-hiw-slide.is-active .bl-hiw-body > h2 { animation-delay: .08s; }
    .bl-hiw-slide.is-active .bl-hiw-steps li:nth-child(1) { animation-delay: .16s; }
    .bl-hiw-slide.is-active .bl-hiw-steps li:nth-child(2) { animation-delay: .24s; }
    .bl-hiw-slide.is-active .bl-hiw-steps li:nth-child(3) { animation-delay: .32s; }
    .bl-hiw-slide.is-active .bl-hiw-actions { animation-delay: .4s; }
    .bl-hiw-slide.is-active .bl-hiw-details { animation-delay: .48s; }
}
@keyframes bl-hiw-slide-in { from { opacity: 0; transform: translateX(var(--hiw-shift)); } to { opacity: 1; transform: none; } }
@keyframes bl-hiw-photo-in { from { transform: scale(1.14) translateX(var(--hiw-shift)); } to { transform: none; } }
/* One-line notice after an account is deleted */
.bl-home-notice { margin: 0; padding: 14px 20px; background: var(--bl-lemon, #efff69); color: var(--bl-navy, #1a2340); font: 600 15px/1.4 var(--font-body); text-align: center; }

/* Q-05 TRUST-21: "Contact bluelemon" on How it works is a 44px tap target on phones; the look stays the same */
@media (max-width: 760px) { html body .bl-hiw-contact { min-height: 44px; } }

/* Home search: field titles darkest, chosen values a step lighter, hints grey (owner 2026-12-02) */
.bl-home-search-field .bl-ps-btn { color: #3F4863; }
.bl-home-search-field .bl-ps-btn .is-placeholder { color: #6B7385; }
