

/* ═══════════════════════════════════════
   RESOURCES HUB PAGE
   ═══════════════════════════════════════ */

.v2-res-section-desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin-top: -8px;
  margin-bottom: 40px;
}

/* Jump nav */
.v2-res-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  position: sticky;
  top: 72px;
  z-index: 90;
  background: var(--ink);
  /* border-bottom removed T213 */
}
.v2-res-nav__item {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-family: var(--sans);
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  border: 1px solid transparent;
}
.v2-res-nav__item:hover {
  color: var(--paper-dim);
  background: rgba(240,236,228,0.04);
}
.v2-res-nav__item--active {
  color: var(--paper);
  border-color: var(--border-hover);
  background: rgba(240,236,228,0.06);
}

/* Featured tool card */
.v2-res-featured {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(204,90,62,0.06) 0%, rgba(204,90,62,0.02) 100%);
  text-decoration: none;
  color: var(--paper);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.v2-res-featured:hover {
  border-color: rgba(204,90,62,0.3);
  transform: translateY(-2px);
  color: var(--paper);
  text-decoration: none;
}
.v2-res-featured__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 100px;
}
.v2-res-featured__icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(204,90,62,0.1);
  border: 1px solid var(--accent-glow);
}
.v2-res-featured__content {
  flex: 1;
}
.v2-res-featured__title {
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.v2-res-featured__desc {
  color: var(--paper-faint);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
}
.v2-res-featured__meta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.v2-res-featured__tag {
  padding: 3px 10px;
  background: rgba(240,236,228,0.06);
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.v2-res-featured__time {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: rgba(240,236,228,0.4);
}
.v2-res-featured__arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: rgba(240,236,228,0.4);
  transition: all 0.3s;
}
.v2-res-featured:hover .v2-res-featured__arrow {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateX(4px);
}

/* Tool cards (3-col) */
.v2-res-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.v2-res-tool {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(240,236,228,0.02);
  text-decoration: none;
  color: var(--paper);
  transition: border-color 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}
.v2-res-tool:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  color: var(--paper);
  text-decoration: none;
}
.v2-res-tool__icon {
  margin-bottom: 24px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(204,90,62,0.08);
}
.v2-res-tool__title {
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.v2-res-tool__desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}
.v2-res-tool__cta {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  transition: opacity 0.2s;
}
.v2-res-tool:hover .v2-res-tool__cta {
  opacity: 0.8;
}

/* Download items (list style) */
.v2-res-downloads {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(240,236,228,0.04);
  border-radius: 12px;
  overflow: hidden;
}
.v2-res-download {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  background: var(--ink);
  text-decoration: none;
  color: var(--paper);
  transition: background 0.2s;
}
.v2-res-download:hover {
  background: rgba(240,236,228,0.03);
  color: var(--paper);
  text-decoration: none;
}
.v2-res-download__num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 28px;
}
.v2-res-download__body {
  flex: 1;
}
.v2-res-download__title {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.v2-res-download__desc {
  color: rgba(240,236,228,0.45);
  font-size: 0.88rem;
  line-height: 1.5;
}
.v2-res-download__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: rgba(240,236,228,0.35);
  transition: all 0.3s;
}
.v2-res-download:hover .v2-res-download__icon {
  border-color: var(--accent);
  color: var(--accent);
}

