/* Färger och typsnitt följer sajtens popup och kommunsidor. */
#bj-announcement, #bj-announcement * { box-sizing: border-box; }
#bj-announcement {
    width: min(680px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #d9d4ca;
    border-radius: 20px;
    background: #fffdf6;
    color: #333;
    box-shadow: 0 28px 80px rgba(15,20,25,.28);
    font-family: 'Poppins', sans-serif;
    text-align: left;
}
#bj-announcement:not([open]) { display: none; }
#bj-announcement::backdrop { background: rgba(28,34,40,.66); backdrop-filter: blur(4px); }
#bj-announcement .bja-close {
    position: absolute; top: 16px; right: 16px;
    display: grid; place-items: center;
    width: 44px; height: 44px; padding: 0;
    border: 0; border-radius: 50%; background: #3b4856; color: #fff;
    font: 30px/1 Arial, sans-serif; cursor: pointer;
}
#bj-announcement .bja-close:hover { background: #2e3944; }
#bj-announcement .bja-eyebrow { margin: 0 44px 14px 0; color: #3b4856; font-size: 12px; line-height: 1.6; letter-spacing: .09em; text-transform: uppercase; }
#bj-announcement #bja-title { margin: 0 0 16px; color: #333; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 46px; font-weight: 600; line-height: 1.02; letter-spacing: -.02em; }
#bj-announcement #bja-title:focus { outline: none; }
#bj-announcement .bja-description { margin: 0; color: #535353; font-size: 15px; line-height: 1.75; }
#bj-announcement .bja-about { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; color: #3b4856; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
#bj-announcement .bja-locations { margin-top: 20px; padding-top: 24px; border-top: 1px solid #d9d4ca; }
#bj-announcement #bja-choice-title { margin: 0 0 6px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 28px; font-weight: 600; line-height: 1.15; }
#bj-announcement .bja-choice-text { margin: 0 0 18px; color: #535353; font-size: 13px; line-height: 1.6; }
#bj-announcement .bja-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
#bj-announcement .bja-location { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 88px; padding: 16px 18px; border: 1px solid #c5ccd4; border-radius: 14px; background: #fff; color: #3b4856; text-decoration: none; transition: background-color 160ms ease, border-color 160ms ease; }
#bj-announcement .bja-location:hover { background: #e7ebf3; border-color: #3b4856; }
#bj-announcement .bja-location strong { display: block; font-size: 15px; line-height: 1.4; font-weight: 600; }
#bj-announcement .bja-location small { display: block; margin-top: 5px; font-size: 12px; line-height: 1.5; }
#bj-announcement .bja-arrow { flex: 0 0 auto; font-size: 22px; }
#bj-announcement .bja-continue { display: block; width: 100%; min-height: 48px; margin: 24px auto 0; padding: 12px 24px; border: 1px solid #3b4856; border-radius: 999px; background: #3b4856; color: #fff; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.6; text-decoration: none; cursor: pointer; }
#bj-announcement .bja-continue:hover { background: #2e3944; border-color: #2e3944; }
#bj-announcement a:focus-visible, #bj-announcement button:focus-visible { outline: 3px solid #537da4; outline-offset: 3px; }
@media (max-width: 540px) {
    #bj-announcement {
        --bja-mobile-height: calc(var(--bja-viewport-height, 100svh) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px);
        position: fixed;
        top: calc(var(--bja-viewport-top, 0px) + env(safe-area-inset-top, 0px) + 12px);
        bottom: auto;
        width: calc(100% - 24px);
        max-height: var(--bja-mobile-height);
        margin: 0 auto;
        padding: 0;
        overflow: hidden;
        border-radius: 16px;
    }
    #bj-announcement .bja-close { top: 8px; right: 12px; z-index: 1; }
    #bj-announcement .bja-content {
        margin-top: 56px;
        max-height: calc(var(--bja-mobile-height) - 58px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 0 20px 16px;
    }
    #bj-announcement #bja-title { font-size: 36px; }
    #bj-announcement .bja-eyebrow { font-size: 10px; }
    #bj-announcement .bja-description { font-size: 14px; line-height: 1.6; }
    #bj-announcement .bja-locations { margin-top: 8px; padding-top: 12px; }
    #bj-announcement .bja-grid { grid-template-columns: 1fr; gap: 6px; }
    #bj-announcement .bja-location { min-height: 50px; padding: 10px 16px; }
    #bj-announcement .bja-location small { display: none; }
    #bj-announcement .bja-arrow { line-height: 1; }
    #bj-announcement .bja-choice-text { margin-bottom: 12px; line-height: 1.5; }
    #bj-announcement .bja-continue { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { #bj-announcement .bja-location { transition: none; } }
