.portal-title {
  display: block;
  max-width: 900px;
  color: #dff2e5;
  font-size: clamp(1.45rem, 2.8vw, 2.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.035em;
}

/* Center and balance the first screen across tablet and mobile layouts. */
@media (max-width: 960px) {
  .hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    min-height: calc(100svh - 92px);
    overflow: hidden;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
    align-self: center;
    width: min(100%, 1100px);
    margin: 0 auto;
    padding: clamp(2rem, 5vh, 3.5rem) clamp(1.25rem, 6vw, 5rem);
    text-align: center;
  }

  .portal-title {
    max-width: 760px;
    margin: 0 auto;
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    line-height: 1.22;
    letter-spacing: -.02em;
  }

  .hero h1 {
    max-width: none;
    margin: 1rem auto 1.25rem;
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: .98;
  }

  .hero-copy > p {
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
  }

  .hero-actions {
    justify-content: center;
    margin-top: 1.5rem;
  }

  .hero-actions .button {
    width: min(100%, 440px);
    min-height: 64px;
    justify-content: center;
  }

  .hero-visual {
    position: absolute;
    z-index: 0;
    inset: 0;
    min-height: 0;
    opacity: .22;
  }

  .hero-visual::after {
    background: linear-gradient(120deg, rgba(11, 128, 67, .96), rgba(11, 105, 64, .8));
  }
}

@media (min-width: 621px) and (max-width: 960px) {
  .hero {
    min-height: calc(100svh - 112px);
  }
}

@media (max-width: 620px) {
  .hero-copy {
    padding: 2rem 1.25rem;
  }

  .portal-title {
    font-size: 1.1rem;
    line-height: 1.2;
  }

  .hero h1 {
    font-size: clamp(3rem, 11vw, 3.4rem);
  }
}

@media (min-width: 961px) {
  .portal-title {
    max-width: 720px;
    font-size: clamp(1.15rem, 1.7vw, 1.6rem);
    line-height: 1.25;
    letter-spacing: -.02em;
  }
}

.hero-copy > .hero-access-note {
  max-width: 560px;
  margin: .85rem 0 0;
  color: rgba(235, 248, 239, .88);
  font-size: clamp(.88rem, 1.05vw, 1rem);
  font-weight: 500;
  line-height: 1.55;
}

/* The cabinet menu item opens the login dialog; don't draw a section frame around its CTA. */
#cabinet.section-arrival-highlight {
  outline: none;
  box-shadow: none;
}

.section-arrival-highlight {
  outline: none !important;
  box-shadow: none !important;
}

.section-nav-arrival {
  animation: section-nav-arrival-pop 760ms cubic-bezier(.2, .8, .25, 1);
  transform-origin: center;
}

@keyframes section-nav-arrival-pop {
  0%, 100% { transform: scale(1); }
  42% { transform: scale(1.018); }
  72% { transform: scale(.998); }
}

@media (prefers-reduced-motion: reduce) {
  .section-nav-arrival { animation: none; }
}

@media (max-width: 960px) {
  .hero-copy > .hero-access-note {
    max-width: 620px;
    margin: .85rem auto 0;
    font-size: clamp(.85rem, 1.8vw, 1rem);
  }
}

@media (max-width: 620px) {
  .portal-title {
    font-size: 1.35rem;
    line-height: 1.1;
  }
}

@media (min-width: 621px) {
  .map-image-button {
    aspect-ratio: 16 / 10;
  }

  .map-image-button img {
    width: auto;
    height: 100%;
    max-width: none;
    margin: 0 auto;
    transform: rotate(-90deg);
  }

  .map-image-button:hover img {
    transform: rotate(-90deg) scale(1.02);
  }
}

.map-zoom {
  display: grid;
  place-items: center;
  overflow: auto;
}

.map-zoom img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.map-zoom picture {
  display: contents;
}

.polls-section[hidden],
.main-nav a[hidden] {
  display: none !important;
}

#auth-code-label[hidden],
#auth-verify-code[hidden] {
  display: none !important;
}

