/* Homepage announcement: fit the complete poster inside the viewport. */
.mk-announcement {
  position: fixed;
  inset: 0;
  width: min(640px, calc(100vw - 32px), calc(80vh - 88px));
  width: min(640px, calc(100vw - 32px), calc(80dvh - 88px));
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--mk-radius, 16px);
  background: var(--mk-paper, #fff);
  color: var(--mk-ink, #101d23);
  box-shadow: 0 24px 80px #0005;
  overflow: auto;
}
.mk-announcement::backdrop { background: #101d23bd; }
.mk-announcement-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 10px 20px;
}
.mk-announcement-header h2 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; }
.mk-announcement-close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--mk-line, #dde4e8);
  border-radius: 50%;
  background: var(--mk-soft, #f5f7f8);
  color: var(--mk-ink, #101d23);
  font: inherit;
  font-size: 30px;
  line-height: 1;
}
.mk-announcement-close:hover { background: var(--mk-line, #dde4e8); }
.mk-announcement-image-link { display: block; line-height: 0; }
.mk-announcement-image-link img { display: block; width: 100%; height: auto; }
.mk-announcement-image-link:focus-visible { outline-offset: -4px !important; }
.mk-announcement-error { margin: 0; padding: 20px; }
.mk-announcement-error a { text-decoration: underline; }
html.mk-announcement-open { overflow: hidden; }
