/* ============================================================
   Projects / case studies. Follows the same visual language as
   css/authors.css — orange accents, white cards, no new palette.

   styles.css sets `.service-content ul {list-style:disc; margin-left:2.5em}`
   and centres `.service-content h1,h2`, and both outrank a bare class
   selector — so every list and heading below carries the wrapper.
   ============================================================ */

.projects-lede,
.project-lede {
  font-size: 1.05rem;
  color: #444;
  max-width: 760px;
  margin: 0 0 1.6em;
  line-height: 1.65;
}
.project-lede { font-size: 1.1rem; color: #333; }

/* ---------- Fact strip ---------- */
.project-facts {
  margin: 0 0 2em;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px 22px;
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
  padding: 16px 0;
}
.project-facts > div { min-width: 0; }
.project-facts dt {
  margin: 0;
  color: #888;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.project-facts dd { margin: 3px 0 0; color: #222; font-weight: 600; font-size: .95rem; }

.project-named {
  background: #fff7f0;
  border-left: 4px solid #ff6600;
  border-radius: 0 6px 6px 0;
  padding: 12px 16px;
  margin: 0 0 1.8em;
  max-width: 760px;
  font-size: .95rem;
}
.project-named a { color: #ff6600; font-weight: 600; text-decoration: none; }
.project-named a:hover { text-decoration: underline; }

/* ---------- The three story blocks ---------- */
.project-block { margin: 0 0 1.8em; max-width: 800px; }
.project-block p { margin: 0 0 1em; line-height: 1.7; }
.project-block-work {
  background: #fafafa;
  border-left: 4px solid #ffb37a;
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
}
.project-block-work p:last-child { margin-bottom: 0; }

.project-quote {
  margin: 2em 0;
  padding: 18px 22px;
  background: #fff7f0;
  border-left: 4px solid #ff6600;
  border-radius: 0 8px 8px 0;
  max-width: 760px;
}
.project-quote p { margin: 0 0 .6em; font-style: italic; line-height: 1.65; }
.project-quote cite { font-style: normal; font-weight: 600; color: #666; font-size: .9rem; }

/* ---------- Related links ---------- */
.project-links { margin: 2.2em 0 0; padding-top: 1.4em; border-top: 1px solid #ececec; }
.project-links h2 { margin: 0 0 .6em; font-size: 1.15rem; }
.service-content .project-links ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.project-links li { padding: 5px 0; }
.project-links a { color: #ff6600; font-weight: 600; text-decoration: none; }
.project-links a:hover { text-decoration: underline; }

/* ---------- CTA + back ---------- */
.project-cta {
  margin: 2.4em 0 1em;
  padding: 22px 24px;
  background: #fff7f0;
  border-radius: 8px;
  text-align: center;
}
.project-cta h2 { margin: 0 0 .4em; font-size: 1.3rem; }
.project-cta p { margin: 0 auto 1.1em; max-width: 620px; line-height: 1.6; }

.project-back { margin-top: 1.5em; }
.project-back a, .projects-crosslink a { color: #ff6600; text-decoration: none; }
.project-back a:hover, .projects-crosslink a:hover { text-decoration: underline; }

/* ---------- Hub ---------- */
.projects-empty {
  padding: 18px 20px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  color: #555;
  max-width: 760px;
}
.projects-empty a, .projects-noresults a { color: #ff6600; font-weight: 600; text-decoration: none; }

.projects-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.6em; }
.service-content .projects-filters { margin-left: 0; padding-left: 0; list-style: none; }
.projects-filter {
  padding: 6px 14px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  color: #555;
  font-size: .87rem;
  cursor: pointer;
  transition: all .15s ease;
}
.projects-filter:hover { border-color: #ff6600; color: #ff6600; }
.projects-filter.is-active { background: #ff6600; border-color: #ff6600; color: #fff; }

.project-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 1.5em 0 2em;
}
.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  background: #fff;
  padding: 20px 22px;
  transition: box-shadow .18s ease, transform .18s ease;
}
.project-card:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .09); transform: translateY(-2px); }
.project-card-link { text-decoration: none; }
.service-content .project-card-title {
  display: block;
  text-align: left;
  border-bottom: 0;
  padding-bottom: 0;
  margin: 0 0 .5em;
  font-size: 1.12rem;
  line-height: 1.3;
  color: #222;
}
.project-card-link:hover .project-card-title { color: #ff6600; }
.project-card-summary {
  margin: 0 0 1em;
  font-size: .92rem;
  color: #555;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.service-content .project-card-meta {
  list-style: none;
  margin: 0 0 1em;
  padding-left: 0;
  font-size: .85rem;
  color: #444;
}
.project-card-meta li { padding: 2px 0; }
.project-card-meta span {
  color: #999;
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: .05em;
  margin-right: 6px;
}
.project-card-more {
  margin-top: auto;
  color: #ff6600;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
}
.project-card-more:hover { text-decoration: underline; }
.project-card-more i { margin-left: 5px; font-size: .8rem; }

@media (max-width: 640px) {
  .project-cta { padding: 18px 16px; }
  .project-block-work { padding: 14px 16px; }
}
