/* All front-end selectors are prefixed to avoid theme collisions. */
.cmu-notice,
.cmu-maintenance-page {
  --cmu-bg: #142127;
  --cmu-text: #fff;
  --cmu-accent: #c8a879;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  box-sizing: border-box;
}
.cmu-notice *, .cmu-notice *::before, .cmu-notice *::after,
.cmu-maintenance-page *, .cmu-maintenance-page *::before, .cmu-maintenance-page *::after { box-sizing: border-box; }
/* Small floating notice. Styles are isolated from the current theme. */
.cmu-notice {
  position: fixed;
  z-index: 2147483000;
  width: min(365px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--cmu-bg);
  color: var(--cmu-text);
  border: 1px solid color-mix(in srgb, var(--cmu-accent) 35%, transparent);
  border-radius: 13px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, .20);
  text-align: left;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.cmu-notice[hidden] { display: none !important; }
.cmu-notice--standard { width: min(460px, calc(100vw - 28px)); }
.cmu-notice::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--cmu-accent);
}
.cmu-notice--bottom-right { right: 18px; bottom: 18px; }
.cmu-notice--bottom-left { left: 18px; bottom: 18px; }
.cmu-notice--top-right { right: 18px; top: 18px; }
.cmu-notice--top-left { left: 18px; top: 18px; }
.cmu-notice--bottom { left: 50%; bottom: 18px; transform: translateX(-50%); }
.cmu-notice--top { left: 50%; top: 18px; transform: translateX(-50%); }
body.admin-bar .cmu-notice--top,
body.admin-bar .cmu-notice--top-left,
body.admin-bar .cmu-notice--top-right { top: 52px; }
.cmu-notice-inner {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 20px;
  align-items: start;
  column-gap: 10px;
  row-gap: 10px;
  padding: 13px 13px 13px 15px;
}
.cmu-notice--standard .cmu-notice-inner { grid-template-columns: 38px minmax(0, 1fr) 22px; gap: 12px; padding: 17px; }
.cmu-mark, .cmu-maintenance-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  color: var(--cmu-accent);
  border: 1px solid color-mix(in srgb, var(--cmu-accent) 40%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--cmu-accent) 9%, transparent);
  font-size: 15px;
}
.cmu-notice--standard .cmu-mark { width: 38px; height: 38px; font-size: 18px; }
.cmu-notice .cmu-content { grid-column: 2; min-width: 0; }
.cmu-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--cmu-accent);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.cmu-status-dot {
  display: inline-block;
  flex: 0 0 auto;
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cmu-accent) 15%, transparent);
}
.cmu-notice .cmu-heading {
  margin: 4px 0 4px;
  padding: 0;
  color: var(--cmu-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.3;
  text-transform: none;
}
.cmu-notice--standard .cmu-heading { font-size: 16px; }
.cmu-notice .cmu-message { margin: 0; color: var(--cmu-text); opacity: .8; font-size: 11.5px; line-height: 1.55; }
.cmu-notice--standard .cmu-message { font-size: 12.5px; }
.cmu-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--cmu-accent);
  border-radius: 7px;
  background: var(--cmu-accent);
  color: var(--cmu-bg);
  text-decoration: none;
  font: 700 11px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  padding: 9px 11px;
  transition: filter .15s ease, transform .15s ease;
}
.cmu-notice .cmu-cta { grid-column: 2 / 4; justify-self: start; }
.cmu-cta:hover, .cmu-cta:focus-visible { color: var(--cmu-bg); filter: brightness(1.08); transform: translateY(-1px); text-decoration: none; }
.cmu-cta:focus-visible, .cmu-close:focus-visible { outline: 2px solid var(--cmu-accent); outline-offset: 3px; }
.cmu-close {
  display: inline-grid;
  grid-column: 3;
  grid-row: 1;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: -4px -4px 0 -2px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--cmu-text);
  opacity: .7;
  cursor: pointer;
  position: relative;
  z-index: 5;
  pointer-events: auto !important;
  touch-action: manipulation;
}
.cmu-close svg { width: 16px; height: 16px; pointer-events: none; }
.cmu-close:hover { opacity: 1; background: color-mix(in srgb, var(--cmu-text) 10%, transparent); }
@media (max-width: 680px) {
  .cmu-notice { width: min(365px, calc(100vw - 24px)); border-radius: 12px; }
  .cmu-notice--standard { width: min(460px, calc(100vw - 24px)); }
  .cmu-notice--bottom-right { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .cmu-notice--bottom-left { left: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .cmu-notice--top-right { right: 12px; top: 12px; }
  .cmu-notice--top-left { left: 12px; top: 12px; }
  .cmu-notice--bottom { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .cmu-notice--top { top: 12px; }
  body.admin-bar .cmu-notice--top,
  body.admin-bar .cmu-notice--top-left,
  body.admin-bar .cmu-notice--top-right { top: 58px; }
  .cmu-notice-inner { padding: 12px 11px 12px 13px; }
}
@media (max-width: 370px) {
  .cmu-notice-inner { grid-template-columns: 24px minmax(0, 1fr) 20px; column-gap: 8px; }
  .cmu-mark { width: 24px; height: 24px; font-size: 13px; }
}
/* Full-page mode (independent of active theme). */
html:has(> body.cmu-maintenance-page) { min-height: 100%; }
body.cmu-maintenance-page {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--cmu-bg);
  color: var(--cmu-text);
}
.cmu-maintenance-page .cmu-maintenance-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: 36px 20px;
  background: radial-gradient(ellipse at 50% 0, color-mix(in srgb, var(--cmu-accent) 13%, transparent), transparent 60%);
}
.cmu-maintenance-card { width: min(100%, 680px); text-align: center; }
.cmu-maintenance-symbol { width: 72px; height: 72px; margin: 0 auto 36px; font-size: 31px; border-radius: 19px; }
.cmu-maintenance-card .cmu-eyebrow { justify-content: center; font-size: 11px; }
.cmu-maintenance-card .cmu-heading { margin: 15px 0 20px; color: var(--cmu-text); font-size: clamp(32px, 5vw, 57px); font-weight: 730; letter-spacing: -.045em; line-height: 1.1; }
.cmu-maintenance-card .cmu-message { margin: 0 auto; max-width: 550px; color: var(--cmu-text); opacity: .78; font-size: clamp(15px, 2vw, 18px); line-height: 1.75; overflow-wrap: anywhere; }
.cmu-maintenance-card .cmu-footnote { margin: 28px 0 0; color: var(--cmu-accent); font-size: 13px; }
.cmu-maintenance-card .cmu-cta { margin-top: 27px; padding: 14px 20px; font-size: 14px; }

/* v1.2.1: scalable, dependency-free warning/info icon in every notice mode. */
.cmu-mark svg { display: block; width: 18px; height: 18px; }
.cmu-notice--standard .cmu-mark svg { width: 22px; height: 22px; }
.cmu-maintenance-symbol svg { display: block; width: 36px; height: 36px; }
@media (max-width: 600px) { .cmu-mark svg { width: 16px; height: 16px; } }
