/* STAGE 3K.14: homepage-only restoration dialog; page scroll stays unlocked. */
.page-home .site-restored-notice[hidden] { display: none !important; }
.page-home .site-restored-notice {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(29, 26, 22, .14);
}
.page-home .site-restored-notice__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(460px, 100%);
  max-height: calc(100vh - 144px);
  max-height: calc(100dvh - 144px);
  padding: 24px 26px 16px;
  border: 1px solid rgba(53, 74, 50, .18);
  border-top: 3px solid var(--green, #354a32);
  border-radius: 12px;
  background: var(--paper, #fbf8f2);
  box-shadow: 0 10px 36px rgba(29, 26, 22, .16);
  color: var(--ink, #1d1a16);
  font-family: var(--sans, "Inter", sans-serif);
}
.page-home .site-restored-notice__title {
  flex: none;
  margin: 0 24px 12px 0;
  color: var(--green, #354a32);
  font: 400 26px/1.15 var(--serif, "Slovic", serif);
  text-wrap: balance;
}
.page-home .site-restored-notice__close {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--green, #354a32);
  cursor: pointer;
}
.page-home .site-restored-notice__close:hover { background: #eeeee4; }
.page-home .site-restored-notice__close svg { display: block; pointer-events: none; }
.page-home .site-restored-notice__text {
  min-height: 0;
  overflow-y: auto;
  color: #514e45;
  font-size: 14px;
  line-height: 1.5;
  scrollbar-width: thin;
}
.page-home .site-restored-notice__text p { margin: 0; }
.page-home .site-restored-notice__text p + p { margin-top: 10px; }
.page-home .site-restored-notice__contact {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  min-height: 44px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(53, 74, 50, .16);
  color: var(--green, #354a32);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}
.page-home .site-restored-notice__contact span:first-child {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-home .site-restored-notice__phone { white-space: nowrap; }
.page-home .site-restored-notice__contact:hover { color: var(--green-2, #2b3c29); }
.page-home .site-restored-notice :focus-visible {
  outline: 2px solid var(--green, #354a32);
  outline-offset: 2px;
}
.page-home.site-restored-notice-open > .cookie-notice { display: none; }
@media (max-width: 640px) {
  .page-home .site-restored-notice { padding: 12px; }
  .page-home .site-restored-notice__dialog {
    max-height: min(48vh, calc(100vh - 144px));
    max-height: min(48dvh, calc(100dvh - 144px));
    padding: 18px 18px 12px;
    border-radius: 10px;
  }
  .page-home .site-restored-notice__title { margin-right: 24px; font-size: 24px; }
}
@media (max-width: 359px) {
  .page-home .site-restored-notice__dialog { padding: 16px 16px 10px; }
  .page-home .site-restored-notice__title { font-size: 22px; }
  .page-home .site-restored-notice__contact { gap: 4px 8px; font-size: 12px; }
}
