﻿:root { --site-notice-offset: 0px; }

.site-notice,
.site-notice * { box-sizing: border-box; }

.site-notice {
  position: relative;
  z-index: 120;
  width: 100%;
  border-bottom: 2px solid #C9A45C;
  background: #2E173F;
  color: rgba(255,255,255,.9);
  box-shadow: 0 5px 18px rgba(23,17,44,.16);
}

.site-notice__inner {
  display: grid;
  width: 100%;
  min-height: 50px;
  margin: 0 auto;
  padding: 8px 9px 8px clamp(28px, 3.2vw, 64px);
  grid-template-columns: 30px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
}

.site-notice__icon {
  display: grid;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(201,164,92,.5);
  border-radius: 50%;
  place-items: center;
  color: #D7B872;
  font: 700 14px/1 Arial, sans-serif;
}

.site-notice__text { margin: 0; font-size: 13px; line-height: 1.75; text-align: left; }
.site-notice__text strong { color: #D7B872; font-weight: 600; }

.site-notice__close {
  min-width: 82px;
  height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 2px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.82);
  font-size: 12px;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.site-notice__close:hover,
.site-notice__close:focus-visible {
  border-color: #C9A45C;
  outline: none;
  background: #C9A45C;
  color: #2E173F;
}

.home-refined.has-site-notice #top { top: var(--site-notice-offset) !important; }
.home-refined.has-site-notice #logo { top: calc(var(--site-notice-offset) + 24px) !important; }
.home-refined.has-site-notice #search { top: calc(var(--site-notice-offset) + 5px) !important; }
.home-refined.has-site-notice #nav { top: calc(var(--site-notice-offset) + 39px) !important; }
.home-refined.has-site-notice .home-menu-toggle { top: var(--site-notice-offset) !important; }

.home-refined.has-site-notice.home-nav-scrolled #logo { top: calc(var(--site-notice-offset) + 14px) !important; }
.home-refined.has-site-notice.home-nav-scrolled #search { top: calc(var(--site-notice-offset) + 27px) !important; }
.home-refined.has-site-notice.home-nav-scrolled #nav { top: calc(var(--site-notice-offset) + 9px) !important; }

@media only screen and (max-width: 1100px) {
  .site-notice__inner { padding-right: 0; }
  .home-refined.has-site-notice #logo,
  .home-refined.has-site-notice.home-nav-scrolled #logo { top: calc(var(--site-notice-offset) + 13px) !important; }
}

@media only screen and (max-width: 768px) {
  .site-notice__inner {
    width: 100%;
    min-height: 0;
    padding: 10px 22px 10px 14px;
    grid-template-columns: 24px minmax(0,1fr) 30px;
    align-items: start;
    gap: 9px;
  }
  .site-notice__icon { width: 22px; height: 22px; margin-top: 1px; font-size: 12px; }
  .site-notice__text { font-size: 12px; line-height: 1.65; }
  .site-notice__close {
    position: relative;
    min-width: 30px;
    width: 30px;
    height: 30px;
    padding: 0;
    border-color: rgba(255,255,255,.18);
    border-radius: 50%;
    overflow: hidden;
    color: transparent;
    font-size: 0;
  }
  .site-notice__close::before,
  .site-notice__close::after {
    content: "";
    position: absolute;
    top: 14px;
    left: 8px;
    width: 13px;
    height: 1px;
    background: rgba(255,255,255,.8);
    transform: rotate(45deg);
  }
  .site-notice__close::after { transform: rotate(-45deg); }
  .site-notice__close:hover::before,
  .site-notice__close:hover::after,
  .site-notice__close:focus-visible::before,
  .site-notice__close:focus-visible::after { background: #2E173F; }

  .home-refined.has-site-notice #logo,
  .home-refined.has-site-notice.home-nav-scrolled #logo { top: calc(var(--site-notice-offset) + 15px) !important; }
}

@media only screen and (max-width: 420px) {
  .site-notice__inner { padding: 9px 22px 9px 10px; gap: 7px; }
  .site-notice__text { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-notice__close { transition: none; }
}
