/* D2-9: home notice band (DES_D2-9, DES_DECISIONS 9·12).
   One line in the place D2-6 reserved (#homeNoticeSlot). The server renders it and
   an inline script decides which band shows before the first paint, so nothing moves
   after loading. No notice (or every notice closed) → the slot stays hidden, height 0. */

body.unified-page #homeNoticeSlot:not([hidden]) {
    display: block;
    margin: 0 0 8px;
}
body.unified-page #homeNoticeSlot .home-notice-band[hidden] { display: none !important; }
body.unified-page #homeNoticeSlot .home-notice-band {
    display: flex;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
    height: 44px;
    margin: 0;
    padding: 0 0 0 12px;
    border: 1px solid #f1d9a6;
    border-radius: 10px;
    background: #fff8e8;
    color: #4a3300;
    overflow: hidden;
}
body.unified-page #homeNoticeSlot .home-notice-band-icon {
    flex: none;
    font-size: 15px;
    line-height: 1;
}
body.unified-page #homeNoticeSlot .home-notice-band-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}
body.unified-page #homeNoticeSlot .home-notice-band-more,
body.unified-page #homeNoticeSlot .home-notice-band-close {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 44px;
    height: 44px;
    margin: 0;
    padding: 0 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #7a4f00;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
body.unified-page #homeNoticeSlot .home-notice-band-close {
    width: 44px;
    padding: 0;
    font-size: 18px;
    font-weight: 400;
}
body.unified-page #homeNoticeSlot .home-notice-band-more:hover,
body.unified-page #homeNoticeSlot .home-notice-band-close:hover { background: rgba(122, 79, 0, 0.08); }
body.unified-page #homeNoticeSlot .home-notice-band-more:focus-visible,
body.unified-page #homeNoticeSlot .home-notice-band-close:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: -2px;
}
body.unified-page #homeNoticeSlot .home-notice-band-more[aria-busy="true"] { opacity: 0.6; }

@media (max-width: 767px) {
    /* Mobile: under the fixed search, inside the 16px page gutter (D2-7). */
    body.unified-page #homeNoticeSlot:not([hidden]) { margin: 8px 16px 0; }
}

@media (min-width: 768px) {
    body.unified-page #homeNoticeSlot .home-notice-band { height: 40px; }
    body.unified-page #homeNoticeSlot .home-notice-band-more { min-width: 32px; height: 32px; }
    body.unified-page #homeNoticeSlot .home-notice-band-close { width: 32px; min-width: 32px; height: 32px; margin-right: 4px; }
}

html[data-theme="dark"] body.unified-page #homeNoticeSlot .home-notice-band {
    border-color: #5a4a22;
    background: #2b2616;
    color: #f3e3bd;
}
html[data-theme="dark"] body.unified-page #homeNoticeSlot .home-notice-band-more,
html[data-theme="dark"] body.unified-page #homeNoticeSlot .home-notice-band-close { color: #f6d58a; }
