/* ── Nav override: no fade-in delay on inner pages ── */
#main-nav {
  opacity: 1;
  animation: none;
}

.nav-links a.is-current {
  color: var(--abyss);
  font-weight: 500;
}

.nav-links a.is-current::after {
  width: 100%;
}

/* ── Page wrapper ── */
.articles-page {
  background: var(--bg-mist);
  padding-top: 58px;
}

.ap-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 8vw, 120px);
}

/* ── Hero ── */
.ap-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

/* Reset the global h1 animation — no hero sequence on this page */
.articles-page h1 {
  opacity: 1;
  transform: none;
  animation: none;
}

/* Reset the global .eyebrow animation */
.articles-page .eyebrow {
  opacity: 1;
  transform: none;
  animation: none;
  margin-bottom: 1rem;
}

.ap-title {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--abyss);
}

.ap-title span {
  color: var(--indigo);
}

.ap-sub {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  color: var(--gunmetal);
  line-height: 1.75;
  font-weight: 400;
}

.ap-sub + .ap-sub {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ── Divider ── */
.ap-divider {
  width: 120px;
  height: 4px;
  background: var(--indigo);
  border-radius: 999px;
  margin-bottom: 2.5rem;
}

/* ── Cards grid ── */
.ap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-bottom: 4rem;
}

.ap-card {
  background: #fff;
  border: 1px solid rgba(10, 143, 160, 0.18);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(10, 79, 96, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.ap-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--teal-lagoon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.ap-card:hover {
  transform: translateY(-4px);
  border-color: rgba(85, 216, 214, 0.5);
  box-shadow: 0 6px 24px rgba(10, 79, 96, 0.1);
}

.ap-card:hover::after {
  transform: scaleX(1);
}

.ap-card--featured {
  grid-column: span 2;
  min-height: 320px;
  border-color: var(--teal-pam);
}

.ap-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ap-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-pool);
}

.ap-tag--featured {
  color: var(--indigo);
}

.ap-arrow {
  width: 18px;
  height: 18px;
  color: var(--gunmetal);
  opacity: 0.35;
  flex: 0 0 auto;
  transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.ap-card:hover .ap-arrow {
  color: var(--teal-lagoon);
  opacity: 1;
  transform: translate(2px, -2px);
}

.ap-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--abyss);
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.ap-card--featured .ap-card-title {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}

.ap-card:hover .ap-card-title {
  color: var(--deep-lagoon);
}

.ap-excerpt {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--gunmetal);
  line-height: 1.75;
  flex-grow: 1;
}

.ap-card--featured .ap-excerpt {
  font-size: 0.95rem;
  max-width: 90%;
}

.ap-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(10, 143, 160, 0.1);
}

.ap-date {
  font-size: 0.75rem;
  color: var(--gunmetal);
  opacity: 0.5;
}

.ap-read {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-pool);
}

/* ── Upcoming teasers ── */
.ap-upcoming {
  margin-top: 1rem;
}

.ap-upcoming-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 1.25rem;
}

.ap-upcoming-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gunmetal);
  opacity: 0.5;
  white-space: nowrap;
}

.ap-upcoming-line {
  flex: 1;
  height: 1px;
  background: rgba(10, 143, 160, 0.15);
}

.ap-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.ap-teaser {
  border: 1px dashed rgba(10, 143, 160, 0.25);
  border-radius: 14px;
  padding: 22px;
  background: #fff;
}

.ap-teaser-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px dashed rgba(10, 143, 160, 0.25);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  color: var(--gunmetal);
  opacity: 0.6;
}

.ap-teaser-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--teal-pam);
  border-radius: 50%;
  flex-shrink: 0;
  animation: ap-pulse 1.8s ease-in-out infinite;
}

@keyframes ap-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.ap-teaser-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--abyss);
  margin-bottom: 8px;
}

.ap-teaser-excerpt {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--gunmetal);
  line-height: 1.7;
  margin-bottom: 12px;
}

.ap-teaser-date {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-pool);
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .ap-hero {
    grid-template-columns: 1fr;
  }

  .ap-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ap-card--featured {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .ap-container {
    padding: clamp(2rem, 4vw, 3.5rem) var(--pad-x);
  }

  .ap-grid {
    grid-template-columns: 1fr;
  }

  .ap-card--featured {
    grid-column: span 1;
  }

  .ap-teaser-grid {
    grid-template-columns: 1fr;
  }
}
