/**
 * Historical K2 footer — continuous white canvas, centered muted links
 * Root cause of gap: #content closed with bottom radius; #footer is sibling after #main.
 * Fix: open content bottom edge; attach footer as same-width canvas continuation.
 */

/* Kill gap between main content canvas and footer */
#main {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

#content.blog-wrapper,
#content.page-wrapper,
.blog-wrapper.page-wrapper,
body.blog #content,
body.archive #content,
body.single-post #content,
body.search #content,
body.page #content {
  margin-bottom: 0 !important;
  border-bottom: none !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

/* Footer continues the historical #page canvas */
#footer.footer-wrapper {
  max-width: var(--d2u-canvas-width);
  width: 100%;
  margin: 0 auto 24px;
  padding: 0;
  background: var(--d2u-bg-canvas) !important;
  color: var(--d2u-text-muted) !important;
  border: 1px solid var(--d2u-border);
  border-top: 1px solid var(--d2u-border-soft);
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  box-shadow: none !important;
  clear: both;
  overflow: hidden;
}

#footer .footer-1,
#footer .footer-2 {
  background: transparent !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.absolute-footer {
  background: var(--d2u-bg-canvas) !important;
  color: var(--d2u-text-muted) !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 18px 12px 28px !important;
  text-align: center !important;
}

.absolute-footer .container {
  max-width: 100% !important;
  width: 100% !important;
  float: none !important;
  text-align: center;
  padding-left: 12px !important;
  padding-right: 12px !important;
  background: transparent !important;
}

.absolute-footer .footer-primary,
.absolute-footer .footer-secondary,
.absolute-footer .pull-left,
.absolute-footer .pull-right {
  float: none !important;
  display: block;
  width: 100%;
  text-align: center;
  margin: 0;
}

.absolute-footer .footer-nav,
.absolute-footer .links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.absolute-footer .footer-nav li {
  margin: 0;
}

.absolute-footer a,
#footer a {
  color: var(--d2u-text-muted) !important;
  text-decoration: none;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.9rem;
}

.absolute-footer a:hover,
#footer a:hover {
  color: #333 !important;
  text-decoration: underline;
}

.absolute-footer .copyright-footer {
  color: var(--d2u-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  float: none !important;
  display: block;
  text-align: center;
}

.d2u-footer-line {
  text-align: center;
  color: var(--d2u-text-muted);
  font-size: 0.85rem;
  padding: 0 12px 8px;
  margin: 0;
}
