/* Shared visual layer for the isolated investigation prototype only. */
body.prototype-section {
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
body.prototype-section .container,
body.prototype-section .portal-container,
body.prototype-section .shell {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}
body.prototype-section .portal-header { padding: 16px 0 0; }
body.prototype-section .portal-header .portal-banner {
  display: block;
  width: auto;
  aspect-ratio: auto;
  min-height: 260px;
  border-radius: 20px;
  background:
    linear-gradient(120deg, rgba(3, 26, 61, .1), rgba(34, 91, 229, .08)),
    url("https://pratsia.in.ua/img/header-banner.webp") center/cover no-repeat;
}
body.prototype-section .portal-header .page-title {
  max-width: 860px;
  margin: 34px auto 24px;
  padding: 0;
  text-align: center;
}
body.prototype-section .portal-header .page-title h1 {
  font-family: Merriweather, serif;
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
  margin: 0 0 12px;
  color: #031a3d;
  overflow-wrap: break-word;
}
body.prototype-section .portal-header .page-title p {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.65;
  font-weight: 400;
  color: #24364f;
}
body.prototype-section .portal-header .top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 38px;
  padding: 0;
}
body.prototype-section .portal-header .top-nav a {
  display: inline-block;
  flex: initial;
  padding: 8px 13px;
  border: 0;
  border-radius: 20px;
  margin: 0;
  background: #dee8f5;
  color: #031a3d;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  text-decoration: none;
}
body.prototype-section .portal-header .top-nav a:hover { background: #cdddf0; }
body.prototype-section .prototype-page-intro {
  max-width: none;
  margin: 0 0 28px;
  padding: 0;
  text-align: left;
}
body.prototype-section .prototype-page-intro > p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  margin: 0 0 14px;
}
body.prototype-section main .section > h2,
body.prototype-section main > section > h2,
body.prototype-section main .materials > h2 {
  font-family: Merriweather, serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: break-word;
}
body.prototype-section .button,
body.prototype-section main .action {
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
}
body.prototype-section .footer {
  background: #fff;
  color: #031a3d;
  border-top: 1px solid #d8e2f0;
  margin-top: 32px;
  padding: 20px 0;
}
body.prototype-section .footer h2 {
  font-family: Inter, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0;
  color: #031a3d;
  margin: 0 0 8px;
}
body.prototype-section .footer ul,
body.prototype-section .footer a {
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #031a3d;
}
body.prototype-section .footer a:hover,
body.prototype-section .footer a:focus-visible {
  color: #225be5;
  text-decoration: underline;
}
body.prototype-section a:focus-visible,
body.prototype-section button:focus-visible {
  outline: 3px solid #225be5;
  outline-offset: 3px;
}
@media (max-width: 767px) {
  body.prototype-section { font-size: 15px; line-height: 1.62; }
  body.prototype-section .container,
  body.prototype-section .portal-container,
  body.prototype-section .shell { width: min(calc(100% - 24px), 720px); }
  body.prototype-section .portal-header { padding-top: 12px; }
  body.prototype-section .portal-header .portal-banner {
    min-height: 150px;
    border-radius: 12px;
  }
  body.prototype-section .portal-header .page-title {
    margin: 24px auto 18px;
    text-align: left;
  }
  body.prototype-section .portal-header .page-title h1 { font-size: 31px; line-height: 1.18; }
  body.prototype-section .portal-header .page-title p { font-size: 17px; line-height: 1.45; }
  body.prototype-section .portal-header .top-nav {
    flex-wrap: nowrap;
    gap: 8px;
    margin: 18px -12px 30px;
    padding: 0 12px 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-color: #b8c9e4 #eef4fb;
  }
  body.prototype-section .portal-header .top-nav a {
    flex: 0 0 auto;
    padding: 8px 12px;
    white-space: nowrap;
  }
  body.prototype-section .prototype-page-intro > p { font-size: 15px; line-height: 1.62; }
  body.prototype-section .button,
  body.prototype-section main .action { font-size: 15px; line-height: 1.62; }
  body.prototype-section .footer ul,
  body.prototype-section .footer a { font-size: 15px; line-height: 1.62; }
}
@media (max-width: 420px) {
  body.prototype-section .container,
  body.prototype-section .portal-container,
  body.prototype-section .shell { width: min(calc(100% - 20px), 400px); }
  body.prototype-section .portal-header .portal-banner { min-height: 128px; }
  body.prototype-section .portal-header .page-title h1 { font-size: 28px; }
  body.prototype-section .portal-header .page-title p { font-size: 16px; }
  body.prototype-section .portal-header .top-nav {
    margin-left: -10px;
    margin-right: -10px;
    padding-left: 10px;
    padding-right: 10px;
  }
  body.prototype-section main .section > h2,
  body.prototype-section main > section > h2,
  body.prototype-section main .materials > h2 { font-size: 23px; }
}
/* Approved task navigation and document downloads, isolated prototype only. */
body.prototype-section .button,
body.prototype-section main .action {
  min-height: 44px;
  min-width: 0;
  max-width: 100%;
  padding: 8px 14px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: break-word;
  border-radius: 6px;
}
body.prototype-section .prototype-route-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 6px 0;
  color: #225be5;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}
body.prototype-section .prototype-action-icon { flex: 0 0 18px; vertical-align: middle; }
body.prototype-section .form-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
body.prototype-section .prototype-route-link:hover { text-decoration: underline; text-underline-offset: 4px; }
body.prototype-section .prototype-route-link:focus-visible,
body.prototype-section .prototype-download:focus-visible {
  outline: 3px solid #225be5;
  outline-offset: 4px;
  border-radius: 4px;
}
body.prototype-section .documents-route-actions { align-items: flex-start; gap: 4px 20px; }
body.prototype-section .documents-route-actions .documents-secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 500;
  color: #031a3d;
  text-decoration: underline;
  text-underline-offset: 4px;
}
body.prototype-section .button.prototype-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #c8d8ef;
  background: #f2f7fd;
  color: #031a3d;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}
body.prototype-section .button.prototype-download:hover { background: #e5eefb; border-color: #225be5; }
body.prototype-section .commission-materials-privacy-note {
  margin: 24px 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #485a73;
  font-size: 15px;
  line-height: 1.6;
}
body.prototype-section .prototype-privacy-reference { display: block; margin-top: 4px; }
/* Keep actual recipient cards. Suppress only the now-redundant empty-state prompt. */
body.prototype-section:has([data-special-route-direct-link]:not([hidden])) section[aria-labelledby="notifications-title"] [data-special-route-recipients] > p:only-child { display: none; }
@media(max-width:640px) {
  body.prototype-section .prototype-route-link,
  body.prototype-section .button.prototype-download,
  body.prototype-section .documents-route-actions .documents-secondary-link { font-size: 15px; }
}