.public-documents-section .section-head p {
  max-width: 520px;
  color: var(--muted);
}

.public-document-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid #e3dccf;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(24, 70, 50, .05);
}

.public-document-card div {
  display: grid;
  gap: .35rem;
}

.public-document-card strong { font-size: 1.05rem; }
.public-document-card span { color: var(--muted); font-size: .88rem; }

/* Poll results: compact, readable charts with a clear total. */
.polls-section.is-broadcast-priority {
  padding-top: 5.5rem;
  background: #f7fbf7;
  border-top: 1px solid #d9ecdd;
  border-bottom: 1px solid #d9ecdd;
}

.polls-section.is-broadcast-priority .section-head {
  max-width: 1188px;
  margin-left: auto;
  margin-right: auto;
}

.poll-grid {
  align-items: stretch;
}

.poll-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #cfe4d4;
  border-radius: 24px;
  padding: 1.35rem 1.4rem 1.45rem;
  background: #fff;
  box-shadow: 0 14px 36px rgba(24, 70, 50, .08);
}

.poll-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--green);
}

.poll-card-head {
  margin-bottom: 1rem;
  padding-top: .25rem;
}

.poll-card-head > span {
  border: 1px solid #b9d7c2;
  background: #e8f5eb;
  color: var(--green-dark);
}

.poll-total {
  display: inline-flex;
  align-items: baseline;
  gap: .35rem;
  color: var(--green-dark);
}

.poll-total strong {
  font-size: 1.45rem;
  line-height: 1;
}

.poll-total small {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}

.poll-card h3 {
  max-width: 720px;
  margin: .7rem 0 .45rem;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.15;
}

.poll-card p {
  max-width: 720px;
  margin-bottom: 1.25rem;
}

.poll-results {
  gap: .95rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid #e3eee5;
}

.poll-result-row {
  gap: .45rem;
}

.poll-result-label {
  align-items: baseline;
}

.poll-result-label strong {
  min-width: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.poll-result-label span {
  flex: 0 0 auto;
  color: var(--green-dark);
  font-size: .74rem;
}

.poll-result-bar {
  height: 12px;
  border: 1px solid #d7e8da;
  border-radius: 999px;
  background: #f0f6f1;
}

.poll-result-bar i {
  min-width: 2px;
  background: var(--green);
  box-shadow: inset -8px 0 0 rgba(255, 211, 61, .35);
}

.poll-empty {
  padding: 1.25rem;
  border: 1px dashed #b9d7c2;
  border-radius: 16px;
  background: #f8fcf8;
  text-align: center;
}

/* Unified centered presentation for public page blocks. */
#main,
.content-page {
  width: 100%;
  max-width: none;
}

#main > .section:not(.hero),
#main > .contact-section,
.content-page > .section {
  width: min(1188px, calc(100% - 2rem));
  margin-left: auto !important;
  margin-right: auto !important;
}

#main > .section:not(.hero),
#main > .contact-section {
  text-align: center;
  padding-top: clamp(3.5rem, 5vw, 5rem);
  padding-bottom: clamp(3.5rem, 5vw, 5rem);
}

.content-page > .section {
  padding-top: clamp(2.75rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.75rem, 5vw, 4.5rem);
}

#main > .section:not(.hero) .section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  min-width: 0;
  gap: .8rem;
  text-align: center;
}

#main > .section:not(.hero) .section-head,
.content-page > .section .section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

#main > .section:not(.hero) .section-head > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  width: 100%;
  min-width: 0;
}

#main > .section:not(.hero) .section-head > div,
.content-page > .section .section-head > div {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#main > .section:not(.hero) .eyebrow,
#main > .contact-section .eyebrow,
.content-page .eyebrow {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#main > .section:not(.hero) .section-head > p {
  justify-self: center;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.content-page > .section .section-head > p {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

#main > .section:not(.hero) h2,
#main > .contact-section h2 {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  overflow-wrap: normal;
}

#main > .section:not(.hero) .section-head h2 {
  justify-self: stretch;
  max-width: none;
}

#main > .section:not(.hero) > :not(.section-head) {
  margin-left: auto;
  margin-right: auto;
}

