/* views.css — Views listing page styles. Requires styles.css.
   .insights-grid is defined in styles.css (shared with homepage). */

/* ─── Page Header ───────────────────────────────────── */
.page-header {
  padding: 10rem 4rem 5rem;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
}

.page-title {
  font-family: var(--f-display);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  animation: fadeUp 0.9s 0.2s ease both;
}

.page-title em {
  font-style: italic;
  color: var(--gold);
}

.page-header-right {
  animation: fadeUp 0.9s 0.4s ease both;
}

.page-intro {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.85;
  text-align: justify;
  max-width: 480px;
  margin-left: auto;
}

/* ─── Articles Section ──────────────────────────────── */

.category-other-heading {
    color: var(--gold);        /* same gold as main category title */
    font-weight: 600;
    margin: 2.5rem 0 1.5rem;  /* spacing from bottom cards and above list */
    font-size: 1.5rem;
}

/* Remove bullets and spacing */
.category-other-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0 2rem;
}

.category-other-list li {
    margin-bottom: 1rem;
}

/* Make link block-level and remove default link styles */
.category-other-list .other-article-link {
    display: block;
    text-decoration: none;
    color: inherit; /* ensures no default blue */
}

/* Title and subtitle styling */
.category-other-list .other-article-title {
    font-weight: 500;
    color: var(--ink); /* adjust to your text color */
    font-size: 1rem;
    transition: color 0.2s ease;
    display: inline-block; /* inline block so hover works */
}

.category-other-list .other-article-subtitle {
    font-weight: 400;
    color: var(--muted);
    font-size: 0.9rem;
    display: block;
    margin-top: 0.1rem;
}

/* Hover: entire link block changes color */
.category-other-list .other-article-link:hover {
    background: var(--parchment);
}

.articles-section {
  padding: 5rem 4rem;
  border-bottom: 1px solid var(--rule);
}

/* .insights-grid (2fr 1fr 1fr) is in styles.css */

.insights-grid {
  margin-bottom: 2px;
}

/* Equal grid — for rows with no featured card */
.insights-grid-equal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 2px;
}

/* ─── Section Divider Label ─────────────────────────── */
.grid-label {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 1.5rem 0 1rem;
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.grid-label::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--muted);
}

.filter-bar {
  padding: 1.8rem 4rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  background: var(--parchment);
}

/* ─── Views Page Mobile Overrides (@768px) ───────────── */
@media (width <= 768px) {
  .page-header {
    grid-template-columns: 1fr;
    padding: 8rem 1.5rem 3rem;
    gap: 1.5rem;
  }

  .page-intro {
    margin-left: 0;
    max-width: 100%;
  }

  .filter-bar {
    padding: 1.2rem 1.5rem;
  }

  .articles-section {
    padding: 3rem 1.5rem;
  }

  .insights-grid,
  .insights-grid-equal {
    grid-template-columns: 1fr;
  }
}
