/* Use the same touch target and focus treatment throughout the portfolio shell. */
.entry-links .entry-read, .room-intro > #project-library, .card .actions a,
.footer nav a, .journey-footer nav a, .portfolio-links a, .masthead nav a,
body > header > nav a, main.wrap :is(.intro, .block) a,
.journey-entry .entry-contact, .journey-chapter .chapter-link,
.drawer-links a, .room-about > summary, .bank-tabs a, .page-contact form details > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  box-sizing: border-box;
  min-height: 44px;
  max-width: 100%;
  padding: .5rem 1rem;
  border: 1px solid #92b8ac;
  border-radius: 999px;
  background: #18332f;
  color: #e4f8eb;
  font: 600 .85rem/1.25 var(--ui, system-ui, sans-serif);
  text-decoration: none;
  text-shadow: none;
  overflow-wrap: anywhere;

  &:hover {
    background: #e8f7ec;
    color: #142920;
    border-color: #fff;
    text-decoration: none;
  }
  &:focus-visible {
    outline: 3px solid #ffd29e;
    outline-offset: 3px;
  }
  &[aria-current="page"], &[aria-current="true"] {
    background: #c0e3d1;
    color: #12291f;
    border-color: #e3f7eb;
  }
}

.entry-links, .actions { flex-wrap: wrap; }
.entry-links { gap: .6rem; margin-top: 1rem; }
.entry-links .entry-read { background: #15232f; border-color: #acb7c0; color: #f6f2eb; }
.entry-links .entry-read[href="/projects/"] { background: #e4eee6; border-color: #e4eee6; color: #182820; }
.entry-links .entry-read:hover { background: #e8f7ec; color: #142920; }

.footer nav, .journey-footer nav, .contact-actions, body > header > nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
}
.portfolio-menu-list a { width: 100%; justify-content: flex-start; margin-block: 2px; }
.room-about > summary, .page-contact form details > summary { list-style: none; cursor: pointer; }
.room-about > summary::-webkit-details-marker, .page-contact form details > summary::-webkit-details-marker { display: none; }
.room-about > summary::before, .page-contact form details > summary::before {
  content: ""; width: .4rem; height: .4rem; border: solid currentColor;
  border-width: 1.5px 1.5px 0 0; transform: rotate(45deg);
}
.room-about[open] > summary::before, .page-contact form details[open] > summary::before { transform: rotate(135deg); }
.journey-chapter .chapter-link > span { border: 0; background: none; color: inherit; width: auto; height: auto; }
.bank-tabs { gap: .4rem; }
.bank-tabs a { flex-shrink: 0; }
@media (max-width: 480px) {
  .masthead nav a, .portfolio-links > a, .room-intro > #project-library { padding-inline: .68rem; }
  body > header:has(> .brand) { flex-wrap: wrap; gap: .6rem; }
}
