/* revamp-help: Help Centre, Contact, Host community, Host resources.
   Prefixes: bl-help-, bl-contact-, bl-comm-, bl-res- */

:where(.bl-help, .bl-contact, .bl-comm, .bl-res) { color: var(--ink-primary); }
:where(.bl-help, .bl-contact, .bl-comm, .bl-res) [hidden] { display: none !important; }
:where(.bl-help, .bl-contact, .bl-comm, .bl-res) :is(h1, h2, h3, p, ul, figure) { margin: 0; }
:where(.bl-help, .bl-contact, .bl-comm, .bl-res) ul { padding: 0; list-style: none; }
:where(.bl-help, .bl-contact, .bl-comm, .bl-res) button { font-family: inherit; color: inherit; }
:where(.bl-help, .bl-contact, .bl-comm, .bl-res) svg { display: block; }

/* shared: yellow icon badge */
.bl-help-badge { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; background: #FFF1A8; color: var(--ink-primary); }
.bl-help-badge svg { width: 18px; height: 18px; }

/* shared: cream card */
.bl-help-card, .bl-help-topic, .bl-contact-path, .bl-comm-card, .bl-res-card {
    border: 1px solid var(--bl-line); border-radius: 20px; background: var(--surface-cream);
}

/* =========================================================  HELP CENTRE  */
.bl-help-hero { background: var(--surface-dark); color: #fff; padding: 28px 0 44px; text-align: center; }
.bl-help-hero-inner { display: flex; flex-direction: column; align-items: center; gap: 0; }
.bl-help-hero h1 { color: #fff; max-width: 20ch; margin-bottom: 8px; }
.bl-help-search { position: relative; display: flex; align-items: center; width: min(700px, 100%); height: 58px; padding: 0 8px 0 20px; border-radius: 999px; background: var(--surface-cream); box-shadow: 0 14px 34px rgba(0, 0, 0, .28); }
.bl-help-search-icon { display: grid; place-items: center; flex: 0 0 auto; margin-right: 12px; color: var(--ink-primary); }
.bl-help-search-icon svg { width: 20px; height: 20px; }
.bl-help-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--ink-primary); font: 400 16px/1.4 var(--font-body); }
.bl-help-search input::placeholder { color: var(--ink-secondary); opacity: 1; }
.bl-help-search input:focus { outline: 0; }
.bl-help-search:focus-within { box-shadow: 0 0 0 3px var(--accent-yellow), 0 14px 34px rgba(0, 0, 0, .28); }
.bl-help-search-go { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border: 0; border-radius: 50%; background: var(--accent-yellow); color: var(--ink-primary); cursor: pointer; }
.bl-help-search-go svg { width: 18px; height: 18px; }
.bl-help-search-go:hover { background: #F0CB1F; }

.bl-help-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; padding-block: 28px 64px; }
.bl-help-main { display: grid; gap: 24px; min-width: 0; }
.bl-help-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.bl-help-head-note { color: var(--ink-secondary); }

.bl-help-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.bl-help-topic { display: grid; grid-template-columns: auto 1fr; align-content: start; gap: 8px 12px; width: 100%; height: 100%; min-height: 128px; padding: 16px 18px; text-align: left; cursor: pointer; box-shadow: 0 6px 18px rgba(26, 35, 64, .05); transition: border-color .15s, box-shadow .15s, transform .15s; }
.bl-help-topic:hover { border-color: rgba(26, 35, 64, .3); box-shadow: var(--bl-shadow-md); transform: translateY(-1px); }
.bl-help-topic.is-selected { border-color: var(--ink-primary); box-shadow: 0 0 0 2px var(--accent-yellow); }
.bl-help-topic .bl-help-badge { grid-row: 1; }
.bl-help-topic-title { align-self: center; color: var(--ink-primary); }
.bl-help-topic-desc { grid-column: 1 / -1; color: var(--ink-secondary); }

.bl-help-panel { padding: 22px 24px; border: 1px solid var(--bl-line); border-radius: 20px; background: var(--surface-cream); scroll-margin-top: 96px; }
.bl-help-panel > h2 { margin-bottom: 12px; }
.bl-help-panel > h2:focus { outline: 0; }
.bl-help-panel > h2:focus-visible { outline: 3px solid var(--bl-focus); outline-offset: 4px; }
.bl-help-qa { border-top: 1px solid var(--bl-line); }
.bl-help-qa h3 { font: inherit; }
.bl-help-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 52px; padding: 12px 0; border: 0; background: transparent; text-align: left; font: 600 var(--body)/1.4 var(--font-body); cursor: pointer; }
.bl-help-q-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; background: #FFF1A8; transition: transform .2s; }
.bl-help-q-icon svg { width: 14px; height: 14px; }
.bl-help-qa.is-open .bl-help-q-icon { transform: rotate(45deg); }
.bl-help-a { display: grid; gap: 8px; padding: 0 0 18px; max-width: 70ch; color: var(--ink-secondary); }
.bl-help-a-topic { color: var(--accent-green-text); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.bl-help-a-link { color: var(--ink-primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; justify-self: start; min-height: 24px; }
.bl-help-empty { margin-top: 4px; }
.bl-help-empty a { color: var(--ink-primary); font-weight: 700; }

.bl-help-side { display: grid; gap: 16px; }
.bl-help-card { padding: 20px 22px; background: var(--surface-cream); }
.bl-help-card h2 { margin-bottom: 8px; }
.bl-help-popular li + li { border-top: 1px solid var(--bl-line); }
.bl-help-popular button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 8px 0; border: 0; background: transparent; text-align: left; font: 500 var(--body-compact)/1.4 var(--font-body); cursor: pointer; }
.bl-help-popular button:hover span { text-decoration: underline; text-underline-offset: 3px; }
.bl-help-popular svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--ink-secondary); }
.bl-help-person { padding: 20px 22px; border-radius: 20px; background: #FFF2A8; }
.bl-help-person h2 { margin-bottom: 8px; }
.bl-help-person p { color: #3A4254; margin-bottom: 14px; }
.bl-help-person-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bl-help-person .bl-chip, .bl-contact-urgent .bl-chip { min-height: 44px; padding: 0 18px; background: #fff; }
.bl-help-contact-btn { justify-self: start; }
.bl-help-contact-btn svg { width: 18px; height: 18px; }

/* =============================================================  CONTACT  */
.bl-contact { padding-block: 28px 72px; }
.bl-contact-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; margin-bottom: 22px; }
.bl-contact-hero-text { max-width: 760px; }
.bl-contact-hero h1 { margin-bottom: 8px; }
.bl-contact-sub { color: var(--ink-secondary); max-width: 62ch; }
.bl-contact-response { flex: 0 0 auto; width: 320px; padding: 16px 20px; border-radius: 16px; background: var(--surface-dark); color: rgba(255, 255, 255, .85); }
.bl-contact-response .bl-eyebrow { color: var(--accent-cyan); margin-bottom: 6px; }

.bl-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 24px; align-items: start; }
.bl-contact-left { display: grid; gap: 16px; min-width: 0; }
.bl-contact-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bl-contact-path { display: grid; align-content: start; gap: 8px; width: 100%; height: 100%; min-height: 150px; padding: 18px 20px; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.bl-contact-path .t-body-sm { color: var(--ink-secondary); }
.bl-contact-path:hover { border-color: rgba(26, 35, 64, .3); box-shadow: var(--bl-shadow-md); }
.bl-contact-path[aria-pressed="true"] { border-color: var(--ink-primary); box-shadow: 0 0 0 2px var(--accent-yellow); background: #fff; }
.bl-contact-urgent { padding: 20px 22px; border-radius: 20px; background: #FFF2A8; }
.bl-contact-urgent h2 { margin-bottom: 6px; }
.bl-contact-urgent p { color: #3A4254; margin-bottom: 14px; max-width: 62ch; }
.bl-contact-urgent-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.bl-contact-form-card { padding: 24px 26px; border: 1px solid var(--bl-line); border-radius: 28px; background: var(--surface-cream); box-shadow: var(--bl-shadow-md); }
.bl-contact-form-card h2 { margin-bottom: 4px; }
.bl-contact-form-sub { color: var(--ink-secondary); margin-bottom: 16px; }
.bl-contact-form-card form { display: grid; gap: 14px; }
.bl-contact-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bl-contact-form-card .bl-field select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230B1830' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.bl-contact-form-card .bl-field textarea { min-height: 96px; resize: vertical; }
.bl-contact-form-card .bl-field-error { margin-top: 2px; }
.bl-contact-submit { display: flex; align-items: center; gap: 16px; }
.bl-contact-submit .bl-btn { flex: 0 0 auto; }
.bl-contact-submit .bl-btn svg { width: 18px; height: 18px; }
.bl-contact-note { color: var(--ink-secondary); }
.bl-contact-count { margin: 4px 0 0; text-align: right; font-size: 12px; color: var(--ink-secondary); }
.bl-contact-count.is-over { color: var(--bl-error); font-weight: 700; }
.bl-contact-note a, .bl-contact-status a { color: var(--ink-primary); font-weight: 700; }
.bl-contact-status:empty, .bl-contact-status:not(:has(*)) { display: none; }
.bl-contact-status p { margin: 0; }

/* ======================================================  HOST COMMUNITY  */
.bl-comm-hero { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 36px; align-items: center; padding-block: 24px 36px; }
.bl-comm-visual { position: relative; min-height: 280px; height: clamp(280px, 30vh, 320px); overflow: hidden; border-radius: 28px; background: var(--surface-dark); }
.bl-comm-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bl-comm-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 24, 51, 0) 35%, rgba(8, 24, 51, .9) 100%); }
.bl-comm-visual figcaption { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 20px; display: grid; gap: 6px; color: #fff; }
.bl-comm-visual .bl-eyebrow { margin: 0; color: var(--accent-cyan); }
.bl-comm-quote { max-width: 24ch; }
.bl-comm-visual .t-meta { color: rgba(255, 255, 255, .85); }
.bl-comm-intro h1 { margin-bottom: 12px; }
.bl-comm-blurb { color: var(--ink-secondary); margin-bottom: 18px; max-width: 46ch; }
.bl-comm-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bl-comm-actions .bl-btn svg { width: 18px; height: 18px; }

.bl-comm-lower { background: var(--surface-cream); border-top: 1px solid var(--bl-line); padding-block: 36px 72px; }
.bl-comm-lower-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 28px; align-items: start; }
.bl-comm-main { display: grid; gap: 16px; min-width: 0; }
.bl-comm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.bl-comm-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-primary); font-weight: 700; text-decoration: none; }
.bl-comm-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.bl-comm-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bl-comm-card { display: grid; align-content: start; gap: 8px; padding: 18px 20px; background: #fff; }
.bl-comm-card .t-body-sm { color: var(--ink-secondary); }
.bl-comm-guidelines { padding: 16px 20px; border-radius: 16px; background: #FFF2A8; }
.bl-comm-guidelines .bl-eyebrow { color: var(--accent-green-text); margin-bottom: 10px; }
.bl-comm-guidelines ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 16px; }
.bl-comm-guidelines li { display: flex; align-items: flex-start; gap: 8px; font: 600 var(--body-compact)/1.4 var(--font-body); }
.bl-comm-guidelines li svg { width: 16px; height: 16px; margin-top: 2px; flex: 0 0 auto; }
.bl-comm-side h2 { margin-bottom: 16px; }
.bl-comm-empty { display: grid; justify-items: start; gap: 8px; padding: 22px 24px; border-radius: 20px; background: var(--surface-dark); color: #fff; }
.bl-comm-empty h3 { color: #fff; }
.bl-comm-empty p { color: rgba(255, 255, 255, .8); }
.bl-comm-empty-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-yellow); font-weight: 700; }

/* =====================================================  HOST RESOURCES  */
.bl-res-hero { background: var(--surface-dark); color: #fff; padding-block: 28px; }
.bl-res-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.bl-res-hero h1 { color: #fff; max-width: 18ch; margin-bottom: 12px; }
.bl-res-hero-sub { color: rgba(255, 255, 255, .78); max-width: 52ch; margin-bottom: 18px; }
.bl-res-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bl-res-hero-actions .bl-btn svg { width: 18px; height: 18px; }
.bl-res-hero-visual { position: relative; height: clamp(180px, 22vh, 220px); overflow: hidden; border-radius: 24px; }
.bl-res-hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.bl-res-hero-visual figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px; background: rgba(8, 24, 51, .86); color: #fff; font: 600 var(--meta)/1.3 var(--font-body); }

.bl-res-body { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 28px; align-items: start; padding-block: 28px 72px; }
.bl-res-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 16px; }
.bl-res-head .bl-chip { min-height: 44px; padding: 0 18px; }
.bl-res-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; align-items: start; }
.bl-res-card { display: grid; gap: 8px; padding: 16px 18px; }
.bl-res-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bl-res-type { color: var(--ink-secondary); }
.bl-res-card .t-body-sm { color: var(--ink-secondary); }
.bl-res-card.is-open { border-color: var(--ink-primary); background: #fff; }
.bl-res-open { display: inline-flex; align-items: center; gap: 6px; justify-self: start; min-height: 44px; margin-top: -4px; padding: 0; border: 0; background: transparent; color: var(--ink-primary); font-weight: 700; cursor: pointer; }
.bl-res-open:hover { text-decoration: underline; text-underline-offset: 3px; }
.bl-res-tips { padding-top: 10px; border-top: 1px solid var(--bl-line); }
.bl-res-tips ul { display: grid; gap: 8px; padding-left: 18px; list-style: disc; color: var(--ink-primary); }
.bl-res-tips li::marker { color: var(--accent-green-text); }

.bl-res-side { display: grid; gap: 16px; }
.bl-res-check { padding: 20px 22px; border-radius: 20px; background: #FFF2A8; }
.bl-res-check .bl-eyebrow { color: var(--accent-green-text); margin-bottom: 6px; }
.bl-res-check h2 { margin-bottom: 8px; }
.bl-res-check-list label { display: flex; align-items: center; gap: 12px; min-height: 44px; font: 500 var(--body-compact)/1.4 var(--font-body); cursor: pointer; }
.bl-res-check-list input { width: 20px; height: 20px; flex: 0 0 auto; margin: 0; accent-color: var(--ink-primary); cursor: pointer; }
.bl-res-progress { height: 8px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: #fff; }
.bl-res-progress span { display: block; height: 100%; border-radius: inherit; background: var(--ink-primary); transition: width .25s ease; }
.bl-res-progress-label { margin-top: 8px; color: #3A4254; }
.bl-res-already { display: grid; justify-items: start; gap: 8px; padding: 20px 22px; border: 1px solid var(--bl-line); border-radius: 20px; background: var(--surface-cream); }
.bl-res-already p { color: var(--ink-secondary); margin-bottom: 6px; }
.bl-res-already .bl-btn svg { width: 18px; height: 18px; }

/* ===================================================  RESPONSIVE  */
@media (max-width: 1180px) {
    .bl-comm-lower-grid { grid-template-columns: minmax(0, 1fr) 320px; }
    .bl-comm-guidelines ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bl-help-body { grid-template-columns: minmax(0, 1fr) 320px; }
    .bl-res-body { grid-template-columns: minmax(0, 1fr) 310px; }
}
@media (max-width: 1024px) {
    .bl-help-body, .bl-res-body, .bl-comm-lower-grid, .bl-contact-grid { grid-template-columns: minmax(0, 1fr); }
    .bl-help-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .bl-help-contact-btn { grid-column: 1 / -1; }
    .bl-res-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .bl-comm-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .bl-comm-intro h1 { max-width: 20ch; }
    .bl-res-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .bl-res-hero-visual { height: 200px; }
    .bl-contact-hero { flex-direction: column; gap: 16px; }
    .bl-contact-response { width: 100%; max-width: 480px; }
}
@media (max-width: 768px) {
    .bl-comm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bl-comm-lower { padding-block: 28px 56px; }
}
@media (max-width: 600px) {
    .bl-help-hero { padding: 20px 0 32px; }
    .bl-help-search { height: 54px; padding-left: 16px; }
    .bl-help-head { flex-direction: column; gap: 4px; }
    .bl-help-side, .bl-res-side { grid-template-columns: minmax(0, 1fr); }
    .bl-help-panel { padding: 16px 16px; }
    .bl-help-contact-btn, .bl-comm-actions .bl-btn, .bl-res-hero-actions .bl-btn, .bl-res-already .bl-btn { width: 100%; justify-content: center; }
    .bl-contact { padding-block: 20px 56px; }
    .bl-contact-paths, .bl-contact-row, .bl-comm-cards { grid-template-columns: minmax(0, 1fr); }
    .bl-contact-path { min-height: 0; }
    .bl-contact-form-card { padding: 20px 16px; border-radius: 22px; }
    .bl-contact-submit { flex-direction: column; align-items: stretch; }
    .bl-contact-submit .bl-btn { width: 100%; }
    .bl-comm-visual { height: 260px; border-radius: 22px; }
    .bl-comm-visual figcaption { left: 16px; right: 16px; bottom: 16px; }
    .bl-comm-guidelines ul { grid-template-columns: minmax(0, 1fr); }
    .bl-res-hero { padding-block: 20px 24px; }
    .bl-res-hero-visual { height: 160px; border-radius: 20px; }
    .bl-res-head .bl-chip-row { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .bl-help-topic, .bl-contact-path, .bl-help-q-icon, .bl-res-progress span { transition: none; }
    .bl-help-topic:hover { transform: none; }
}

/* ===================================================  U-13: PAGE FIT (Help, Contact)
   At browser zoom 1 the page fills the window and the footer starts just below the fold (the How it works pattern).
   Browser widths only (two columns from 1025px, windows 700px tall or more); phones and short windows keep natural height and scroll.
   --bl-vh is the window height in page px (revamp.css divides by the 0.8 zoom above 1100px). */
@media (min-width: 1025px) and (min-height: 700px) {
    .bl-help, .bl-contact { display: flex; flex-direction: column; box-sizing: border-box; min-height: calc(var(--bl-vh) - var(--bl-nav-height, 64px)); }

    .bl-help-hero { padding: 20px 0 36px; }
    .bl-help-body { flex: 1 1 auto; align-items: stretch; padding-block: 24px clamp(28px, 4vh, 44px); }
    .bl-help-main > section:first-child { display: flex; flex-direction: column; }
    .bl-help-main > section:first-child .bl-help-topics { flex: 1 1 auto; grid-auto-rows: minmax(128px, 1fr); }

    .bl-contact { padding-block: 24px clamp(28px, 4vh, 44px); }
    .bl-contact > .bl-shell { display: flex; flex: 1 1 auto; flex-direction: column; }
    .bl-contact-hero { margin-bottom: 18px; }
    .bl-contact-grid { flex: 1 1 auto; align-items: stretch; }
    .bl-contact-left { grid-template-rows: minmax(0, 1fr) auto; }
    .bl-contact-left > section:first-child { display: flex; flex-direction: column; min-height: 0; }
    .bl-contact-paths { flex: 1 1 auto; grid-auto-rows: minmax(0, 1fr); }
    .bl-contact-form-card { display: flex; flex-direction: column; }
    .bl-contact-form-card form { display: flex; flex: 1 1 auto; flex-direction: column; }
    .bl-contact-form-card .bl-field:has(textarea) { display: flex; flex: 1 1 auto; flex-direction: column; }
    .bl-contact-form-card .bl-field textarea { flex: 1 1 auto; }
}
