:root {
  --global-palette1: #002868;
  --global-palette2: #bf0a30;
}

.fence-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.25rem 0;
}

.fence-actions a,
.fence-mobile-nav a {
  align-items: center;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  line-height: 1.2;
  min-height: 44px;
  text-align: center;
  text-decoration: none;
}

.fence-actions a {
  background: #002868;
  border: 2px solid #002868;
  border-radius: .25rem;
  color: #fff;
  padding: .7rem 1rem;
}

.fence-actions a:first-child {
  background: #bf0a30;
  border-color: #bf0a30;
}

.fence-actions a:hover,
.fence-mobile-nav a:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.fence-actions a:focus-visible,
.fence-mobile-nav a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -5px;
}

.fence-project-note {
  background: #f2f5fb;
  border-inline-start: .3rem solid #bf0a30;
  color: #002868;
  margin: 1.5rem 0;
  padding: clamp(1rem, 3vw, 1.75rem);
}

.fence-project-note > :first-child { margin-top: 0; }
.fence-project-note > :last-child { margin-bottom: 0; }
.fence-project-note a:not(.fence-actions a) { text-decoration: underline; }

.entry-content .fence-hero-intro {
  color: #fff;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  max-width: 42ch;
}

.home .kb-row-layout-id380_6fbeff-7f {
  background: linear-gradient(90deg, #051a3cf5 0%, #051a3cdd 46%, #051a3c70 100%),
    center 56% / cover no-repeat url('/wp-content/uploads/2022/01/img_1105.jpg');
}

.home .kb-row-layout-id380_6fbeff-7f > .kt-row-layout-overlay { display: none; }

.entry-content .fence-hero-links a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.entry-content .fence-hero-links a + a { margin-inline-start: 1rem; }

body.page-id-905 .entry-hero.page-hero-section .entry-hero-container-inner {
  background-image: url('/wp-content/uploads/2026/01/commercial-chain-link-3.jpg');
  background-position: center 56%;
}

.fence-mobile-nav { display: none; }

@media (max-width: 1199px) {
  .fence-mobile-nav {
    background: #002868;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1.2fr .65fr;
    inset-inline: 0;
    padding: .25rem .5rem calc(.25rem + env(safe-area-inset-bottom, 0px));
    position: fixed;
    z-index: 90;
  }

  .fence-mobile-nav a { color: #fff; font-size: clamp(.75rem, 2.6vw, .95rem); }
  .fence-mobile-nav a:first-child { background: #bf0a30; border-radius: .25rem; }
  body:has(.fence-mobile-nav) { padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px)); }
}
