/* ==========================================================
   RESOURCES SECTION
   Landing page + article detail page
   ========================================================== */

/* ---------- Category filter chips ---------- */
.resources-filters {
  max-width: var(--container);
  margin: 0 auto var(--space-10);
  padding: 0 var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

.resources-filter {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--cream-50);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.resources-filter:hover {
  border-color: var(--navy-700);
  color: var(--navy-700);
}

.resources-filter.is-active {
  background: var(--navy-700);
  color: var(--cream-50);
  border-color: var(--navy-700);
}

/* ---------- Article grid ---------- */
.articles-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

@media (max-width: 1000px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
}
@media (max-width: 640px) {
  .articles-grid { grid-template-columns: 1fr; }
}

.article-card {
  background: var(--cream-50);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.article-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream-200);
}

.article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-card__body {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
@media (max-width: 640px) {
  .article-card__body {
    padding: var(--space-6);
  }
}

.article-card__category {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--sage-600);
}

.article-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.3;
  font-weight: 500;
  color: var(--navy-900);
  margin: 0;
}

.article-card__excerpt {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
}

.article-card__meta {
  font-size: var(--text-xs);
  color: var(--muted);
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.article-card__meta span + span::before {
  content: "·";
  margin-right: var(--space-2);
}

.articles-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-12) var(--space-6);
  color: var(--muted);
  font-style: italic;
}

/* ---------- Article detail page ---------- */
.article-hero {
  padding: clamp(var(--space-12), 7vw, var(--space-20)) 0 var(--space-10);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.article-hero__inner {
  max-width: 72ch;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.article-hero__category {
  display: inline-block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--sage-600);
  margin-bottom: var(--space-4);
}

.article-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1.1;
  font-weight: 400;
  margin: 0 0 var(--space-4);
}

.article-hero h1 em {
  font-style: italic;
  color: var(--terracotta-500);
  font-weight: 400;
}

.article-meta {
  font-size: var(--text-sm);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.article-featured-image {
  max-width: 1000px;
  margin: 0 auto var(--space-10);
  padding: var(--space-10) var(--space-6) 0;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  display: block;
}

.article-body {
  max-width: 68ch;
  margin: 0 auto;
  padding: 0 var(--space-6) var(--space-16);
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--ink-soft);
  font-family: var(--font-body);
}

.article-body p { margin: 0 0 var(--space-5); }
.article-body h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.2;
  font-weight: 400;
  color: var(--navy-900);
  margin: var(--space-12) 0 var(--space-4);
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--navy-900);
  margin: var(--space-10) 0 var(--space-3);
}
.article-body ul, .article-body ol { margin: 0 0 var(--space-5) 1.4em; }
.article-body li { margin-bottom: var(--space-2); }
.article-body strong { color: var(--ink); }
.article-body a { color: var(--terracotta-600); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body a:hover { color: var(--terracotta-500); }
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
  margin: var(--space-6) 0;
  display: block;
}
.article-body blockquote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.5;
  color: var(--navy-700);
  border-left: 3px solid var(--terracotta-500);
  padding: var(--space-2) 0 var(--space-2) var(--space-6);
  margin: var(--space-10) 0;
  font-style: italic;
}

/* Key takeaway box */
.key-takeaway {
  max-width: 68ch;
  margin: var(--space-8) auto;
  padding: var(--space-6) var(--space-6);
  background: var(--cream-100);
  border-left: 4px solid var(--sage-600);
  border-radius: var(--r-md);
}

.key-takeaway__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--sage-600);
  margin-bottom: var(--space-2);
}

.key-takeaway__text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--navy-700);
  margin: 0;
}

/* Local / Park Lane sidebar style blocks produced by markdown headings "## How Park Lane approaches this" don't need special styling — H2 handles it. */

/* FAQ accordion */
.article-faqs {
  max-width: 68ch;
  margin: var(--space-12) auto 0;
  padding: 0 var(--space-6);
}
.article-faqs h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--navy-900);
  margin: 0 0 var(--space-6);
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: var(--space-5) 0;
}
.faq-item summary {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--navy-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: var(--text-xl);
  color: var(--terracotta-500);
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item__answer {
  margin-top: var(--space-3);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--ink-soft);
}

/* Author block */
.author-block {
  max-width: 68ch;
  margin: var(--space-16) auto 0;
  padding: var(--space-8) var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.author-block__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--navy-900);
}
.author-block__bio {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

/* Related / CTA */
.article-cta {
  max-width: 68ch;
  margin: var(--space-12) auto;
  padding: var(--space-10) var(--space-6);
  text-align: center;
  background: var(--navy-700);
  color: var(--cream-50);
  border-radius: var(--r-lg);
}
.article-cta h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  margin: 0 0 var(--space-3);
  color: var(--cream-50);
}
.article-cta h2 em {
  font-style: italic;
  color: var(--gold-500);
  font-weight: 400;
}
.article-cta p {
  font-size: var(--text-base);
  color: rgba(251, 248, 241, 0.85);
  margin: 0 0 var(--space-5);
}

/* Loading / error states */
.article-loading,
.article-error {
  max-width: 68ch;
  margin: var(--space-20) auto;
  padding: 0 var(--space-6);
  text-align: center;
  color: var(--muted);
}
