/* ============================================
   Resources Hub Styles (Phase 5.6)
   ============================================ */

.res-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; background: var(--white);
  border-bottom: 2px solid var(--sage-l); position: sticky; top: 0; z-index: 50;
}
.res-nav-left { display: flex; align-items: center; gap: 12px; }
.res-nav-left h2 { font-size: 1.1rem; margin: 0; }
.res-nav-right { display: flex; align-items: center; gap: 12px; }

.res-page { max-width: 1100px; margin: 0 auto; padding: 28px 16px 60px; }

.res-hero {
  background: linear-gradient(135deg, var(--slate), var(--forest));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 34px;
  margin-bottom: 24px;
}
.res-hero h1 { color: var(--white); font-size: 1.75rem; margin-bottom: 4px; }
.res-hero p { color: var(--sage-l); font-family: var(--fb); font-size: 0.95rem; line-height: 1.5; }

.res-crumb {
  display: flex; gap: 10px; align-items: center; font-family: var(--fb);
  font-size: 0.82rem; color: var(--slate); margin-bottom: 14px;
}
.res-crumb a { color: var(--slate); text-decoration: none; }
.res-crumb a:hover { color: var(--forest); }

.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.res-card {
  background: var(--white);
  border: 2px solid var(--sage-l);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  text-decoration: none;
  color: var(--forest);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s, transform 0.15s;
}
.res-card:hover { border-color: var(--forest); transform: translateY(-1px); }
.res-card-title { font-family: var(--fh); font-size: 1.1rem; color: var(--forest); }
.res-card-sub { font-family: var(--fb); font-size: 0.84rem; color: var(--slate); line-height: 1.4; }
.res-card-cta { margin-top: 8px; font-weight: 700; color: var(--sage); font-size: 0.88rem; }
.res-card.disabled { opacity: 0.45; pointer-events: none; }

.res-section {
  background: var(--white);
  border: 2px solid var(--sage-l);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  margin-bottom: 16px;
}
.res-section h2 {
  font-size: 1.25rem;
  margin-bottom: 6px;
  scroll-margin-top: 80px;
}
.res-section .lede { font-family: var(--fb); color: var(--slate); font-size: 0.88rem; margin-bottom: 12px; }
.res-section ul { padding-left: 22px; margin-bottom: 10px; }
.res-section li { margin-bottom: 4px; line-height: 1.6; }

.res-toc {
  background: var(--sage-m);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex; gap: 10px 20px; flex-wrap: wrap;
}
.res-toc a {
  font-family: var(--fp);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--forest);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--white);
  border: 2px solid var(--sage-l);
}
.res-toc a:hover { background: var(--forest); color: var(--white); border-color: var(--forest); }

.res-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.res-tab-panel { display: none; }
.res-tab-panel.active { display: block; }

.res-placeholder-note {
  padding: 16px 18px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 2px dashed var(--sage-l);
  font-family: var(--fb);
  color: var(--slate);
  font-size: 0.86rem;
  margin: 10px 0 8px;
}

.conv-tool {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin: 18px 0;
}
.conv-tool .form-group { margin-bottom: 0; }
.conv-output {
  font-family: var(--fp); font-size: 1.5rem; font-weight: 800; color: var(--forest);
  padding: 8px 12px; background: var(--sage-m); border-radius: var(--radius-sm);
}

@media (max-width: 700px) {
  .conv-tool { grid-template-columns: 1fr; }
}
