/* Notifications centre, site search and cookie notice. Uses the shared navy / lemon / cream tokens. */
/* Full page width like every other page; the lists below flow into columns instead of stretching one row across the screen. */
.bl-utility-page { max-width: none; }

.bl-search-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: .75rem; }

/* Notifications: one column of notices on the left (about 30% wider than the old first card column); the picked one opens in the panel on the right */
.bl-notice-layout { display: grid; grid-template-columns: clamp(340px, 24vw, 480px) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.bl-notice-pane { display: grid; gap: .75rem; min-width: 0; }
.bl-notice-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 32px; }
.bl-notice-count { margin: 0; font-size: .9rem; color: var(--bl-muted, #5b6472); }
.bl-notice-count strong { color: var(--bl-navy); }
.bl-notice-list { list-style: none; margin: 0; padding: .25rem; display: grid; gap: .6rem; max-height: calc(var(--bl-vh, 100vh) - var(--bl-nav-height, 64px) - 14rem); overflow-y: auto; overscroll-behavior: contain; }
.bl-notice button { display: grid; gap: .15rem; width: 100%; padding: .9rem 1.1rem; border: 1px solid var(--bl-line, #e4e1d8); border-radius: 14px; background: #fff; color: var(--bl-navy); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s ease; }
.bl-notice button:hover, .bl-notice button:focus-visible { border-color: var(--bl-navy); }
.bl-notice.is-new button { border-color: var(--bl-navy); background: #fffdf0; }
.bl-notice.is-selected button { border-color: var(--bl-navy); box-shadow: inset 0 0 0 1px var(--bl-navy); }
.bl-notice button:focus-visible { outline: 2px solid var(--bl-navy); outline-offset: -4px; }
.bl-notice-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.bl-notice-kind { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--bl-muted, #5b6472); }
.bl-notice-title { font-weight: 600; }
.bl-notice-dot { display: inline-block; width: 8px; height: 8px; margin-left: .5rem; border-radius: 50%; background: var(--bl-lemon, #efff69); box-shadow: 0 0 0 1.5px var(--bl-navy); vertical-align: middle; }
.bl-notice-body, .bl-notice-time { font-size: .9rem; color: var(--bl-muted, #5b6472); }
.bl-notice-time { flex: none; font-size: .8125rem; }
.bl-notice-body { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-notice-detail { position: sticky; top: calc(var(--bl-nav-height, 64px) + 1rem); display: grid; gap: .6rem; align-content: start; min-height: 16rem; padding: 1.5rem 1.75rem; border: 1px solid var(--bl-line, #e4e1d8); border-radius: 18px; background: #fff; color: var(--bl-navy); }
.bl-notice-detail h2 { margin: 0; font-size: 1.5rem; }
.bl-notice-detail-body { margin: .5rem 0 0; font-size: 1.05rem; line-height: 1.55; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-notice-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1.25rem; align-items: start; margin-top: .5rem; }
.bl-notice-hero.no-image { grid-template-columns: minmax(0, 1fr); }
.bl-notice-detail-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; margin: 0; }
.bl-notice-from { display: flex; align-items: center; gap: .75rem; margin-top: .25rem; }
.bl-notice-from img, .bl-notice-from-initial { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.bl-notice-from-initial { display: grid; place-items: center; background: var(--bl-lemon, #efff69); color: var(--bl-navy); font-weight: 700; }
.bl-notice-from small { color: var(--bl-muted, #5b6472); font-size: .875rem; }
.bl-notice-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .75rem; }
.bl-notice-facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--bl-line, #e4e1d8); }
.bl-notice-facts > div { display: grid; grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr); gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--bl-line, #e4e1d8); }
.bl-notice-facts dt { font-size: .9rem; color: var(--bl-muted, #5b6472); }
.bl-notice-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.bl-notice-chat { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .5rem; }
.bl-notice-chat li { display: grid; gap: .1rem; max-width: 85%; padding: .6rem .85rem; border-radius: 14px; background: #f4f2ea; justify-self: start; }
.bl-notice-chat li.is-mine { justify-self: end; background: #fffdf0; border: 1px solid var(--bl-line, #e4e1d8); }
.bl-notice-chat-from { font-size: .75rem; font-weight: 600; color: var(--bl-muted, #5b6472); }
.bl-notice-chat-text { overflow-wrap: anywhere; white-space: pre-wrap; }
.bl-notice-chat time { font-size: .75rem; color: var(--bl-muted, #5b6472); }
.bl-notice-empty { margin: auto; color: var(--bl-muted, #5b6472); }
.bl-notice-back { display: none; justify-self: start; padding-inline: 0; }
@media (max-width: 1099px) {
    .bl-notice-hero { grid-template-columns: minmax(0, 1fr); }
    .bl-notice-detail-img { aspect-ratio: 16 / 10; }
}
@media (max-width: 900px) {
    .bl-notice-layout { grid-template-columns: minmax(0, 1fr); }
    .bl-notice-list { max-height: none; }
    .bl-notice-detail { position: static; }
    .bl-notice-back { display: inline-flex; }
    .bl-notice-layout.has-selection .bl-notice-pane { display: none; }
    .bl-notice-layout:not(.has-selection) .bl-notice-detail { display: none; }
}

.bl-search-form { display: flex; gap: .5rem; max-width: 760px; }
.bl-search-input { flex: 1; min-width: 0; padding: .75rem 1rem; border: 1.5px solid var(--bl-navy); border-radius: 999px; font: inherit; background: #fff; color: var(--bl-navy); }
.bl-search-input:focus-visible { outline: 3px solid var(--bl-lemon, #efff69); outline-offset: 2px; }
.bl-search-group { margin-top: 1.75rem; }
.bl-search-group h2 { font-size: 1.1rem; margin-bottom: .6rem; }
.bl-search-list a { display: flex; align-items: center; gap: .85rem; padding: .65rem .85rem; border: 1px solid var(--bl-line, #e4e1d8); border-radius: 14px; background: #fff; color: var(--bl-navy); text-decoration: none; }
.bl-search-list a:hover, .bl-search-list a:focus-visible { border-color: var(--bl-navy); }
.bl-search-list img { flex: none; width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.bl-search-list img.is-round { border-radius: 50%; }
.bl-search-list span { display: grid; min-width: 0; }
.bl-search-list small { color: var(--bl-muted, #5b6472); overflow-wrap: anywhere; }

.bl-consent { position: fixed; z-index: 1080; left: 1rem; right: 1rem; bottom: 1rem; max-width: 560px; margin-inline: auto; padding: 1rem 1.15rem; border: 1.5px solid var(--bl-navy); border-radius: 16px; background: #fff; color: var(--bl-navy); box-shadow: 0 12px 32px rgba(10, 26, 63, .18); }
.bl-consent p { margin: 0 0 .75rem; font-size: .9rem; }
.bl-consent-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.bl-consent h2 { font-size: 1rem; margin: 0 0 .35rem; }
@media (min-width: 768px) { .bl-consent { left: auto; right: 1.5rem; margin-inline: 0; } }
@media (prefers-reduced-motion: reduce) { .bl-notice button { transition: none; } }

.bl-footer-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
/* phones: the fixed bottom nav (up to 900px wide) must not cover the panel, and the footer link needs a real tap target */
@media (max-width: 900px) {
    .bl-consent { bottom: calc(5rem + env(safe-area-inset-bottom)); }
    .bl-footer-link { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; } /* Q-05 TRUST-21: 44px tap target */
}
.bl-footer-link:hover, .bl-footer-link:focus-visible { color: var(--bl-lemon, #efff69); }
.bl-error-screen { max-width: 640px; margin-inline: auto; padding-block: clamp(2.5rem, 8vw, 5rem); text-align: center; }
.bl-error-screen h1 { margin-bottom: .75rem; }
.bl-error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.5rem; }