/* Guide cards (2x2 grid) */
.v2-res-guides {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.v2-res-guide {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(240,236,228,0.02);
  text-decoration: none;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
}
.v2-res-guide:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  color: var(--paper);
  text-decoration: none;
}
.v2-res-guide__reading {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: rgba(240,236,228,0.35);
  margin-bottom: 16px;
}
.v2-res-guide__title {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.v2-res-guide__desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}
.v2-res-guide__cta {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

/* More button */
.v2-res-more {
  text-align: center;
  margin-top: 40px;
}

/* ═══ RESOURCES MOBILE ═══ */
@media (max-width: 768px) {
  .v2-res-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    top: 60px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .v2-res-nav::-webkit-scrollbar { display: none; }
  .v2-res-nav__item {
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  .v2-res-featured {
    flex-direction: column;
    padding: 28px 24px;
    gap: 20px;
    align-items: flex-start;
  }
  .v2-res-featured__arrow { display: none; }
  .v2-res-featured__icon {
    width: 56px;
    height: 56px;
  }
  .v2-res-featured__icon svg { width: 32px; height: 32px; }
  .v2-res-featured__title { font-size: 1.3rem; }
  .v2-res-featured__desc { font-size: 0.88rem; }
  .v2-res-featured__badge {
    top: 12px;
    right: 12px;
    font-size: 0.65rem;
  }

  .v2-res-tools {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .v2-res-tool { padding: 24px; }
  .v2-res-tool__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
  }
  .v2-res-tool__icon svg { width: 24px; height: 24px; }
  .v2-res-tool__title {
  margin-top: 4px; font-size: 1.05rem; }

  .v2-res-download {
    padding: 20px 16px;
    gap: 16px;
  }
  .v2-res-download__title { font-size: 1rem; }
  .v2-res-download__desc { font-size: 0.82rem; }
  .v2-res-download__icon { display: none; }

  .v2-res-guides {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .v2-res-guide { padding: 24px; }
  .v2-res-guide__title { font-size: 1.05rem; }

  .v2-res-section-desc {
    font-size: 0.92rem;
    margin-bottom: 28px;
  }

  .v2-res-more { margin-top: 28px; }
}

/* ── T212: Resources page fixes ── */

/* Fix: featured card — space between icon and title */
.v2-res-featured__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.v2-res-featured__title {
  margin-top: 8px;
}

/* Fix: Newsletter section on resources — proper 2-col layout */
.v2-section--bordered .v2-newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
}
.v2-section--bordered .v2-newsletter__content {
  text-align: left;
}
.v2-section--bordered .v2-newsletter__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}
.v2-section--bordered .v2-newsletter__form {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  /* Featured card: icon + text spacing on mobile */
  .v2-res-featured__title {
    margin-top: 4px;
  }

  /* Newsletter: single col, centered */
  .v2-section--bordered .v2-newsletter {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .v2-section--bordered .v2-newsletter__content {
    text-align: center;
  }
  .v2-section--bordered .v2-newsletter__title br {
    display: none;
  }
  .v2-section--bordered .v2-newsletter__input-wrap {
    flex-direction: column;
  }
}

/* ── T212: Resources newsletter + featured card fixes ── */

/* Override footer newsletter max-width for resources page newsletter */
.v2-section--bordered > .v2-newsletter {
  max-width: 960px;
  gap: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.v2-section--bordered > .v2-newsletter .v2-newsletter__content {
  text-align: left;
}
.v2-section--bordered > .v2-newsletter .v2-newsletter__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.3;
}
.v2-section--bordered > .v2-newsletter .v2-newsletter__form {
  min-width: unset;
  width: 100%;
}
.v2-section--bordered > .v2-newsletter .v2-newsletter__input-wrap {
  display: flex;
  gap: 8px;
}
.v2-section--bordered > .v2-newsletter .v2-newsletter__input {
  flex: 1;
  padding: 14px 16px;
  font-size: 0.95rem;
}
.v2-section--bordered > .v2-newsletter .v2-newsletter__btn {
  padding: 14px 24px;
  font-size: 0.95rem;
}

/* Featured card: gap between icon and text */
.v2-res-featured__title {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .v2-section--bordered > .v2-newsletter {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .v2-section--bordered > .v2-newsletter .v2-newsletter__content {
    text-align: center;
  }
  .v2-section--bordered > .v2-newsletter .v2-newsletter__title br {
    display: none;
  }
  .v2-section--bordered > .v2-newsletter .v2-newsletter__input-wrap {
    flex-direction: column;
  }
}

/* ── T213: align nav/section divider lines ── */
.v2-res-nav { border-bottom: none !important; }
#tools.v2-section--bordered { border-top: none !important; }
.page-template-template-resources .v2-cta { border-top: none !important; }