.section-page-link {
  margin-left: auto;
  margin-right: auto;
}

.public-document-card {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.public-document-card div {
  justify-items: center;
  width: 100%;
}

.public-document-card strong {
  display: block;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.public-document-card .button {
  width: min(100%, 460px);
  margin: 0 auto;
  justify-content: center;
}

.news-card,
.development-card,
.video-card,
.board-card,
.listing-card {
  text-align: center;
}

.news-top,
.listing-card-head {
  justify-content: center;
}

.news-card h3,
.news-card p,
.development-card h3,
.development-card p,
.video-body h3,
.video-body p,
.listing-card h3,
.listing-card p {
  margin-left: auto;
  margin-right: auto;
}

.news-card > a,
.video-body .text-button,
.listing-contact {
  justify-content: center;
}

.development-copy {
  text-align: center;
}

.development-copy h2,
.development-copy p {
  margin-left: auto;
  margin-right: auto;
}

.development-grid {
  text-align: center;
}

.development-card::before {
  left: 50%;
  top: 0;
  bottom: auto;
  width: 56px;
  height: 4px;
  transform: translateX(-50%);
}

.development-icon,
.board-photo-wrap {
  margin-left: auto;
  margin-right: auto;
}

.listing-contact.board-call {
  width: min(100%, 320px);
  min-height: 52px;
  margin: 1.1rem auto 0;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(8, 120, 63, .2);
  font-size: .92rem;
  font-weight: 800;
  justify-content: center;
  gap: .8rem;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.listing-contact.board-call span {
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
}

.listing-contact.board-call:hover,
.listing-contact.board-call:focus-visible {
  background: var(--green-dark);
  box-shadow: 0 14px 30px rgba(8, 120, 63, .28);
  transform: translateY(-2px);
}

.listing-contact.board-call:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

.map-copy {
  text-align: center;
}

.map-copy > p {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.contact-section {
  justify-items: stretch;
}

.contact-card,
.address-card {
  align-items: center;
  text-align: center;
}

.contact-card > p,
.contact-links,
.address-card > div {
  margin-left: auto;
  margin-right: auto;
}

.contact-links {
  width: min(100%, 620px);
  text-align: center;
}

.contact-links a {
  align-items: center;
}

.address-card {
  justify-content: center;
}

.address-card > div {
  align-items: center;
}

/* Contacts: warm Samishki green with sun accents. */
#main > .contact-section {
  gap: 18px;
  align-items: stretch;
  overflow: visible;
}

#main > .contact-section .contact-card,
#main > .contact-section .address-card {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: clamp(2rem, 4.5vw, 4rem);
  border-radius: 32px;
  box-shadow: 0 22px 55px rgba(21, 53, 42, .12);
}

#main > .contact-section .contact-card {
  background:
    radial-gradient(circle at 100% 0, rgba(185, 239, 77, .2), transparent 34%),
    linear-gradient(145deg, #08783f 0%, #04552d 100%);
  color: #fff;
}

#main > .contact-section .contact-card::after {
  content: "";
  position: absolute;
  right: -76px;
  bottom: -86px;
  width: 220px;
  height: 220px;
  border: 42px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
  pointer-events: none;
}

#main > .contact-section .contact-card .eyebrow {
  color: #214214;
  background: var(--lime);
}

#main > .contact-section .contact-card h2 {
  margin: 1.35rem 0 1rem;
  color: #fff;
  font-size: clamp(3rem, 5vw, 5rem);
}

#main > .contact-section .contact-card > p {
  max-width: 560px;
  margin: 0 auto;
  color: #d9eee1;
  font-size: 1rem;
}

#main > .contact-section .contact-links {
  width: 100%;
  max-width: 620px;
  gap: .8rem;
  margin: 2rem auto 1.2rem;
}

#main > .contact-section .contact-links a {
  min-height: 98px;
  justify-content: center;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  background: rgba(255, 255, 255, .09);
  color: #fff;
  transition: transform .2s ease, background .2s ease;
}

