/* Canonical site footer (data-km-footer="v1").
 * Self-contained port of the homepage footer CSS in public/index.html
 * (.dr-footer-wrap ... @media (max-width: 720px)). Every design-token
 * custom property is resolved to its concrete value and the inherited
 * html/body font, color and line-height are set on the root, so the
 * footer renders identically regardless of the host page's CSS.
 *
 * Token resolutions (public/css/design-tokens.css):
 *   --wide-width 1080px, --space-1 4px, --space-3 16px, --space-4 24px,
 *   --space-5 32px, --space-6 48px, --space-7 64px,
 *   --dr-yellow #ffd84d, --ink-1 #0a0a0a,
 *   --font-sans 'Inter Variable', 'Inter', -apple-system,
 *               BlinkMacSystemFont, 'Segoe UI', sans-serif
 */

/* Reset: neutralise any page reset / prose styles inside the footer. */
[data-km-footer="v1"],
[data-km-footer="v1"] *,
[data-km-footer="v1"] *::before,
[data-km-footer="v1"] *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 none currentColor;
}

/* .dr-footer-wrap + inherited html/body typography */
[data-km-footer="v1"].km-footer {
  display: block;
  position: static;
  width: 100%;
  max-width: 1080px;
  margin: 64px auto 48px;
  padding: 0 32px;
  border: 0;
  background: transparent;
  font-family: 'Inter Variable', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.55;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
  color: #0a0a0a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* .dr-footer */
[data-km-footer="v1"] .km-footer__panel {
  display: block;
  background: #ffd84d;
  color: #0a0a0a;
  padding: 48px 48px;
  position: relative;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
}

/* .dr-footer::before (dashed inner border) */
[data-km-footer="v1"] .km-footer__panel::before {
  content: '';
  display: block;
  position: absolute;
  inset: 10px;
  border: 2px dashed #0a0a0a;
  border-radius: 8px;
  background: transparent;
  pointer-events: none;
}

[data-km-footer="v1"] .km-footer__panel::after {
  content: none;
}

/* .dr-footer-inner */
[data-km-footer="v1"] .km-footer__inner {
  display: block;
  position: relative;
  padding: 16px 24px;
}

/* .dr-footer-side */
[data-km-footer="v1"] .km-footer__side {
  display: block;
}

/* .dr-footer-side h3 */
[data-km-footer="v1"] .km-footer__title {
  display: block;
  font-family: 'Inter Variable', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: 800;
  font-style: normal;
  line-height: 1.55;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #0a0a0a;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
}

/* .dr-footer-side ul */
[data-km-footer="v1"] .km-footer__links {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 32px;
}

/* .dr-footer-side li */
[data-km-footer="v1"] .km-footer__item {
  display: list-item;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
}

[data-km-footer="v1"] .km-footer__item::before,
[data-km-footer="v1"] .km-footer__item::marker {
  content: none;
}

/* .dr-footer-side a */
[data-km-footer="v1"] .km-footer__link,
[data-km-footer="v1"] .km-footer__legal-link {
  display: inline;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  background: transparent;
  border: 0;
  margin: 0;
  padding: 0;
  color: #0a0a0a;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(10, 10, 10, 0.45);
  text-underline-offset: 3px;
}

/* .dr-footer-side a:hover */
[data-km-footer="v1"] .km-footer__link:hover,
[data-km-footer="v1"] .km-footer__legal-link:hover {
  color: #0a0a0a;
  text-decoration-color: #0a0a0a;
}

/* .dr-footer-legal */
[data-km-footer="v1"] .km-footer__legal {
  display: block;
  margin: 16px 0 0;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px dashed rgba(10, 10, 10, 0.4);
  font-size: 12px;
  line-height: 1.8;
  font-weight: 500;
}

/* .dr-footer-legal a: on the homepage the later `text-decoration:
 * underline` shorthand resets the color to currentColor, then sets a
 * 1px thickness; the 3px offset still cascades from .dr-footer-side a. */
[data-km-footer="v1"] .km-footer__legal-link {
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
}

/* .dr-footer-legal .sep */
[data-km-footer="v1"] .km-footer__sep {
  display: inline;
  margin: 0 6px;
  padding: 0;
}

[data-km-footer="v1"] .km-footer__year {
  display: inline;
}

@media (max-width: 720px) {
  [data-km-footer="v1"] .km-footer__panel {
    padding: 32px 24px;
  }
}
