/* Desktop: place the proportional poster below the header, in the upper-right
   part of the hero. Mobile keeps a centered, viewport-fitting notice. */
.home-notice {
  position: fixed;
  inset: calc(var(--header) + 12px) clamp(24px, 9vw, 240px) auto auto;
  width: min(500px, 28vw, var(--notice-fit-width, 500px), calc((100dvh - var(--header) - 96px) * .70724));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - var(--header) - 28px);
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  color: #1e2928;
  box-shadow: 0 18px 80px #0005;
  overflow: auto;
  overscroll-behavior: contain;
}
.home-notice::backdrop { background: rgba(12, 25, 25, .68); }
.home-notice-poster { position: relative; display: block; }
.home-notice-poster img { width: 100%; height: auto; }
.home-notice-poster:focus-visible { outline-offset: -4px; }
.home-notice-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.5;
}
.home-notice-today { display: flex; align-items: center; gap: 7px; min-height: 44px; cursor: pointer; }
.home-notice-today input { width: 16px; height: 16px; margin: 0; accent-color: #2f6365; }
.home-notice-close { min-width: 64px; min-height: 44px; padding: 8px; border: 0; background: transparent; font-size: 12px; white-space: nowrap; }
.home-notice-close span { margin-left: 8px; font-size: 18px; }
body.home-notice-active { overflow: hidden; }
.home-notice.home-notice-centered {
  inset: 0;
  width: min(520px, calc(100vw - 32px), calc((100dvh - 100px) * .70724));
  max-height: calc(100dvh - 32px);
  margin: auto;
}
@media (min-width: 761px) and (max-height: 900px) {
  .home-notice-controls { gap: 6px; padding: 6px 8px; font-size: 10px; }
  .home-notice-today { gap: 5px; min-height: 36px; white-space: nowrap; }
  .home-notice-today input { width: 14px; height: 14px; }
  .home-notice-close { min-width: 44px; min-height: 36px; padding: 4px; font-size: 11px; }
  .home-notice-close span { margin-left: 4px; }
}
@media (max-width: 760px), (max-height: 600px) {
  .home-notice {
    inset: 0;
    width: min(520px, calc(100vw - 32px), calc((100dvh - 100px) * .70724));
    max-height: calc(100dvh - 32px);
    margin: auto;
  }
}
@media (max-width: 420px) {
  .home-notice { width: min(calc(100vw - 24px), calc((100dvh - 96px) * .70724)); max-width: calc(100vw - 24px); }
  .home-notice-controls { gap: 8px; padding-inline: 10px; font-size: 11px; }
}
