:root {
  --accent: #89a452;
  --accent-dark: #58702f;
  --accent-action: #58702f;
  --text: #555;
  --heading: #333;
  --muted: #777;
  --line: #e5e5e5;
  --surface: #fff;
  --footer: #2f3329;
  --max: 1170px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: none;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--accent);
  text-decoration: underline;
}

:where(a, button, input):focus-visible {
  outline: 3px solid #1f5f99;
  outline-offset: 3px;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.assistive-text,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  border-top: 4px solid var(--accent);
  background: var(--surface);
}

.hgroup-wrap {
  border-bottom: 1px solid var(--line);
}

.hgroup-wrap .container {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

#site-logo {
  flex: 0 0 auto;
}

#site-title {
  margin: 0;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.1;
}

#site-title a {
  color: var(--heading);
  text-decoration: none;
}

#site-title a:hover {
  color: var(--accent-dark);
}

.hgroup-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation a {
  display: block;
  padding: 34px 13px 33px;
  color: #444;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0;
  text-decoration: none;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: #fff;
  background: var(--accent-action);
}

.menu-toggle,
.search-toggle,
.search-submit {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.menu-toggle {
  display: none;
  color: #fff;
  background: var(--accent-action);
  padding: 10px 14px;
}

.search-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  background: var(--accent-action);
  color: #fff;
}

.search-toggle::before {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  top: 10px;
  left: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.search-toggle::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 2px;
  top: 25px;
  left: 23px;
  background: #fff;
  transform: rotate(45deg);
  transform-origin: left center;
}

#search-box {
  position: absolute;
  z-index: 20;
  top: 77px;
  right: max(20px, calc((100vw - var(--max)) / 2));
  width: min(340px, calc(100vw - 40px));
  padding: 16px;
  background: #fff;
  border-top: 3px solid var(--accent);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
}

#search-box.hide {
  display: none;
}

.search-form {
  display: flex;
  gap: 8px;
}

.field {
  flex: 1;
  min-width: 0;
  border: 1px solid #ccc;
  padding: 9px 10px;
  color: var(--heading);
  min-height: 44px;
}

.search-submit {
  padding: 9px 12px;
  color: #fff;
  background: var(--accent-action);
}

.search-results {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.search-results a {
  display: block;
  min-height: 44px;
  padding: 9px 0;
  color: var(--heading);
}

.search-results p {
  margin: 0;
}

.search-result-links {
  margin-top: 6px;
}

.page-title-wrap {
  background: #f6f6f6;
  border-bottom: 1px solid var(--line);
}

.page-title {
  margin: 0;
  padding: 27px 0;
  color: var(--heading);
  font-size: 30px;
  font-weight: 400;
}

#content {
  padding: 42px 0 56px;
}

#primary {
  width: 100%;
}

#main {
  min-height: 320px;
}

.entry-header {
  margin-bottom: 22px;
}

.entry-title {
  margin: 0;
  color: var(--heading);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.25;
}

.entry-content p {
  margin: 0 0 22px;
}

.entry-content,
.entry-content p,
.entry-content blockquote {
  overflow-wrap: anywhere;
}

.entry-content br {
  line-height: 1.8;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 22px 24px;
}

.hero-media {
  margin: 0 0 38px;
}

.hero-media img {
  width: 100%;
  border: 0;
}

.entry-content iframe {
  display: block;
  width: 100%;
  max-width: 760px;
  min-height: 420px;
  margin: 18px 0 28px;
  border: 0;
}

.entry-content iframe[src*="jotform"] {
  min-height: 1000px;
}

.external-embed {
  margin: 28px 0;
}

.embed-status,
.embed-fallback {
  margin: 8px 0;
}

.embed-load {
  min-height: 44px;
  border: 0;
  padding: 10px 16px;
  color: #fff;
  background: var(--accent-action);
  cursor: pointer;
  font: inherit;
}

.embed-frame:empty {
  display: none;
}

.site-footer {
  margin-top: 20px;
  color: #cfd6c3;
  background: var(--footer);
}

.site-info {
  padding: 22px 0;
}

.copyright {
  font-size: 14px;
}

.copyright a {
  color: #fff;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 22px;
  display: none;
  z-index: 30;
}

.back-to-top.is-visible {
  display: block;
}

.back-to-top a {
  display: block;
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--accent-action);
  text-decoration: none;
}

.back-to-top a::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 13px;
  width: 14px;
  height: 14px;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
  transform: rotate(45deg);
}

@media (max-width: 820px) {
  .hgroup-wrap .container {
    min-height: 76px;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
  }

  #site-title {
    font-size: 32px;
  }

  .menu-toggle {
    display: block;
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 0;
    margin-left: auto;
  }

  .menu-toggle::before {
    content: "";
    position: absolute;
    top: 13px;
    left: 11px;
    width: 20px;
    height: 2px;
    background: #fff;
    box-shadow: 0 7px 0 #fff, 0 14px 0 #fff;
  }

  .hgroup-right {
    order: 3;
    flex-basis: 100%;
    display: block;
  }

  .main-navigation {
    display: none;
    border-top: 1px solid var(--line);
    margin-top: 12px;
  }

  .main-navigation.toggled-on {
    display: block;
  }

  .main-navigation ul {
    display: block;
  }

  .main-navigation a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .main-navigation a:hover,
  .main-navigation .current-menu-item a {
    padding-left: 12px;
  }

  .search-toggle {
    position: absolute;
    top: 20px;
    right: 74px;
  }

  #search-box {
    top: 74px;
    right: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  #site-title {
    font-size: 28px;
  }

  .page-title,
  .entry-title {
    font-size: 25px;
  }

  #content {
    padding: 30px 0 42px;
  }

  .search-form {
    display: block;
  }

  .field,
  .search-submit {
    width: 100%;
  }

  .search-submit {
    margin-top: 8px;
  }
}
