:root {
  --bdl-green: #78a441;
  --bdl-green-dark: #547b24;
  --bdl-brown: #7f5305;
  --bdl-text: #252820;
  --bdl-muted: #6c7067;
  --bdl-line: #d9dbd4;
  --bdl-surface: #fff;
  --bdl-bg: #99fe00;
  --bdl-width: 61.875rem;
  font-family: "Lucida Grande", "Lucida Sans Unicode", "Segoe UI", Arial, sans-serif;
  color: var(--bdl-text);
  background: var(--bdl-bg);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  color: var(--bdl-text);
  background: var(--bdl-bg);
  font-size: .875rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }
a { color: var(--bdl-brown); text-underline-offset: .16em; }
a:hover, a:focus-visible { color: var(--bdl-green-dark); }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: .5rem;
  left: .5rem;
  padding: .7rem 1rem;
  color: #fff;
  background: #111;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.page-shell {
  width: min(calc(100% - 2rem), var(--bdl-width));
  margin: 1.25rem auto 2.5rem;
  overflow: hidden;
  background: var(--bdl-surface);
  border: 1px solid rgba(90, 94, 82, .2);
  border-radius: .35rem;
  box-shadow: 0 1rem 3rem rgba(36, 46, 26, .14);
}

.site-header { background: #f3f1e8; }
.brand { display: block; line-height: 0; }
.brand img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 6.25rem;
  object-fit: cover;
  object-position: left center;
}

.navigation-bar {
  min-height: 2.75rem;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #c9cbc7;
  background: linear-gradient(#ededed, #dedede);
}

.site-navigation > .moduletable,
.site-navigation > .moduletable > ul,
.site-navigation > ul { margin: 0; }

.site-navigation ul,
.footer-menu ul,
.sidebar ul {
  padding: 0;
  list-style: none;
}

.site-navigation > .moduletable > ul,
.site-navigation > ul,
.site-navigation .mod-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  min-height: 2.75rem;
}

