/* Knowledge article directory v2: editorial pass.
 * Typography-only cards (articles don't reliably have hero images), left-aligned
 * hero, featured article on page 1.
 * Layered AFTER knowledge-article-directory.css. */

/* ---------- Hero rework ---------- */
.page-header {
  max-width: 1100px;
  padding: 3.5rem 2rem 2rem;
  text-align: left;
}
.page-header .header-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral, #FF8A73);
  margin-bottom: 1rem;
}
.page-header .header-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}
.page-header h1 {
  font-family: 'Fraunces', serif !important;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem) !important;
  line-height: 1.02 !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 1rem !important;
  font-variation-settings: "opsz" 96;
  max-width: 18ch;
}
.page-header p {
  font-family: 'Fraunces', serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: 1.2rem !important;
  line-height: 1.5 !important;
  color: #5a5a5a !important;
  max-width: 56ch;
  margin: 0 !important;
}
.page-header .header-count {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(43, 43, 43, 0.1);
  width: 100%;
  max-width: 420px;
}
.page-header .header-count-value {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.65rem;
  color: var(--charcoal, #2B2B2B);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.page-header .header-count-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  font-weight: 500;
}
@media (max-width: 768px) {
  .page-header { padding: 2.5rem 1.25rem 1.5rem; }
  .page-header p { font-size: 1.05rem !important; }
}

/* ---------- Search bar polish ---------- */
.search-container {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  padding: 0 2rem;
}
.search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 540px;
}
.search-input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: 1px solid rgba(43, 43, 43, 0.14);
  border-radius: 999px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--charcoal, #2B2B2B);
  outline: none;
  transition: border-color 0.18s;
}
.search-input:focus {
  border-color: var(--coral, #FF8A73);
}
.search-button {
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--charcoal, #2B2B2B);
  background: var(--charcoal, #2B2B2B);
  color: #fff;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s, border-color 0.18s;
}
.search-button:hover {
  background: var(--coral, #FF8A73);
  border-color: var(--coral, #FF8A73);
}

/* ---------- Content layout ---------- */
.content-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}
.search-results-label {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

/* ---------- Featured article (page 1, non-search only) ---------- */
.featured-article {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 2rem 0 3rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(43, 43, 43, 0.1);
}
.featured-article-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral, #FF8A73);
}
.featured-article-eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
}
.featured-article a.featured-article-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--charcoal, #2B2B2B);
  text-decoration: none;
  max-width: 24ch;
  transition: color 0.2s;
  font-variation-settings: "opsz" 72;
}
.featured-article a.featured-article-title:hover {
  color: var(--coral, #FF8A73);
}
.featured-article-lede {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.55;
  color: #5a5a5a;
  max-width: 60ch;
  margin: 0;
}

/* ---------- Editorial typography cards ---------- */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(43, 43, 43, 0.08);
}
@media (min-width: 720px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 3rem;
  }
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(43, 43, 43, 0.08);
  background: transparent;
  border-radius: 0;
  transition: none;
}
.article-card:hover {
  transform: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.article-card a {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--charcoal, #2B2B2B);
  text-decoration: none;
  transition: color 0.2s;
}
.article-card a:hover {
  color: var(--coral, #FF8A73);
}

.article-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #6a6a6a;
  margin: 0;
  max-width: 56ch;
}

/* Tiny date / topic stamp above the card title (rendered by blade) */
.article-card-stamp {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
  font-weight: 500;
}

/* ---------- Pagination polish ---------- */
.pagination-container {
  margin: 3rem 0 1rem;
  display: flex;
  justify-content: center;
}

/* ---------- Related resources cleanup ---------- */
.explore-resources {
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(43, 43, 43, 0.1);
}
.explore-resources h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
  color: var(--charcoal, #2B2B2B);
}
.explore-resources a {
  display: inline-block;
  margin-right: 1.5rem;
  padding: 0.4rem 0;
  color: var(--charcoal, #2B2B2B);
  text-decoration: underline;
  text-decoration-color: rgba(255, 138, 115, 0.5);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.explore-resources a:hover {
  color: var(--coral, #FF8A73);
  text-decoration-color: var(--coral, #FF8A73);
}
