/* Content pages and the logbook: the article (when a site has no content/_layout.html, its
   pages use sbs-pkg's) and post cards ({{posts|posts}}, {{latestPosts|posts}}, /logbook/).
   Copied into the site by sbs-pkg-sync; loaded before the site's own styles.css, so a site
   restyles any of it there. Colors and shapes come from the site's theme variables. */

.article {
  padding: clamp(32px, 6vw, 64px) 0 clamp(40px, 7vw, 80px);
  min-height: 55vh;
}
.article-wrap {
  max-width: 46rem;
}
.article-head {
  margin: 8px 0 20px;
}
.article-head h1 {
  margin: 4px 0 12px;
  font-size: clamp(2rem, 4.5vw, 3rem);
}
.article-hero {
  margin: 24px 0;
}
.article-hero img {
  width: 100%;
  height: auto;
  border-radius: var(--radius, 12px);
}
.prose {
  font-size: 1.08rem;
  line-height: 1.65;
}
.prose img {
  max-width: 100%;
  height: auto;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}
.article-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0 8px;
  padding: 20px 24px;
  border: 1px solid var(--line, #d9dee3);
  border-radius: var(--radius, 12px);
}
.article-cta h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}
.article-cta p {
  margin: 0;
}
.article-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Post cards */
.post-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 20px;
  margin: 20px 0;
}
.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line, #d9dee3);
  border-radius: var(--radius, 12px);
  background: var(--paper, #fff);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
/* cards inside an article's text (the logbook page) keep their own type, not the text's links */
.prose .post-cards {
  font-size: 1rem;
  line-height: 1.5;
}
.prose .post-card {
  font-weight: 400;
  text-decoration: none;
}
.post-card:hover,
.post-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow, 0 8px 24px rgb(0 0 0 / 0.12));
}
.post-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.post-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 18px;
}
.post-card-date {
  color: var(--muted, #5b6672);
  font-size: 0.85rem;
}
.post-card-title {
  font-family: var(--display, inherit);
  font-size: 1.15rem;
  line-height: 1.25;
}
.post-card-text {
  color: var(--muted, #5b6672);
}
.more-posts {
  margin-top: 40px;
}
.more-posts h2 {
  font-size: 1.35rem;
}
.more-posts-all {
  margin: 0;
}
.logbook-intro {
  max-width: 46rem;
}
@media (prefers-reduced-motion: reduce) {
  .post-card {
    transition: none;
  }
  .post-card:hover,
  .post-card:focus-visible {
    transform: none;
  }
}

/* pages made from data files: Meet the team (/team/) and Shops we work with (/partners/) */
.page-intro {
  margin-bottom: 24px;
}
.team-cards,
.partner-cards {
  display: grid;
  gap: 20px;
  margin: 8px 0 28px;
}
.team-cards {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.partner-cards {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.team-card,
.partner-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.team-card-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.team-card-initials {
  display: grid;
  place-items: center;
  font: 700 2.4rem/1 var(--display, inherit);
  color: #fff;
  background: var(--teal-ink, #0a6b78);
}
.team-card-body,
.partner-card {
  padding: 16px 18px 18px;
}
/* inside .prose: beat its heading and image spacing (and a site's own .prose rules) */
.team-cards .team-card h2,
.partner-cards .partner-card h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}
.team-cards .team-card img,
.partner-cards .partner-card img {
  margin: 0;
  border-radius: 0;
}
.team-card-role,
.partner-card-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 600;
}
.team-card-quals {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 0.92rem;
}
.partner-card-logo {
  display: block;
  max-height: 72px;
  max-width: 180px;
  object-fit: contain;
  margin-bottom: 12px;
}
.partner-card-more {
  margin: 10px 0 0;
  font-weight: 600;
}
.partner-card-links {
  margin: 10px 0 0;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.partner-note {
  color: var(--muted);
  font-size: 0.9rem;
}

/* tables in pages and posts (e.g. a course list); wrap in <div class="table-scroll"> for narrow screens */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.4em;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.prose th,
.prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
