#footer {
  --cd-focus: #f3cc79;
}

#header,
#offcanvas,
#search-modal {
  --cd-focus: #98600f;
}

html {
  scroll-padding-top: var(--cd-header-offset, 98px);
}

.ct-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  color: #5a645f;
  font: 400 14px/1.5 "Public Sans", sans-serif;
  letter-spacing: normal;
  text-transform: none;
}

.ct-breadcrumbs > span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.ct-breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #163829;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ct-breadcrumbs .ct-separator {
  flex: 0 0 6px;
  width: 6px;
  height: 8px;
  margin-inline: 10px;
  color: #5a645f;
}

.ct-breadcrumbs .last-item {
  flex-basis: 100%;
  padding-block: 2px 4px;
  font-size: 13px;
}

.ct-breadcrumbs a:focus-visible {
  outline: 3px solid #98600f;
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 599.98px) {
  .ct-breadcrumbs {
    font-size: 13px;
  }

  .ct-breadcrumbs .ct-separator {
    margin-inline: 8px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .ct-breadcrumbs a:hover {
    color: #181f1c;
    text-decoration-thickness: 2px;
  }
}

#header {
  position: sticky;
  top: calc(var(--cd-admin-offset, 0px) + var(--theme-frame-size, 0px) - var(--cd-header-utility-height, 52px));
  z-index: 100;
  width: calc(100% - 16px);
  margin: 0 auto 8px;
}

#header [data-row="middle"] {
  border-radius: 8px;
  background: #faf8f5;
  box-shadow: 0 3px 16px rgb(22 56 41 / 12%);
  transform: translateY(8px);
}

#header [data-row="top"] {
  border-start-start-radius: 8px;
  border-start-end-radius: 8px;
}

#header.cd-header-docked [data-row="middle"] {
  transform: translateY(0);
}

#header.cd-header-ready:not(.cd-header-keyboard) [data-row="middle"] {
  /* easeOutBack: a small overshoot when the floating header docks. */
  transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

#header [data-row="top"],
#offcanvas,
#search-modal {
  contain: paint;
}

#header :is(a, button),
#offcanvas :is(a, button),
#search-modal :is(a, button) {
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
}

:where(#header, #offcanvas, #search-modal) :is(a, button, input):focus-visible {
  outline: 3px solid var(--cd-focus);
  outline-offset: 3px;
}

#header .site-title-container,
#header [data-column],
#offcanvas .ct-panel-content-inner,
#offcanvas .ct-menu-link {
  min-width: 0;
}

#header .site-logo-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#header .site-logo-container img,
#offcanvas [data-id="offcanvas-logo"] img {
  border-radius: 6px;
}

#header .site-title a {
  display: inline-flex;
  align-items: center;
}

@media (min-width: 1000px) {
  #header .site-title a {
    min-height: 0;
    position: relative;
    z-index: 1;
  }

  /* Expand the home-link target without inserting space into the text lockup. */
  #header .site-title a::after {
    content: "";
    position: absolute;
    inset: -11px 0;
  }

  #header .site-description {
    margin-top: 2px;
  }
}

#footer .ct-social-box,
#offcanvas .ct-social-box {
  flex-wrap: wrap;
}

#offcanvas .ct-menu-link {
  overflow-wrap: anywhere;
}

#offcanvas .ct-toggle-dropdown-mobile {
  flex: 0 0 48px;
  min-width: 48px;
  min-height: 48px;
}

#offcanvas .ct-panel-content {
  overscroll-behavior: contain;
}

#search-modal input[type="search"] {
  font-size: 18px;
}

#search-modal button[type="submit"] {
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  #header [data-row="middle"],
  #header.cd-header-ready:not(.cd-header-keyboard) [data-row="middle"] {
    transform: none;
    transition: none;
  }

  #offcanvas[data-behaviour] .ct-panel-inner,
  #search-modal .ct-panel-content {
    transform: none;
    transition: opacity 150ms ease;
  }
}

@media (max-width: 689.98px) {
  #header .site-branding {
    margin-inline-end: 0;
  }

  #header .site-title-container {
    margin-inline-start: 8px;
  }

}

#footer .cd-footer-brand {
  gap: 12px;
  padding: 0;
  margin-bottom: 20px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

#footer .cd-footer-logo {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
}

#footer [data-column],
#footer .ct-widget,
#footer a {
  min-width: 0;
  overflow-wrap: anywhere;
}

#footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  max-width: 100%;
  padding-block: 6px;
  touch-action: manipulation;
  text-underline-offset: 0.2em;
}

#footer a:focus-visible {
  outline: 3px solid var(--cd-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

#footer a:active {
  text-decoration: underline;
}

@media (hover: hover) and (pointer: fine) {
  #footer a:hover {
    text-decoration: underline;
  }
}
