/* The same controls appear on the homepage and inside each project. */
.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.action-row .action, summary.action, footer .action {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid #c7d8ed;
  border-radius: 9px;
  background: #ffffff;
  color: #2f4d73;
  font: 600 13px/1.3 Inter, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.action-row .action--primary {
  background: #225eb7;
  color: white;
  border-color: #225eb7;
}
.action-row .action--soft, summary.action--soft {
  background: #eaf2ff;
  color: #1b529d;
  border-color: #c6d9f5;
}
.action-row .action--quiet, footer .action {
  background: transparent;
  border-color: transparent;
}
.action svg {
  pointer-events: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
  flex: none;
}
@media (hover:hover) {
  .action-row .action:hover, summary.action:hover, footer .action:hover {
    background: #eaf2ff;
    border-color: #8eb3e9;
    color: #1c4b8d;
    text-decoration: none;
    box-shadow: 0 1px 3px #17477912;
  }
  .action-row .action--primary:hover {
    background: #194c99;
    border-color: #194c99;
    color: white;
  }
}
.action:focus-visible { outline: 2px solid #225eb7; outline-offset: 3px; }
.action-row .action:active, summary.action:active, footer .action:active { box-shadow: inset 0 1px 3px #173b6b35; }
.action[hidden] { display: none; }
details[open] > summary.action .disclosure-icon { transform: rotate(180deg); }
.resources.action-row { margin-top: 23px; gap: 8px; }
.resources.action-row .action { min-height: 42px; padding-inline: 16px; }
.contents {
  width: fit-content;
  max-width: 100%;
  margin: 25px auto 0;
  padding: 4px;
  gap: 2px;
  border: 1px solid #dce5f0;
  border-radius: 12px;
  background: #f2f6fd;
}
.contents a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 8px;
  color: #405d80;
  font-weight: 500;
  font-size: 13px;
}
.contents a:hover, .contents a[aria-current="location"] {
  background: #ffffff;
  color: #22549b;
  box-shadow: 0 1px 4px #17477916;
  text-decoration: none;
}
.paper nav.action-row, .cite-tools.action-row { gap: 7px; }
.paper nav.action-row { margin-top: 14px; }
.bibtex[open] > summary.action { margin-right: 70px; }
.bibtex > button.action { top: 0; right: 0; }
.page-footer .action, footer .action { font-size: 12px; }
@media (max-width:650px) {
  .action-row .action, summary.action, footer .action, .resources.action-row .action, .contents a { min-height: 44px; }
  .contents { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contents a { padding-inline: 6px; text-align: center; }
  .contents a:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .resources.action-row:has(> :nth-child(4)) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 355px; }
  .paper:has(.action-row) { grid-template-columns: clamp(66px,20vw,105px) 1fr; gap: 8px 14px; }
  .paper > div { display: contents; }
  .paper > a { grid-column: 1; grid-row: 1 / 3; }
  .paper h3, .paper p { grid-column: 2; margin: 0; }
  .paper nav.action-row { grid-column: 1 / -1; margin-top: 8px; }
}
@media (prefers-reduced-motion:reduce) { .action-row .action, summary.action, footer .action { transition: none; } }
