/* Work-only finishing details; uses each page's existing palette and typography. */
.site-footer.work-site-footer {
  width: min(calc(100% - 48px), 1120px);
  min-height: 74px;
  margin-inline: auto;
  padding: 15px 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 13px;
}

.work-site-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.work-site-footer a:hover {
  color: var(--text);
}

.work-more-indicator::before {
  content: "+";
}

.work-more[open] > summary .work-more-indicator::before {
  content: "−";
}

@media (max-width: 760px) {
  .site-footer.work-site-footer {
    width: calc(100% - 32px);
    flex-wrap: wrap;
  }
}

/* Theme button: the same 0.4s dim as the pages on /styles.css (these Work pages carry their
   own palette and don't load it). */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.4s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Into light, the same dim feels like a jump: a brightening reads faster than a darkening.
   So the fade up is a little longer, on an even sine curve with no rush in the middle. */
:root[data-theme-to="light"]::view-transition-old(root),
:root[data-theme-to="light"]::view-transition-new(root) {
  animation-duration: 0.55s;
  animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1);
}

/* Work pages: the foundation board now holds one column (Core areas), so let it span the board
   and size its rows to content instead of matching a second column. */
.foundation-board.foundation-board-single {
  grid-template-columns: minmax(0, 1fr);
}

.foundation-board-single .foundation-column {
  grid-template-rows: auto auto 1fr;
  row-gap: 28px;
  min-height: 0;
}

@media (min-width: 900px) {
  .foundation-board-single .foundation-skill-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(28px, 4vw, 56px);
  }
}