#main > .contact-section .contact-links a:hover,
#main > .contact-section .contact-links a:focus-visible {
  background: rgba(255, 255, 255, .16);
  transform: translateY(-2px);
}

#main > .contact-section .contact-links small {
  color: #bfe0cb;
}

#main > .contact-section .contact-links strong {
  margin-top: .35rem;
  color: #fff;
  font-size: 1rem;
}

#main > .contact-section .button-white {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  margin: 0 auto;
  border: 0;
  border-radius: 15px;
  background: var(--sun);
  color: #3b3617;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
}

#main > .contact-section .button-white:hover {
  box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
}

#main > .contact-section .address-card {
  justify-content: center;
  border: 1px solid #e1dccd;
  background:
    radial-gradient(circle at 100% 100%, rgba(255, 212, 59, .18), transparent 34%),
    linear-gradient(145deg, #fff 0%, #f7f6ed 100%);
}

#main > .contact-section .address-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 7px;
  background: linear-gradient(90deg, var(--green), var(--lime), var(--sun));
}

#main > .contact-section .address-pin {
  width: 66px;
  height: 66px;
  flex-basis: 66px;
  border-radius: 20px;
  background: #e3f4e8;
  color: var(--green);
  box-shadow: inset 0 0 0 1px #c9e5d1;
}

#main > .contact-section .address-card small {
  color: var(--green);
}

#main > .contact-section .address-card strong {
  max-width: 560px;
  margin: 1rem auto 1.8rem;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  line-height: 1.55;
}

#main > .contact-section .address-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.3rem;
  border: 1px solid #c8dfcf;
  border-radius: 14px;
  background: #e8f3eb;
  color: var(--green-dark);
  transition: transform .2s ease, background .2s ease;
}

#main > .contact-section .address-card a:hover,
#main > .contact-section .address-card a:focus-visible {
  background: #d9ecdf;
  transform: translateY(-2px);
}

@media (max-width: 960px) {
  #main > .contact-section .contact-card,
  #main > .contact-section .address-card {
    min-height: 0;
    border-radius: 26px;
  }
}

.board-card {
  grid-template-columns: 1fr;
  justify-items: center;
}

@media (max-width: 620px) {
  .contact-links { grid-template-columns: 1fr; }
  .public-document-card { text-align: center; }
}

@media (max-width: 620px) {
  .poll-card { padding: 1.15rem; }
  .poll-result-label { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .poll-result-label span { font-size: .7rem; }
}
.membership-application-dialog { width: min(92vw, 700px); max-height: min(92vh, 900px); overflow: auto; }
.membership-application-dialog > p { color: var(--muted); }
.membership-application-form { margin-top: 1rem; }
.membership-application-form label { text-transform: none; letter-spacing: 0; }
.membership-application-form input,
.membership-application-form textarea {
  width: 100%;
  border: 1px solid #d8d1c2;
  border-radius: 14px;
  padding: .9rem 1rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.membership-application-form textarea { min-height: 92px; resize: vertical; }
.membership-cadastre-field { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .2rem; border: 1px solid #d8d1c2; border-radius: 14px; padding-left: 1rem; background: #fff; color: var(--ink); font: inherit; }
.membership-cadastre-field span { white-space: nowrap; font-weight: 700; }
.membership-cadastre-field input { min-width: 0; border: 0; padding-left: .2rem; }
.membership-cadastre-field input:focus { outline: 0; }
@media (max-width: 620px) {
  .public-document-card { align-items: stretch; flex-direction: column; }
  .public-document-card .button { width: 100%; }
}

@media (max-width: 620px) {
  #main > .section:not(.hero) .section-head,
  .content-page > .section .section-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  #main > .section:not(.hero) .section-head > div,
  .content-page > .section .section-head > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
  }

  #main > .section:not(.hero) .section-head h2,
  .content-page > .section .section-head h1,
  .content-page > .section .section-head h2,
  #main > .section:not(.hero) .section-head > p,
  .content-page > .section .section-head > p {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}
