/* Page content only; al-folio retains ownership of shared theme components. */
.afp-study {
  --afp-accent: #176b75;
  line-height: 1.7;
}
html[data-theme="dark"] .afp-study {
  --afp-accent: #80cbd1;
}
.afp-study h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 3rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--global-divider-color);
  scroll-margin-top: 6rem;
}
.afp-study h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.8rem;
  scroll-margin-top: 6rem;
}
.afp-project-nav,
.afp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin: 0 0 1.7rem;
  font-size: 0.9rem;
}
.afp-project-nav [aria-current] {
  font-weight: 600;
  border-bottom: 2px solid var(--afp-accent);
}
.afp-eyebrow {
  color: var(--afp-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.075em;
}
.afp-figure {
  min-width: 0;
  margin: 1.7rem 0;
}
.afp-figure > a {
  display: block;
  border: 1px solid var(--global-divider-color);
  background: #fff;
}
.afp-figure > a:hover,
.afp-figure > a:focus-visible {
  outline: 2px solid var(--afp-accent);
  outline-offset: 3px;
}
.afp-figure img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}
.afp-figure figcaption {
  margin-top: 0.65rem;
  font-size: 0.86rem;
  line-height: 1.55;
}
.afp-print-figure {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.afp-hardware-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  align-items: start;
}
.afp-hardware-notes {
  padding-top: 0.3rem;
}
.afp-hardware-notes li {
  margin-bottom: 0.75rem;
}
.afp-details {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border: 1px solid var(--global-divider-color);
  border-radius: 4px;
}
.afp-details summary {
  cursor: pointer;
  font-weight: 500;
  line-height: 1.5;
}
.afp-details[open] summary {
  margin-bottom: 1rem;
}
.afp-study table {
  width: 100%;
  font-size: 0.88rem;
}
.afp-study th,
.afp-study td {
  padding: 0.6rem;
  vertical-align: top;
  border-bottom: 1px solid var(--global-divider-color);
}
.afp-study pre {
  overflow-x: auto;
}
@media (max-width: 640px) {
  .afp-hardware-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .afp-board {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
  .afp-details {
    padding: 0.9rem;
  }
  .afp-study table {
    font-size: 0.78rem;
  }
  .afp-study th,
  .afp-study td {
    padding: 0.4rem 0.2rem;
    overflow-wrap: anywhere;
  }
}
