/* Show announcement bar.
 *
 * PACK EXPO International is 18-21 October 2026 and the show page was reachable
 * only by knowing it existed — it is in the sitemap and the footer of nothing,
 * and not in the nav. For the weeks before the show, a meeting booked from this
 * bar is the fastest lead the site can produce: it needs no ranking, no
 * indexing and no patience.
 *
 * Rendered in the HTML rather than injected by script, so it costs no layout
 * shift and a crawler sees it. assets/showbar.js only handles dismissal and
 * retiring it once the show is over.
 */

.showbar {
    /* Not a theme surface: this sits above the header in both colour schemes
       and needs to read as an announcement in both, so it carries the brand
       ink and light text at fixed values. */
    background: var(--primary-dark, #2d3954);
    color: #ffffff;
    font-size: 0.94rem;
    line-height: 1.4;
}

.showbar[hidden] {
    display: none;
}

.showbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.6rem 3rem 0.6rem 1rem;
    position: relative;
}

.showbar-text {
    margin: 0;
}

.showbar-when {
    color: var(--peach, #ffc3a1);
    font-weight: 600;
    white-space: nowrap;
}

.showbar a.showbar-cta {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.showbar a.showbar-cta:hover {
    text-decoration-thickness: 2px;
}

.showbar a.showbar-cta:focus-visible,
.showbar .showbar-close:focus-visible {
    outline: 2px solid var(--peach, #ffc3a1);
    outline-offset: 3px;
}

/* 44px target: this sits next to a link and is the easiest thing on the page
   to hit by accident on a phone. */
.showbar .showbar-close {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.25rem;
    line-height: 1;
    color: #ffffff;
    background: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.75;
}

.showbar .showbar-close:hover {
    opacity: 1;
}

@media (max-width: 560px) {
    .showbar-inner {
        justify-content: flex-start;
        text-align: left;
        padding-right: 2.75rem;
    }
}