.site-navigation li { position: relative; margin: 0; }
.site-navigation > .moduletable > ul > li + li,
.site-navigation > ul > li + li,
.site-navigation .mod-menu > li + li { border-left: 1px solid #c8c8c8; }

.site-navigation a,
.site-navigation .nav-header {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 2.75rem;
  padding: .1rem 1.05rem;
  color: #353535;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-shadow: 0 1px #fff;
}

.site-navigation a:hover,
.site-navigation a:focus-visible,
.site-navigation .current > a,
.site-navigation .active > a {
  color: #fff;
  background: linear-gradient(#8eb950, var(--bdl-green));
  text-shadow: 0 1px rgba(0, 0, 0, .28);
}

.site-navigation li > ul {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  display: none;
  min-width: 14rem;
  margin: 0;
  padding: .3rem;
  background: #ececec;
  border: 1px solid #c7c7c7;
  box-shadow: 0 .8rem 1.5rem rgba(0, 0, 0, .18);
}
.site-navigation li:hover > ul,
.site-navigation li:focus-within > ul { display: block; }
.site-navigation li > ul a { min-height: 2.4rem; height: auto; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .3rem;
  margin: .35rem .65rem;
  padding: .5rem .75rem;
  color: #333;
  background: #fff;
  border: 1px solid #bbb;
  border-radius: .25rem;
  font-weight: 700;
}
.nav-toggle > span:not(:last-child) {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
}
.nav-toggle > span:last-child { margin-left: .25rem; }

.visual { overflow: hidden; background: #39452d; }
.visual img,
.visual .custom img {
  display: block;
  width: 100%;
  aspect-ratio: 988 / 250;
  object-fit: cover;
}
.visual p { margin: 0; }

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.35rem;
  padding: 1.25rem 1.35rem 1.75rem;
}
.content-layout.layout--two:has(.sidebar--left) { grid-template-columns: 13.75rem minmax(0, 1fr); }
.content-layout.layout--two:has(.sidebar--right) { grid-template-columns: minmax(0, 1fr) 13.75rem; }
.content-layout.layout--three { grid-template-columns: 12.5rem minmax(0, 1fr) 12.5rem; }
.main-content { min-width: 0; }

.main-top, .main-bottom { padding: 1rem 1.35rem 0; }

.sidebar .moduletable,
.sidebar .mod-custom {
  margin: 0 0 1.25rem;
  border: 1px solid #d5d8cf;
  border-radius: .25rem;
  background: #fbfcf8;
  box-shadow: 0 .35rem 1rem rgba(57, 69, 45, .06);
}

.sidebar .moduletable > h3,
.sidebar .moduletable > h2,
.sidebar .moduletable > .moduletable-heading,
.sidebar .mod-custom > h3 {
  margin: 0;
  padding: .65rem .75rem;
  color: #fff;
  background: linear-gradient(#8db651, var(--bdl-green));
  font-size: .95rem;
  line-height: 1.2;
  text-shadow: 0 1px rgba(0, 0, 0, .24);
}

.sidebar .moduletable > ul,
.sidebar .moduletable > .mod-menu { margin: 0; padding: .25rem .65rem .7rem; }
.sidebar li { border-bottom: 1px solid #e0e2dc; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a,
.sidebar .nav-header {
  display: block;
  padding: .62rem .15rem .62rem 1rem;
  color: #3d4038;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  background: linear-gradient(90deg, var(--bdl-green) 0 5px, transparent 5px) left center / 5px .65rem no-repeat;
}
.sidebar a:hover,
.sidebar a:focus-visible,
.sidebar .current > a,
.sidebar .active > a { color: var(--bdl-brown); }
.sidebar li ul { padding-left: .75rem; }

.breadcrumbs {
  margin: 0 0 1rem;
  padding: .55rem .75rem;
  color: var(--bdl-muted);
  background: #f3f4f0;
  border-left: .25rem solid var(--bdl-green);
  font-size: .78rem;
}
.breadcrumbs ol,
.breadcrumbs ul { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }

.main-content h1,
.main-content h2,
.main-content h3 {
  color: var(--bdl-green-dark);
  line-height: 1.25;
}
.main-content h1 { font-size: clamp(1.65rem, 4vw, 2.3rem); }
.main-content h2 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
.main-content h3 { font-size: 1.1rem; }
.main-content p { margin: 0 0 1rem; }
.main-content table { width: 100%; border-collapse: collapse; }
.main-content th, .main-content td { padding: .6rem; border: 1px solid var(--bdl-line); text-align: left; }

.blog-items,
.blog-featured .items-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.blog-featured .items-leading,
.blog-featured .items-leading > div { margin-bottom: 1.25rem; }
.blog-items > *,
.blog-featured .items-row > * {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--bdl-line);
  border-top: .3rem solid var(--bdl-green);
  background: #fff;
  box-shadow: 0 .35rem 1rem rgba(57, 69, 45, .06);
}

.readmore .btn,
.button,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: .45rem .9rem;
  color: #fff;
  background: linear-gradient(#966b20, var(--bdl-brown));
  border: 0;
  border-radius: .25rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 1px rgba(255, 255, 255, .22);
}
.readmore .btn:hover, .button:hover, .btn-primary:hover { color: #fff; filter: brightness(1.08); }

.site-footer {
  padding: 1.25rem;
  color: #3f423a;
  background: linear-gradient(#f0f0ec, #e1e2dc);
  border-top: 1px solid #cfd1cb;
  text-align: center;
}
.footer-menu ul,
.footer-menu .mod-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.25rem; margin: 0 0 .55rem; }
.footer-menu a { font-weight: 700; text-decoration: none; }
.footer-content p, .copyright { margin: .35rem 0; }
.copyright { color: #686c63; font-size: .78rem; }

.design-credit {
  margin: -1.75rem auto 1rem;
  color: #294900;
  font-size: .72rem;
  text-align: center;
}
.design-credit a {
  color: inherit;
  font-weight: 700;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  color: #fff;
  background: var(--bdl-green-dark);
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 .4rem 1rem rgba(0, 0, 0, .18);
}

.component-only { background: #fff; }
.component-content { width: min(100% - 2rem, 70rem); margin: 2rem auto; }
.error-page { display: grid; place-items: center; padding: 1rem; }
.error-card { max-width: 38rem; padding: 2rem; background: #fff; border-top: .4rem solid var(--bdl-green); box-shadow: 0 1rem 3rem rgba(0, 0, 0, .12); text-align: center; }
.error-code { margin: 0; color: var(--bdl-green-dark); font-size: clamp(3rem, 12vw, 7rem); font-weight: 800; line-height: 1; }

@media (max-width: 62rem) {
  .page-shell { width: min(calc(100% - 1rem), var(--bdl-width)); margin-top: .5rem; }
}

@media (max-width: 48rem) {
  body.navigation-open { overflow: hidden; }
  .brand img { min-height: 4.75rem; object-fit: cover; object-position: left center; }
  .nav-toggle { display: flex; }
  .site-navigation { display: none; border-top: 1px solid #c8c8c8; }
  .site-navigation--open { display: block; }
  .site-navigation > .moduletable > ul,
  .site-navigation > ul,
  .site-navigation .mod-menu { display: block; }
  .site-navigation > .moduletable > ul > li + li,
  .site-navigation > ul > li + li,
  .site-navigation .mod-menu > li + li { border-top: 1px solid #ccc; border-left: 0; }
  .site-navigation a, .site-navigation .nav-header { min-height: 2.9rem; padding-inline: 1rem; }
  .site-navigation li > ul { position: static; display: block; min-width: 0; padding: 0 0 .25rem 1rem; border: 0; box-shadow: none; }
  .visual img, .visual .custom img { min-height: 10rem; aspect-ratio: 16 / 6; object-position: center; }
  .content-layout,
  .content-layout.layout--two:has(.sidebar--left),
  .content-layout.layout--two:has(.sidebar--right),
  .content-layout.layout--three { grid-template-columns: minmax(0, 1fr); padding: 1rem; }
  .sidebar--left { order: 2; }
  .main-content { order: 1; }
  .sidebar--right { order: 3; }
  .blog-items, .blog-featured .items-row { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  body { background: #fff; }
  .page-shell { width: 100%; margin: 0; border: 0; box-shadow: none; }
  .navigation-bar, .sidebar, .site-footer, .design-credit, .back-to-top { display: none !important; }
  .content-layout { display: block; padding: 0; }
}
