.notice-bar {
    background: #ffb512;
    color: #1a1200;
    font-size: 13.5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.18);
    overflow: hidden;
    /* height is measured via JS (scrollHeight, which rounds to a whole pixel) and can
       land a hair short of the true rendered content — the negative margin forces a
       deliberate 1px overlap with whatever follows (top-bar/masterbar-mobile) so that
       sub-pixel rounding never shows a seam of page background between them. */
    margin-bottom: -1px;
    transition: max-height 0.28s ease, opacity 0.2s ease;
}

.notice-bar.is-dismissed {
    /* max-height is set inline by JS (to 0) — see tmpl/default.php. A fixed pixel
       cap here would clip wrapped mobile content instead of the collapsed state. */
    opacity: 0;
    border-bottom: none;
}

/* "Stay visible while scrolling" option — pinned above everything else in the header
   stack (masterbar is z-index 200). The top-bar and sticky masterbar below still get
   pushed down by --height-noticebar (see _masterbar.css) so nothing sits underneath it.
   position:fixed takes the bar out of .layout entirely, so unlike the default (in-flow)
   state it no longer inherits .layout's max-width/centering for free — max-width + auto
   margins have to be repeated here, or this variant spans the true browser edge on wide
   screens instead of matching the top-bar/masterbar column beneath it. */
.notice-bar--fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: var(--max-width);
    margin: 0 auto;
    z-index: 210;
}

/* Background bar spans full width (matches .top-bar/.masterbar); content stays inside
   the same centered max-width column as the rest of the header (.top-bar__content,
   .masterbar__content) so the close button lines up with Sign In/Help/Blog above it
   instead of sitting at the true browser edge on wide screens. */
.notice-bar__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 10px 44px 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    position: relative;
}

.notice-bar__icon {
    flex: none;
    width: 18px;
    height: 18px;
    color: #1a1200;
}

.notice-bar__text {
    text-align: center;
}

.notice-bar__text strong {
    color: #000;
}

.notice-bar__sep {
    color: rgba(0, 0, 0, 0.4);
    margin: 0 6px;
}

.notice-bar__cta {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #000;
    color: #fff !important;
    font-weight: 700;
    font-size: 12.5px;
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 5px;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.notice-bar__cta:hover {
    background: #262626;
    text-decoration: none;
}

.notice-bar__close {
    flex: none;
    background: transparent;
    border: 0;
    color: rgba(0, 0, 0, 0.55);
    width: 26px;
    height: 26px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    position: absolute;
    right: 14px;
}

.notice-bar__close:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.08);
}

.notice-bar__close:focus-visible,
.notice-bar__cta:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

@media only screen and (max-width: 720px) {
    .notice-bar__inner {
        flex-wrap: wrap;
        padding: 12px 44px 12px 16px;
    }
    .notice-bar__text {
        font-size: 13px;
    }
}
