/* Shared site footer. Matches the homepage footer.
   Used on every page except the homepage, which has the same look in its own styles.
   Selectors start with footer.jd-footer so page-level "footer { ... }" rules can't override them.
   Neutral dark, so it fits both the green (personal) and yellow (course) themes.
   Width matches the page container (docs/design-system.md): 1120px by default.
   Keep it 1120px on reading pages too: at 760px the links no longer fit beside the tagline and drop to a second row. */
footer.jd-footer {
  display: block;
  margin: 0;
  padding: 32px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #101318;
  color: rgba(255, 255, 255, 0.58);
  font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-align: left;
}
footer.jd-footer .jd-footer-inner {
  box-sizing: border-box;
  width: min(var(--jd-footer-max, 1120px), calc(100% - 48px));
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
}
footer.jd-footer .jd-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
  font-weight: 700;
}
footer.jd-footer a {
  display: inline-block;
  box-sizing: border-box;
  padding: 4px 0;
  min-height: 24px;
  color: inherit;
  text-decoration: none;
}
footer.jd-footer a:hover {
  color: #fff;
}
footer.jd-footer a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
@media (max-width: 600px) {
  footer.jd-footer a {
    padding: 12px 0;
    min-height: 44px;
    min-width: 44px;
  }
  footer.jd-footer .jd-footer-links {
    gap: 0 24px;
  }
}
@media (max-width: 560px) {
  footer.jd-footer .jd-footer-inner {
    width: min(100% - 32px, var(--jd-footer-max, 1120px));
  }
}

/* Shared arrow icon (used instead of text arrows). Color follows the text. */
.i-arr{display:inline-block;width:1em;height:1em;flex:none;vertical-align:-.14em;background-color:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat}.i-arr.i-l{transform:scaleX(-1)}.i-arr.i-d{transform:rotate(90deg)}

/* Page transition between pages of this site (Chrome, Edge, Safari; other browsers just load normally).
   Old page fades out, new page fades in and rises slightly. Off for people who turn off animations. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: jd-page-out .16s ease-in both; }
::view-transition-new(root) { animation: jd-page-in .28s ease-out both; }
@keyframes jd-page-out { to { opacity: 0; } }
@keyframes jd-page-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
