/*
Theme Name: Homogenesis Blocks
Theme URI: https://homogenesis.ru/
Author: Homogenesis
Description: Clean Gutenberg block theme rebuilt from the 2026 reference site.
Version: 1.5.1
Requires at least: 7.1
Requires PHP: 8.1
Text Domain: homogenesis-blocks
*/

:root {
  --hg-green: #39a96b;
  --hg-mint: #dceee3;
  --hg-ink: #444;
  --hg-soft: #f2f3f4;
}

/* Complete rebuilt site: content sections restored from the clean database. */
.hg-front-content > .hg-section:nth-of-type(2) {
  height: auto;
  min-height: 430px;
  padding: 42px 20px 55px;
}
.hg-front-content > .hg-section:nth-of-type(2) .hg-partners {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  width: 950px;
  max-width: 100%;
  margin: 32px auto 0;
}
.hg-partners .wp-block-image {
  display: flex;
  min-height: 135px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid #e5e5e5;
  background: #fff;
}
.hg-partners .wp-block-image img {
  width: 115px !important;
  height: 115px !important;
  object-fit: contain !important;
}
.hg-front-content > .hg-section:nth-of-type(3) { height: auto; min-height: 594px; }
.hg-front-content > .hg-section:nth-of-type(4) {
  height: auto;
  min-height: 310px;
  margin-top: 0 !important;
  padding: 58px 20px;
}
.hg-front-content > .hg-section:nth-of-type(4) .hg-contact-card {
  display: block;
  width: 760px;
  max-width: 100%;
  margin: 32px auto 0;
  padding: 34px;
  border-radius: 12px;
  background: #f7faf8;
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
}
.hg-contact-card p { margin: 0; font-family: Roboto, sans-serif; font-size: 19px; line-height: 1.6; }
.hg-contact-card a, .hg-contact-details a, .hg-footer a { color: #178d43; text-decoration: none; }
.hg-front-content > .hg-section:nth-of-type(5) {
  height: auto;
  min-height: 610px;
  padding: 43px 20px 40px;
}
.hg-front-content > .hg-section:nth-of-type(5) > p { display: block; margin: 15px auto 25px; }
.hg-home-map { width: 1120px; max-width: 100%; margin: 0 auto; overflow: hidden; border-radius: 4px; }
.hg-home-map iframe { display: block; width: 100%; height: 400px; }

.hg-content {
  width: 1120px;
  max-width: calc(100% - 40px);
  min-height: 500px;
  margin: 45px auto 60px !important;
}
.hg-content > *, .hg-content > .alignwide { max-width: 1120px; }
.hg-content > .wp-block-post-title,
.page-id-20 .hg-content > .wp-block-post-title,
.page-id-28 .hg-content > .wp-block-post-title,
.page-id-30 .hg-content > .wp-block-post-title { display: block; height: auto; min-height: 77px; }
.page-id-20 .hg-content, .page-id-22 .hg-content, .page-id-24 .hg-content,
.page-id-26 .hg-content, .page-id-28 .hg-content, .page-id-30 .hg-content,
.page-id-316 .hg-content, .page-id-318 .hg-content { height: auto; }
.hg-prose { max-width: 850px !important; font-size: 18px; line-height: 1.75; }
.hg-prose h2 { margin-top: 34px; color: #178d43; font-size: 25px; }
.hg-prose li { margin-bottom: 8px; }
.hg-projects { gap: 28px; margin-top: 42px; }
.hg-project-card { height: 100%; padding: 38px; border-top: 4px solid #39a96b; background: #f2f3f4; }
.hg-project-card h2 { margin-top: 0; }
.hg-project-card .wp-block-button__link,
.hg-documents-page .wp-block-file__button { border-radius: 3px; background: #178d43; }

.hg-event-card { gap: 28px; margin-bottom: 28px; padding: 20px; border: 1px solid #e3e3e3; background: #fff; }
.hg-event-card .wp-block-post-featured-image { flex: 0 0 34%; margin: 0; }
.hg-event-card .wp-block-post-featured-image img { width: 100%; height: 220px; object-fit: cover; }
.hg-event-card h2 { margin: 0 0 8px; font-size: 25px; line-height: 1.25; }
.hg-event-card h2 a { color: #111; text-decoration: none; }
.hg-event-card .wp-block-post-date { color: #777; font-size: 14px; }

.hg-media-gallery { gap: 16px !important; margin-top: 35px; }
.hg-media-gallery .wp-block-image { aspect-ratio: 4 / 3; }
.hg-media-gallery .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.hg-documents-page { max-width: 760px !important; }
.hg-documents-page > .wp-block-image img { width: 260px; }
.hg-documents-page .wp-block-file { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 14px 0; padding: 18px 20px; border: 1px solid #e3e3e3; }
.hg-documents-page .wp-block-file > a:first-child { color: #222; font-size: 18px; }
.hg-contact-details { margin: 35px auto 55px; padding: 38px; background: #f7faf8; }
.hg-contact-details .wp-block-columns { margin-top: 30px; }
.page-id-30 .hg-map-area {
  position: relative;
  left: 50%;
  width: 100vw;
  height: auto;
  min-height: 540px;
  margin-left: -50vw !important;
  padding: 45px 20px 40px;
}
.page-id-30 .hg-map-area .wp-block-html { width: 1120px; max-width: 100%; margin: 25px auto 0 !important; }

.hg-footer { min-height: 230px; padding: 42px 24px; border-top: 1px solid #eee; }
.hg-footer > .wp-block-columns { min-height: 0; max-width: 1120px !important; gap: 45px; }
.hg-footer .wp-block-column:first-child { flex-basis: 31%; }
.hg-footer .wp-block-column:last-child { flex-basis: 38%; }
.hg-page-title { position: relative; min-height: 77px; margin: 0 0 20px; font-size: 26px; line-height: 36px; text-transform: uppercase; }
.hg-page-title::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 130px; border-bottom: 1px solid #e3e3e3; transform: translateX(-50%); }
.hg-event-card > .wp-block-post-featured-image { flex: 0 0 350px !important; width: 350px !important; }
.hg-event-card > .wp-block-group { flex: 1 1 auto; }
.hg-footer h3 { margin: 0 0 14px; font-size: 18px; font-weight: 500; }
.hg-footer p { font-family: Roboto, sans-serif; font-size: 16px; line-height: 1.9; }
.hg-footer-nav ul { margin: 0; padding: 0; list-style: none; }
.hg-footer-nav li { margin: 0 0 9px; }

@media (max-width: 620px) {
  .hg-front-content > .hg-section:nth-of-type(2) { min-height: 720px; padding: 36px 16px; }
  .hg-front-content > .hg-section:nth-of-type(2) .hg-partners { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 25px; }
  .hg-partners .wp-block-image { min-height: 125px; }
  .hg-partners .wp-block-image img { width: 100px !important; height: 100px !important; }
  .hg-front-content > .hg-section:nth-of-type(3) { height: auto; min-height: 1518px; }
  .hg-front-content > .hg-section:nth-of-type(4) { min-height: 330px; padding: 50px 16px; }
  .hg-contact-card { padding: 22px !important; }
  .hg-contact-card .wp-block-columns { display: block; }
  .hg-front-content > .hg-section:nth-of-type(5) { min-height: 610px; padding-left: 0; padding-right: 0; }
  .hg-home-map { border-radius: 0; }
  .hg-content { width: calc(100% - 28px); max-width: none; min-height: 420px; margin-bottom: 45px !important; }
  .hg-content > .wp-block-post-title { font-size: 23px; }
  .hg-projects, .hg-contact-details .wp-block-columns { display: block; }
  .hg-project-card { margin-bottom: 18px; padding: 26px; }
  .hg-event-card { display: block; padding: 12px; }
  .hg-event-card .wp-block-post-featured-image { width: 100% !important; }
  .hg-event-card h2 { margin-top: 18px; font-size: 21px; }
  .hg-media-gallery { grid-template-columns: repeat(2, 1fr) !important; }
  .hg-documents-page .wp-block-file { align-items: flex-start; flex-direction: column; }
  .hg-contact-details { padding: 25px 18px; }
  .page-id-30 .hg-map-area { padding-left: 0; padding-right: 0; }
  .page-id-30 .hg-map-area .wp-block-html { width: 100%; }
  .hg-footer { min-height: 0; padding: 34px 20px; }
  .hg-footer > .wp-block-columns { display: block; min-height: 0; padding: 0; }
  .hg-footer .wp-block-column { margin-bottom: 28px; }
  .hg-footer p { font-size: 14px; }
}

/* Site-wide alignment and typography pass. */
html, body { overflow-x: hidden; }
body { font-family: Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.65; }
.hg-content { box-sizing: border-box; width: min(1120px, calc(100% - 48px)); max-width: none; margin-left: auto !important; margin-right: auto !important; }
.hg-content > .entry-content { width: 100%; max-width: 100%; }
.hg-content .hg-prose { width: 820px; max-width: 100% !important; margin-right: auto !important; margin-left: auto !important; color: #333; font-size: 17px; line-height: 1.75; }
.hg-content .hg-prose p { margin-top: 0; margin-bottom: 18px; }
.hg-content .hg-prose p.has-large-font-size { font-size: 20px !important; line-height: 1.65; font-weight: 400; }
.hg-content .hg-prose h2 { margin: 34px 0 14px; font-size: 25px; line-height: 1.3; font-weight: 400; }
.hg-content .hg-prose ul { margin: 0 0 24px; padding-left: 24px; }
.hg-content .hg-prose li { margin-bottom: 8px; }
.hg-content > .wp-block-post-title, .hg-page-title { width: 100%; text-align: center; }

.hg-event-card > .wp-block-post-featured-image { overflow: hidden; background: #f4f6f5; }
.hg-event-card > .wp-block-post-featured-image > a { display: block; width: 100%; height: 220px; }
.hg-event-card > .wp-block-post-featured-image img { display: block; width: 100% !important; height: 220px !important; object-fit: contain !important; object-position: center; }

.hg-footer > .wp-block-columns { align-items: flex-start; }
.hg-footer-brand .wp-block-image { width: 230px; max-width: 100%; margin: 0 0 18px; }
.hg-footer-brand .wp-block-image img { display: block; width: 230px; height: auto; }
.hg-footer-brand p { margin: 0; }

@media (max-width: 900px) {
  .hg-content { width: min(100% - 36px, 820px); }
  .hg-footer > .wp-block-columns { grid-template-columns: 32% 25% 43%; gap: 22px; }
}

@media (max-width: 620px) {
  .hg-content { width: calc(100% - 28px); }
  .hg-content .hg-prose { font-size: 16px; line-height: 1.65; }
  .hg-content .hg-prose p.has-large-font-size { font-size: 18px !important; }
  .hg-event-card > .wp-block-post-featured-image > a,
  .hg-event-card > .wp-block-post-featured-image img { height: 210px !important; }
  .hg-footer-brand .wp-block-image { width: 210px; }
}

/* Keep these responsive rules last: earlier declarations reproduce desktop geometry. */
@media (max-width: 900px) {
  .hg-hero {
    height: auto !important;
    min-height: 0 !important;
    margin-top: 0 !important;
    padding: 30px 24px 34px !important;
  }
  .hg-hero .wp-block-columns {
    display: flex !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 22px !important;
  }
  .hg-hero .wp-block-column:first-child {
    flex: 0 0 auto !important;
    flex-basis: auto !important;
    padding: 0 !important;
  }
  .hg-hero .wp-block-column:last-child {
    flex: 0 0 auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
  }
  .hg-news { width: 100% !important; max-width: 100% !important; }
  .hg-news .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  html, body, .wp-site-blocks { max-width: 100%; overflow-x: clip; }
  .hg-header__inner {
    position: relative;
    display: flex !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 14px 18px 16px !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    overflow: visible !important;
  }
  .hg-logo {
    position: static !important;
    width: min(270px, calc(100vw - 48px)) !important;
    margin: 0 auto !important;
    transform: none !important;
  }
  .hg-logo img { width: 100% !important; max-width: 100% !important; height: auto !important; }
  .hg-header .wp-block-navigation {
    position: static !important;
    width: auto !important;
    margin: 0 !important;
    transform: none !important;
  }

  .hg-hero { padding: 26px 16px 30px !important; }
  .hg-hero .wp-block-column:last-child { text-align: left; }
  .hg-hero__photo img { width: 180px !important; height: 180px !important; transform: none !important; }
  .hg-hero p.has-large-font-size { margin-bottom: 14px; font-size: 19px !important; line-height: 1.35; }

  .hg-front-content > .hg-section:nth-of-type(2),
  .hg-front-content > .hg-section:nth-of-type(3),
  .hg-front-content > .hg-section:nth-of-type(4),
  .hg-front-content > .hg-section:nth-of-type(5) { height: auto !important; min-height: 0 !important; }
  .hg-front-content > .hg-section:nth-of-type(2) { padding: 36px 16px 44px; }
  .hg-front-content > .hg-section:nth-of-type(3) { padding: 36px 14px; }
  .hg-front-content > .hg-section:nth-of-type(4) { padding: 44px 16px; }
  .hg-front-content > .hg-section:nth-of-type(5) { padding: 40px 0 0; }
  .hg-news .wp-block-post-template { grid-template-columns: minmax(0, 1fr) !important; gap: 14px; }
  .hg-news .wp-block-post-featured-image img { width: 100% !important; height: auto !important; aspect-ratio: 16 / 10; }

  .hg-content, .hg-single { width: calc(100% - 28px) !important; max-width: none !important; min-width: 0; }
  .hg-content > .wp-block-post-title, .hg-page-title { min-height: 0; margin-bottom: 28px; font-size: 23px !important; line-height: 1.3; }

  .hg-event-card {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    padding: 12px;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 16px;
  }
  .hg-event-card > .wp-block-post-featured-image {
    flex: 0 0 auto !important;
    flex-basis: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  .hg-event-card > .wp-block-post-featured-image > a,
  .hg-event-card > .wp-block-post-featured-image img { width: 100% !important; height: auto !important; aspect-ratio: 16 / 10; }
  .hg-event-card > .wp-block-group { width: 100% !important; max-width: 100% !important; min-width: 0; margin: 0 !important; }
  .hg-event-card h2 { margin: 0 0 10px; overflow-wrap: anywhere; }

  .hg-article { width: 100% !important; max-width: 100% !important; min-width: 0; }
  .hg-article-title { font-size: 27px !important; line-height: 1.25 !important; }
  .hg-article-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px;
  }
  .hg-article-content > p,
  .hg-article-content > h2,
  .hg-article-content > h3,
  .hg-article-content > ul,
  .hg-article-content > ol,
  .hg-article-content > blockquote,
  .hg-article-content > figure {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
  .hg-article-content > .hg-article-gallery,
  .hg-article-gallery.columns-1,
  .hg-article-gallery.columns-2,
  .hg-article-gallery.columns-3 { width: 100% !important; max-width: 100% !important; min-width: 0; grid-template-columns: minmax(0, 1fr) !important; }
  .hg-article-gallery > .wp-block-image,
  .hg-article-gallery > .wp-block-image a,
  .hg-article-gallery > .wp-block-image img { width: 100% !important; max-width: 100% !important; min-width: 0; }
  .hg-article-gallery > .wp-block-image img { height: auto !important; aspect-ratio: 4 / 3; }

  .hg-content .hg-media-gallery { grid-template-columns: minmax(0, 1fr) !important; }
  .hg-documents-page, .hg-documents-page .wp-block-file { width: 100%; max-width: 100% !important; }
  .hg-documents-page .wp-block-file { overflow-wrap: anywhere; }
  .page-id-30 .hg-map-area {
    position: static !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin-left: 0 !important;
    padding: 38px 0 0 !important;
  }
  .page-id-30 .hg-map-area .wp-block-html { width: 100% !important; max-width: 100% !important; margin: 22px 0 0 !important; }
  .hg-map-area iframe, .hg-home-map iframe { height: 330px; }

  .hg-footer { min-height: 0; padding: 34px 20px; }
  .hg-footer > .wp-block-columns { display: block !important; min-height: 0; width: 100%; padding: 0; }
  .hg-footer .wp-block-column { width: 100%; max-width: 100%; margin-bottom: 28px; }
}

/* Canonical responsive pass: keep every Gutenberg block inside the viewport. */
@media (max-width: 900px) {
  .hg-header__inner {
    display: flex !important;
    min-height: 0;
    height: auto;
    padding: 22px 18px 18px;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    overflow: visible;
  }
  .hg-logo {
    position: static;
    width: min(280px, calc(100vw - 48px));
    margin: 0 auto;
    transform: none;
  }
  .hg-logo img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  .hg-header .wp-block-navigation {
    position: static;
    width: 100%;
    margin: 0;
    transform: none;
    justify-content: center;
  }
  .hg-nav {
    width: 100%;
    margin: 0;
    justify-content: center;
  }
  .hg-nav .wp-block-navigation__container {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .hg-nav a { padding: 8px 10px; font-size: 17px; }

  .hg-hero {
    height: auto;
    min-height: 0;
    margin-top: 0 !important;
    padding: 30px 24px 34px;
  }
  .hg-hero .wp-block-columns {
    display: flex;
    min-height: 0;
    margin: 0 auto;
    flex-direction: column;
    align-items: center !important;
    gap: 22px;
  }
  .hg-hero .wp-block-column:first-child {
    flex: 0 0 auto !important;
    flex-basis: auto !important;
    padding: 0;
  }
  .hg-hero .wp-block-column:last-child {
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
  }
  .hg-hero__photo img { transform: none; }
  .hg-hero p.has-large-font-size {
    margin-bottom: 14px;
    font-size: 20px !important;
    line-height: 1.35;
  }

  .hg-news { width: 100%; max-width: 100% !important; }
  .hg-news .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hg-news .wp-block-post-featured-image img { width: 100%; }
  .hg-footer > .wp-block-columns { width: 100%; }
}

@media (max-width: 620px) {
  html, body, .wp-site-blocks { max-width: 100%; overflow-x: clip; }

  .hg-header__inner { padding: 14px 18px 16px; gap: 10px !important; }
  .hg-logo { width: min(270px, calc(100vw - 48px)); }
  .hg-header .wp-block-navigation { width: auto; }
  .hg-nav { width: auto; }
  .hg-nav .wp-block-navigation__container { width: auto; }

  .hg-hero { padding: 26px 16px 30px; text-align: left; }
  .hg-hero .wp-block-columns { min-height: 0; gap: 22px; }
  .hg-hero .wp-block-column:first-child { padding-top: 0; }
  .hg-hero .wp-block-column:last-child { margin-top: 0; padding: 0; text-align: left; }
  .hg-hero__photo img { width: 180px; height: 180px; }
  .hg-hero p.has-large-font-size { font-size: 19px !important; line-height: 1.35; }

  .hg-front-content > .hg-section:nth-of-type(2),
  .hg-front-content > .hg-section:nth-of-type(3),
  .hg-front-content > .hg-section:nth-of-type(4),
  .hg-front-content > .hg-section:nth-of-type(5) {
    height: auto;
    min-height: 0;
  }
  .hg-front-content > .hg-section:nth-of-type(2) { padding: 36px 16px 44px; }
  .hg-front-content > .hg-section:nth-of-type(3) { padding: 36px 14px; }
  .hg-front-content > .hg-section:nth-of-type(4) { padding: 44px 16px; }
  .hg-front-content > .hg-section:nth-of-type(5) { padding: 40px 0 0; }

  .hg-news { width: 100%; max-width: 100% !important; }
  .hg-news .wp-block-post-template { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hg-news .wp-block-post-featured-image img { width: 100%; height: auto; aspect-ratio: 16 / 10; }

  .hg-content,
  .hg-single { width: calc(100% - 28px); max-width: none; min-width: 0; }
  .hg-content > .wp-block-post-title,
  .hg-page-title { min-height: 0; margin-bottom: 28px; font-size: 23px !important; line-height: 1.3; }

  .hg-event-card {
    display: flex !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 16px;
  }
  .hg-event-card > .wp-block-post-featured-image {
    flex: 0 0 auto !important;
    flex-basis: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
  }
  .hg-event-card > .wp-block-post-featured-image > a,
  .hg-event-card > .wp-block-post-featured-image img { width: 100% !important; height: auto !important; aspect-ratio: 16 / 10; }
  .hg-event-card > .wp-block-group { width: 100%; max-width: 100%; min-width: 0; margin: 0; }
  .hg-event-card h2 { margin: 0 0 10px; overflow-wrap: anywhere; }

  .hg-article { width: 100%; max-width: 100% !important; min-width: 0; }
  .hg-article-title { font-size: 27px !important; line-height: 1.25 !important; }
  .hg-article-cover { margin-bottom: 26px; }
  .hg-article-content {
    display: grid;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px;
  }
  .hg-article-content > p,
  .hg-article-content > h2,
  .hg-article-content > h3,
  .hg-article-content > ul,
  .hg-article-content > ol,
  .hg-article-content > blockquote,
  .hg-article-content > figure {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
  .hg-article-content > .hg-article-gallery,
  .hg-article-gallery.columns-1,
  .hg-article-gallery.columns-2,
  .hg-article-gallery.columns-3 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .hg-article-gallery > .wp-block-image,
  .hg-article-gallery > .wp-block-image a,
  .hg-article-gallery > .wp-block-image img { width: 100% !important; max-width: 100% !important; min-width: 0; }
  .hg-article-gallery > .wp-block-image img { height: auto !important; aspect-ratio: 4 / 3; }

  .hg-content .hg-media-gallery { grid-template-columns: minmax(0, 1fr) !important; }
  .hg-documents-page { width: 100%; max-width: 100% !important; }
  .hg-documents-page > .wp-block-image img { width: min(230px, 100%); height: auto; }
  .hg-documents-page .wp-block-file { width: 100%; max-width: 100%; overflow-wrap: anywhere; }

  .page-id-30 .hg-map-area {
    position: static;
    left: auto;
    width: 100%;
    max-width: 100% !important;
    min-height: 0;
    margin-left: 0 !important;
    padding: 38px 0 0;
  }
  .page-id-30 .hg-map-area .wp-block-html { width: 100%; max-width: 100%; margin: 22px 0 0 !important; }
  .hg-map-area iframe, .hg-home-map iframe { height: 330px; }

  .hg-footer { padding: 34px 20px; }
  .hg-footer > .wp-block-columns { display: block; width: 100%; padding: 0; }
  .hg-footer .wp-block-column { width: 100%; max-width: 100%; margin-bottom: 28px; }
  .hg-footer-brand .wp-block-image { width: min(210px, 100%); }
}

/* Gutenberg galleries inside news articles. */
.hg-article-content > .hg-article-gallery {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px !important;
  width: 100%;
  max-width: 100% !important;
  margin: 10px 0 28px !important;
}
.hg-article-gallery.columns-1 {
  grid-template-columns: minmax(0, 560px) !important;
  justify-content: center;
}
.hg-article-gallery > .wp-block-image {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  overflow: hidden;
  border-radius: 4px;
  background: #eef1ef;
}
.hg-article-gallery > .wp-block-image a { display: block; width: 100%; height: 100%; }
.hg-article-gallery > .wp-block-image img {
  display: block !important;
  width: 100% !important;
  height: 240px !important;
  margin: 0 !important;
  object-fit: cover !important;
}

@media (max-width: 700px) {
  .hg-article-content > .hg-article-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px !important; }
  .hg-article-gallery > .wp-block-image img { height: 180px !important; }
}

@media (max-width: 430px) {
  .hg-article-content > .hg-article-gallery { grid-template-columns: 1fr; }
  .hg-article-gallery > .wp-block-image img { height: auto !important; aspect-ratio: 4 / 3; }
}

/* Gallery, document and article refinements. */
.hg-front-content .hg-partners { margin-right: auto !important; margin-left: auto !important; justify-content: center; }
.hg-front-content .hg-partners > .wp-block-image { display: grid !important; width: 100% !important; place-items: center; }
.hg-front-content .hg-partners > .wp-block-image > a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.hg-front-content .hg-partners > .wp-block-image img { display: block; margin: auto; }

.hg-content .hg-documents-page { width: 820px; max-width: 100% !important; margin-right: auto !important; margin-left: auto !important; }
.hg-documents-page > .wp-block-image { margin-right: auto !important; margin-left: auto !important; }

.hg-content .hg-media-gallery { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px !important; width: 100%; max-width: 100%; margin: 34px auto 0; }
.hg-content .hg-media-gallery > .wp-block-image { display: block; width: 100% !important; aspect-ratio: 4 / 3; margin: 0 !important; overflow: hidden; border-radius: 3px; background: #eef1ef; box-shadow: 0 3px 14px rgba(0,0,0,.08); }
.hg-content .hg-media-gallery > .wp-block-image a { display: block; width: 100%; height: 100%; }
.hg-content .hg-media-gallery > .wp-block-image img { display: block; width: 100% !important; height: 100% !important; object-fit: cover !important; transition: transform .25s ease; }
.hg-content .hg-media-gallery > .wp-block-image:hover img { transform: scale(1.025); }

.hg-single { width: min(980px, calc(100% - 48px)); }
.hg-article { width: 100%; max-width: 900px !important; margin: 0 auto; }
.hg-article-title { height: auto !important; min-height: 0 !important; margin: 0 auto 14px !important; font-size: 36px !important; line-height: 1.22 !important; font-weight: 500 !important; text-align: center; text-transform: none !important; }
.hg-article-title::after { display: none; }
.hg-article-date { margin: 0 auto 30px; color: #777; font-size: 15px; text-align: center; }
.hg-article-cover { width: 100%; margin: 0 0 36px; overflow: hidden; border-radius: 4px; background: #f2f3f4; }
.hg-article-cover img { display: block; width: 100% !important; height: auto !important; max-height: 560px; object-fit: contain !important; }
.hg-article-content { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; width: 100%; max-width: 100% !important; color: #333; font-size: 17px; line-height: 1.75; }
.hg-article-content > style { display: none !important; }
.hg-article-content > p, .hg-article-content > h2, .hg-article-content > h3,
.hg-article-content > ul, .hg-article-content > ol, .hg-article-content > blockquote { grid-column: 1 / -1; width: 780px; max-width: 100%; margin: 0 auto 18px; }
.hg-article-content > figure { display: flex !important; width: 100% !important; max-width: none !important; margin: 0 !important; flex-direction: column; align-items: stretch; overflow: hidden; border-radius: 3px; background: #eef1ef; }
.hg-article-content > figure a { display: block; width: 100%; }
.hg-article-content > figure img { display: block !important; width: 100% !important; height: 240px !important; margin: 0 !important; object-fit: cover !important; }
.hg-article-content > figure figcaption { width: 100% !important; margin: 0 !important; padding: 9px 12px; color: #555; background: #f7f8f7; font-size: 13px; line-height: 1.35; text-align: left; }
.hg-article-back { grid-column: 1 / -1; margin-top: 38px; }
.hg-article-back a { color: #178d43; text-decoration: none; }

@media (max-width: 700px) {
  .hg-content .hg-media-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px !important; }
  .hg-single { width: calc(100% - 28px); }
  .hg-article-title { font-size: 27px !important; }
  .hg-article-content { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; font-size: 16px; }
  .hg-article-content > figure img { height: 180px !important; }
}

@media (max-width: 430px) {
  .hg-content .hg-media-gallery { grid-template-columns: 1fr; }
  .hg-article-content { grid-template-columns: 1fr; }
  .hg-article-content > figure img { height: auto !important; aspect-ratio: 4 / 3; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { color: var(--hg-ink); font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif; }
a { text-underline-offset: .18em; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0 !important; }
.hg-header { background: #fff; border: 0; }
.hg-header__inner { min-height: 149px; max-width: 1120px !important; gap: 0 !important; padding: 0 17px; }
.hg-logo { width: 300px; margin: 0; }
.hg-logo img { display: block; width: 300px; max-width: 100%; height: 119px; object-fit: contain; }
.hg-nav { gap: 0; margin-right: 44px; }
.hg-nav a { padding: 15px; color: #000; font-family: Roboto, sans-serif; font-size: 20px; font-weight: 300; line-height: 20px; text-decoration: none; }
.hg-nav a:hover { color: var(--hg-green); }
.hg-hero { background: var(--hg-mint); height: 250px; margin-top: 10px !important; padding: 15px 0; }
.hg-hero .wp-block-columns { min-height: 220px; max-width: 1120px !important; margin: 0 auto; gap: 27px; }
.hg-hero .wp-block-column:first-child { flex-basis: 280px !important; }
.hg-hero .wp-block-column:last-child { flex: 1 1 auto; }
.hg-hero__photo { margin: 0; text-align: center; }
.hg-hero__photo img { width: 200px; height: 200px; object-fit: cover; border-radius: 50%; }
.hg-hero p.has-large-font-size { margin: 0 0 20px; font-family: Roboto, sans-serif; font-size: 22px !important; font-weight: 300; line-height: 22px; color: #000; }
.hg-hero a { color: var(--hg-green); text-decoration: none; }
.hg-section { padding: 0; }
.hg-section--soft { background: var(--hg-soft); }
.hg-section-title { margin: 0; font-family: Roboto, sans-serif; font-size: 22px; line-height: 41.8px; font-weight: 300; text-transform: uppercase; letter-spacing: 0; text-align: center; color: #000; }
.hg-section-title strong { color: var(--hg-green); font-weight: 300; }
.hg-front-content > .hg-section:nth-of-type(2) { height: 133px; margin-top: 35px !important; padding-top: 31px; }
.hg-front-content > .hg-section:nth-of-type(2) .hg-partners { display: none; }
.hg-front-content > .hg-section:nth-of-type(3) { min-height: 594px; margin-top: 15px !important; padding: 34.6px 0 25px; }
.hg-front-content > .hg-section:nth-of-type(3) .hg-section-title { margin-bottom: 31px; }
.hg-news { max-width: 1098px !important; }
.hg-news .wp-block-post-template { gap: 21px; }
.hg-news .wp-block-post { overflow: hidden; background: #fff; border: 1px solid #ddd; }
.hg-news .wp-block-post-featured-image { margin: 0; }
.hg-news .wp-block-post-featured-image img { width: 100%; height: 230px; object-fit: cover; }
.hg-news .wp-block-post-title,
.hg-news .wp-block-post-excerpt { padding-left: 15px; padding-right: 15px; }
.hg-news .wp-block-post-title { margin: 19px 0 15px; font-family: Roboto, sans-serif; font-size: 20px !important; line-height: 24px; font-weight: 300; }
.hg-news .wp-block-post-title a { color: #111; text-decoration: none; }
.hg-news .wp-block-post-excerpt { margin: 0; padding-bottom: 18px; font-family: Roboto, sans-serif; font-size: 18px; line-height: 26px; font-weight: 300; }
.hg-news .wp-block-post-excerpt__more-link { display: none; }
.hg-front-content > .hg-section:nth-of-type(4) { height: 505px; margin-top: -4px !important; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hg-front-content > .hg-section:nth-of-type(4) .hg-contact-card { display: none; }
.hg-front-content > .hg-section:nth-of-type(5) { height: 590px; margin-top: 15px !important; padding-top: 43px; }
.hg-front-content > .hg-section:nth-of-type(5) > p,
.hg-front-content > .hg-section:nth-of-type(5) > .wp-block-buttons { display: none; }
.hg-footer { min-height: 129px; border: 0; }
.hg-footer > .wp-block-columns { min-height: 129px; max-width: 1120px !important; margin: 0 auto; }
.hg-footer p { margin: 0; font-size: 16px; line-height: 1.9; }
.hg-footer .wp-block-column:first-child { flex-basis: 63.5%; }
.hg-footer .wp-block-column:last-child { flex-basis: 36.5%; }
.wp-site-blocks > footer.wp-block-template-part { margin-bottom: 20px !important; }
.home > .wp-site-blocks > footer.wp-block-template-part { margin-top: 20px !important; margin-bottom: 0 !important; }
.home .wp-site-blocks { padding-bottom: 20px; }
.hg-chat-bubble {
  position: fixed;
  right: 10px;
  bottom: 20px;
  z-index: 20;
  display: none;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: #4dcc6b;
}
.home .hg-chat-bubble { display: grid; }
.hg-chat-bubble svg { width: 36px; height: 36px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }

.hg-content { width: 950px; max-width: calc(100% - 40px); min-height: 0; margin: 45px auto 0 !important; padding: 0; }
.hg-content > * { max-width: 950px; margin-left: auto; margin-right: auto; }
.hg-content > .alignwide { max-width: 950px; }
.hg-content > .alignfull { max-width: none; }
.hg-content > .wp-block-post-title {
  position: relative;
  height: 77.4px;
  margin: 0 0 20px;
  font-size: 26px;
  line-height: 36.4px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}
.hg-content > .wp-block-post-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 130px;
  border-bottom: 1px solid #e3e3e3;
  transform: translateX(-50%);
}
.page-id-20 .hg-content { height: 116px; }
.page-id-22 .hg-content,
.page-id-24 .hg-content,
.page-id-26 .hg-content,
.page-id-316 .hg-content { height: 170.4px; }
.page-id-318 .hg-content { height: 570.4px; }
.page-id-20 .hg-content > .wp-block-post-title,
.page-id-28 .hg-content > .wp-block-post-title,
.page-id-30 .hg-content > .wp-block-post-title { display: none; }

.page-id-28 .hg-content { height: 601.1px; }
.hg-documents { gap: 34px; justify-content: flex-start; padding: 66px 0 0 25px; }
.hg-documents .wp-block-image { width: 205px; margin: 0; }
.hg-documents .wp-block-image img { display: block; width: 205px; height: auto; }
.hg-document-button .wp-block-button__link {
  min-width: 134px;
  padding: 14px 25px;
  border-radius: 2px;
  background: #178d43;
  color: #fff;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.1;
  text-decoration: none;
}

.page-id-30 .hg-content { height: 1151px; }
.page-id-30 .wp-block-post-content { margin: 0; }
.page-id-30 .wp-block-post-content > * { margin-block-start: 0 !important; }
.hg-contact-form-area,
.hg-map-area {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: none !important;
  margin-left: -50vw !important;
}
.hg-contact-form-area { height: 562px; display: flex; align-items: center; justify-content: center; }
.hg-map-area { height: 589px; padding: 50px 20px 0; background: var(--hg-soft); }
.hg-map-area .wp-block-html {
  width: calc(100vw - 40px);
  max-width: none !important;
  margin: 54.5px 0 0 calc(50% - 50vw + 20px) !important;
}
.hg-map-area iframe { display: block; width: 100%; height: 400px; margin: 0; border: 0; }

.page-id-20 .hg-nav li:nth-child(1) a,
.page-id-22 .hg-nav li:nth-child(2) a,
.page-id-24 .hg-nav li:nth-child(3) a,
.page-id-26 .hg-nav li:nth-child(4) a,
.page-id-28 .hg-nav li:nth-child(5) a,
.page-id-30 .hg-nav li:nth-child(6) a { color: var(--hg-green); }

@media (max-width: 900px) {
  .hg-header__inner { min-height: auto; padding-top: 20px; padding-bottom: 20px; }
  .hg-logo img { width: 220px; }
  .hg-nav { justify-content: center; }
  .hg-content { width: calc(100% - 32px); max-width: none; }
  .hg-footer .wp-block-column:first-child,
  .hg-footer .wp-block-column:last-child { flex-basis: 50%; }
}

@media (max-width: 620px) {
  .hg-header__inner { position: relative; min-height: 207px; height: 207px; align-items: flex-start !important; flex-wrap: nowrap !important; padding: 0; overflow: hidden; }
  .hg-logo { position: absolute; left: 80px; top: 10px; width: 300px; margin: 0; }
  .hg-logo img { width: 300px; height: 119px; max-width: none; }
  .hg-header .wp-block-navigation { position: absolute; left: 183px; top: 158px; z-index: 2; margin: 0; }
  .hg-nav { gap: 12px 18px; }
  .hg-nav a { padding: 0; font-size: 15px; }
  .hg-hero { height: 420px; margin-top: 10px !important; padding: 0; text-align: left; }
  .hg-hero .wp-block-columns { min-height: 420px; display: flex; flex-direction: column; gap: 0; }
  .hg-hero .wp-block-column:first-child { flex-basis: auto !important; padding-top: 25px; }
  .hg-hero .wp-block-column:last-child { flex: 0 0 auto; margin-top: 24px; padding: 0 10px; }
  .hg-hero__photo { text-align: center; }
  .hg-hero__photo img { transform: translateX(-3.4px); }
  .hg-hero p.has-large-font-size { margin-bottom: 20px; font-size: 22px !important; line-height: 22px; }
  .hg-front-content > .hg-section:nth-of-type(2) { height: 140px; margin-top: 35px !important; }
  .hg-front-content > .hg-section:nth-of-type(3) { height: 1518px; min-height: 1518px; }
  .hg-news { width: 350px; max-width: 350px !important; }
  .hg-news .wp-block-post-template { gap: 4px; }
  .hg-news .wp-block-post-featured-image img { width: 348px; }
  .hg-content { margin-top: 28px !important; }
  .hg-content > .wp-block-post-title { font-size: 23px; }
  .hg-documents { padding-left: 0; justify-content: center; }
  .hg-map-area { padding-left: 0; padding-right: 0; }
  .hg-map-area .wp-block-html { width: 100vw; margin-left: calc(50% - 50vw) !important; }
  .home > .wp-site-blocks > footer.wp-block-template-part { margin-top: 40px !important; }
  .hg-footer { min-height: 183px; }
  .hg-footer > .wp-block-columns { min-height: 183px; display: block; padding: 28px 6px 16px; }
  .hg-footer p { font-size: 13px; line-height: 1.8; }
  .hg-footer .wp-block-column:first-child,
  .hg-footer .wp-block-column:last-child { flex-basis: 100%; }
  .hg-chat-bubble { right: 10px; bottom: 20px; width: 45px; height: 45px; }
  .hg-chat-bubble svg { width: 28px; height: 28px; }
}

/* Final cascade overrides for restored content. */
.hg-front-content > .hg-section:nth-of-type(2) { height: auto; min-height: 430px; padding: 42px 20px 55px; }
.hg-front-content > .hg-section:nth-of-type(2) .hg-partners { display: grid; }
.hg-front-content > .hg-section:nth-of-type(2) .hg-partners > .wp-block-image { width: 100% !important; margin: 0 !important; }
.hg-front-content > .hg-section:nth-of-type(3) { height: auto; min-height: 594px; }
.hg-front-content > .hg-section:nth-of-type(4) { height: auto; min-height: 310px; margin-top: 0 !important; padding: 58px 20px; }
.hg-front-content > .hg-section:nth-of-type(4) .hg-contact-card { display: block; }
.hg-front-content > .hg-section:nth-of-type(5) { height: auto; min-height: 610px; padding: 43px 20px 40px; }
.hg-front-content > .hg-section:nth-of-type(5) > p { display: block; }
.hg-content { width: 1120px; max-width: calc(100% - 40px); min-height: 500px; margin: 45px auto 60px !important; }
.hg-content > *, .hg-content > .alignwide { max-width: 1120px; }
.hg-content > .wp-block-post-title,
.page-id-20 .hg-content > .wp-block-post-title,
.page-id-28 .hg-content > .wp-block-post-title,
.page-id-30 .hg-content > .wp-block-post-title { display: block; height: auto; min-height: 77px; }
.page-id-20 .hg-content, .page-id-22 .hg-content, .page-id-24 .hg-content,
.page-id-26 .hg-content, .page-id-28 .hg-content, .page-id-30 .hg-content,
.page-id-316 .hg-content, .page-id-318 .hg-content { height: auto; }
.page-id-30 .hg-map-area { height: auto; min-height: 540px; padding: 45px 20px 40px; }
.page-id-30 .hg-map-area .wp-block-html { width: 1120px; max-width: 100%; margin: 25px auto 0 !important; }
.hg-footer { min-height: 230px; padding: 42px 24px; }
.hg-footer > .wp-block-columns { min-height: 0; display: grid; grid-template-columns: 28% 24% 48%; gap: 32px; }
.hg-footer .wp-block-column:first-child { flex-basis: 31%; }
.hg-footer .wp-block-column:last-child { flex-basis: 38%; }

@media (max-width: 620px) {
  .hg-front-content > .hg-section:nth-of-type(2) { height: auto; min-height: 720px; padding: 36px 16px; }
  .hg-front-content > .hg-section:nth-of-type(3) { height: auto; min-height: 1518px; }
  .hg-front-content > .hg-section:nth-of-type(4) { height: auto; min-height: 330px; padding: 50px 16px; }
  .hg-front-content > .hg-section:nth-of-type(5) { height: auto; min-height: 610px; padding-left: 0; padding-right: 0; }
  .hg-content { width: calc(100% - 28px); max-width: none; min-height: 420px; margin: 28px auto 45px !important; }
  .hg-footer { min-height: 0; padding: 34px 20px; }
  .hg-footer > .wp-block-columns { min-height: 0; display: block; padding: 0; }
  .hg-event-card > .wp-block-post-featured-image { width: 100% !important; }
}

/* Final alignment overrides. */
html, body { overflow-x: hidden; }
body { font-family: Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.65; }
.hg-content { box-sizing: border-box; width: min(1120px, calc(100% - 48px)); max-width: none; margin-left: auto !important; margin-right: auto !important; }
.hg-content > .entry-content { width: 100%; max-width: 100%; }
.hg-content .hg-prose { width: 820px; max-width: 100% !important; margin-right: auto !important; margin-left: auto !important; color: #333; font-size: 17px; line-height: 1.75; }
.hg-content .hg-prose p { margin-top: 0; margin-bottom: 18px; }
.hg-content .hg-prose p.has-large-font-size { font-size: 20px !important; line-height: 1.65; font-weight: 400; }
.hg-content .hg-prose h2 { margin: 34px 0 14px; font-size: 25px; line-height: 1.3; font-weight: 400; }
.hg-content .hg-prose ul { margin: 0 0 24px; padding-left: 24px; }
.hg-content .hg-prose li { margin-bottom: 8px; }
.hg-content > .wp-block-post-title, .hg-page-title { width: 100%; text-align: center; }
.hg-event-card > .wp-block-post-featured-image { overflow: hidden; background: #f4f6f5; }
.hg-event-card > .wp-block-post-featured-image > a { display: block; width: 100%; height: 220px; }
.hg-event-card > .wp-block-post-featured-image img { display: block; width: 100% !important; height: 220px !important; object-fit: contain !important; object-position: center; }
.hg-footer > .wp-block-columns { align-items: flex-start; }
.hg-footer-brand .wp-block-image { width: 230px; max-width: 100%; margin: 0 0 18px; }
.hg-footer-brand .wp-block-image img { display: block; width: 230px; height: auto; }
.hg-footer-brand p { margin: 0; }

@media (max-width: 900px) {
  .hg-content { width: min(100% - 36px, 820px); }
  .hg-footer > .wp-block-columns { grid-template-columns: 32% 25% 43%; gap: 22px; }
}

@media (max-width: 620px) {
  .hg-content { width: calc(100% - 28px); }
  .hg-content .hg-prose { font-size: 16px; line-height: 1.65; }
  .hg-content .hg-prose p.has-large-font-size { font-size: 18px !important; }
  .hg-event-card > .wp-block-post-featured-image > a,
  .hg-event-card > .wp-block-post-featured-image img { height: 210px !important; }
  .hg-footer-brand .wp-block-image { width: 210px; }
}

/* Definitive tablet and phone layout. This block must remain last. */
@media (max-width: 900px) {
  .hg-hero { height: auto !important; min-height: 0 !important; margin-top: 0 !important; padding: 30px 24px 34px !important; }
  .hg-hero .wp-block-columns { display: flex !important; min-height: 0 !important; margin: 0 auto !important; flex-direction: column !important; align-items: center !important; gap: 22px !important; }
  .hg-hero .wp-block-column:first-child { flex: 0 0 auto !important; flex-basis: auto !important; padding: 0 !important; }
  .hg-hero .wp-block-column:last-child { flex: 0 0 auto !important; width: 100% !important; margin: 0 !important; padding: 0 !important; text-align: center; }
  .hg-news { width: 100% !important; max-width: 100% !important; }
  .hg-news .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  html, body, .wp-site-blocks { max-width: 100%; overflow-x: clip; }
  .hg-header__inner { position: relative; display: flex !important; min-height: 0 !important; height: auto !important; padding: 14px 18px 16px !important; flex-direction: column !important; align-items: center !important; gap: 10px !important; overflow: visible !important; }
  .hg-logo { position: static !important; width: min(270px, calc(100vw - 48px)) !important; margin: 0 auto !important; transform: none !important; }
  .hg-logo img { width: 100% !important; max-width: 100% !important; height: auto !important; }
  .hg-header .wp-block-navigation { position: static !important; width: auto !important; margin: 0 !important; transform: none !important; }
  .hg-hero { padding: 26px 16px 30px !important; }
  .hg-hero .wp-block-column:last-child { text-align: left; }
  .hg-hero__photo img { width: 180px !important; height: 180px !important; transform: none !important; }
  .hg-hero p.has-large-font-size { margin-bottom: 14px; font-size: 19px !important; line-height: 1.35; }

  .hg-front-content > .hg-section:nth-of-type(2),
  .hg-front-content > .hg-section:nth-of-type(3),
  .hg-front-content > .hg-section:nth-of-type(4),
  .hg-front-content > .hg-section:nth-of-type(5) { height: auto !important; min-height: 0 !important; }
  .hg-front-content > .hg-section:nth-of-type(2) { padding: 36px 16px 44px; }
  .hg-front-content > .hg-section:nth-of-type(3) { padding: 36px 14px; }
  .hg-front-content > .hg-section:nth-of-type(4) { padding: 44px 16px; }
  .hg-front-content > .hg-section:nth-of-type(5) { padding: 40px 0 0; }
  .hg-news .wp-block-post-template { grid-template-columns: minmax(0, 1fr) !important; gap: 14px; }
  .hg-news .wp-block-post-featured-image img { width: 100% !important; height: auto !important; aspect-ratio: 16 / 10; }

  .hg-content, .hg-single { width: calc(100% - 28px) !important; max-width: none !important; min-width: 0; }
  .hg-content > .wp-block-post-title, .hg-page-title { min-height: 0; margin-bottom: 28px; font-size: 23px !important; line-height: 1.3; }
  .hg-event-card { display: flex !important; width: 100% !important; max-width: 100% !important; min-width: 0; padding: 12px; flex-direction: column !important; flex-wrap: nowrap !important; gap: 16px; }
  .hg-event-card > .wp-block-post-featured-image { flex: 0 0 auto !important; flex-basis: auto !important; width: 100% !important; max-width: 100% !important; margin: 0 !important; }
  .hg-event-card > .wp-block-post-featured-image > a,
  .hg-event-card > .wp-block-post-featured-image img { width: 100% !important; height: auto !important; aspect-ratio: 16 / 10; }
  .hg-event-card > .wp-block-group { width: 100% !important; max-width: 100% !important; min-width: 0; margin: 0 !important; }
  .hg-event-card h2 { margin: 0 0 10px; overflow-wrap: anywhere; }

  .hg-article { width: 100% !important; max-width: 100% !important; min-width: 0; }
  .hg-article-title { font-size: 27px !important; line-height: 1.25 !important; }
  .hg-article-content { width: 100% !important; max-width: 100% !important; min-width: 0; grid-template-columns: minmax(0, 1fr) !important; gap: 12px; }
  .hg-article-content > p, .hg-article-content > h2, .hg-article-content > h3,
  .hg-article-content > ul, .hg-article-content > ol, .hg-article-content > blockquote,
  .hg-article-content > figure { grid-column: 1 !important; width: 100% !important; max-width: 100% !important; min-width: 0; margin-right: 0 !important; margin-left: 0 !important; }
  .hg-article-content > .hg-article-gallery,
  .hg-article-gallery.columns-1, .hg-article-gallery.columns-2, .hg-article-gallery.columns-3 { width: 100% !important; max-width: 100% !important; min-width: 0; grid-template-columns: minmax(0, 1fr) !important; }
  .hg-article-gallery > .wp-block-image,
  .hg-article-gallery > .wp-block-image a,
  .hg-article-gallery > .wp-block-image img { width: 100% !important; max-width: 100% !important; min-width: 0; }
  .hg-article-gallery > .wp-block-image img { height: auto !important; aspect-ratio: 4 / 3; }

  .hg-content .hg-media-gallery { grid-template-columns: minmax(0, 1fr) !important; }
  .hg-documents-page, .hg-documents-page .wp-block-file { width: 100%; max-width: 100% !important; }
  .hg-documents-page .wp-block-file { overflow-wrap: anywhere; }
  .page-id-30 .hg-map-area { position: static !important; left: auto !important; width: 100% !important; max-width: 100% !important; min-height: 0 !important; margin-left: 0 !important; padding: 38px 0 0 !important; }
  .page-id-30 .hg-map-area .wp-block-html { width: 100% !important; max-width: 100% !important; margin: 22px 0 0 !important; }
  .hg-map-area iframe, .hg-home-map iframe { height: 330px; }
  .hg-footer { min-height: 0; padding: 34px 20px; }
  .hg-footer > .wp-block-columns { display: block !important; min-height: 0; width: 100%; padding: 0; }
  .hg-footer .wp-block-column { width: 100%; max-width: 100%; margin-bottom: 28px; }
}
