/* ============================================================
   Resources hub + library + guide page styling
   Layered on top of styles.css (and legal.css for guide pages)
   ============================================================ */

/* ---- Shared resources page chrome ---- */
.resources {
  padding: 64px 0 96px;
  background: #fbfaf6;
}

.resources__header {
  max-width: 760px;
  margin: 0 auto 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(15, 76, 92, 0.12);
}

.resources__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 12px;
}

.resources__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1.05;
  color: #1a2e30;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.resources__lede {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #2a2a2a;
  max-width: 60ch;
  margin: 0;
}

/* ---- Hub cards (Guides / Reviews / Playbooks) ---- */
.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.lib-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(15, 76, 92, 0.18);
  border-radius: 8px;
  padding: 32px 28px 28px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.lib-card:hover,
.lib-card:focus-visible {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 76, 92, 0.08);
  outline: none;
}

.lib-card__count {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 14px;
}

.lib-card__count--soon {
  color: #8a8a8a;
}

.lib-card__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 28px;
  line-height: 1.15;
  color: #1a2e30;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.lib-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: #4a5568;
  margin: 0 0 20px;
}

.lib-card__cta {
  margin-top: auto;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.01em;
}

.lib-card__cta::after {
  content: " →";
}

.lib-card[aria-disabled="true"] {
  opacity: 0.7;
  cursor: default;
}

.lib-card[aria-disabled="true"]:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(15, 76, 92, 0.18);
}

/* ---- Library landing (list of guides) ---- */
.guide-list {
  display: grid;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.guide-list__item {
  background: #ffffff;
  border: 1px solid rgba(15, 76, 92, 0.18);
  border-radius: 8px;
  padding: 24px 28px;
}

.guide-list__item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.guide-list__item a:hover .guide-list__title {
  color: var(--teal);
}

.guide-list__meta {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 8px;
}

.guide-list__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 24px;
  line-height: 1.2;
  color: #1a2e30;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  transition: color 0.18s ease;
}

.guide-list__desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: #4a5568;
  margin: 0;
}

/* ---- Single guide page (article body) ---- */
.guide-meta {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #6a7280;
  margin: 0 0 28px;
}

.guide-meta a {
  color: var(--teal);
}

/* Crisis callout box at top of guide */
.crisis-box {
  background: #FDECF3;
  border: 2px solid #C03677;
  border-radius: 8px;
  padding: 22px 24px;
  margin: 0 0 36px;
}

.crisis-box__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px;
  color: #8C1D4F;
  margin: 0 0 10px;
  line-height: 1.2;
}

.crisis-box__lede {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: #4a1f37;
  margin: 0 0 12px;
}

.crisis-box ul {
  margin: 0;
  padding-left: 22px;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  color: #4a1f37;
}

.crisis-box li { margin: 0 0 4px; }

.crisis-box strong { color: #8C1D4F; }

/* Traffic-light table */
.traffic-light {
  border-collapse: collapse;
  width: 100%;
  margin: 24px 0 28px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
}

.traffic-light th,
.traffic-light td {
  border: 1px solid rgba(15, 76, 92, 0.16);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.traffic-light th {
  background: var(--teal);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.traffic-light td.tl-color {
  font-weight: 700;
  white-space: nowrap;
}

.traffic-light tr.tl-green td.tl-color { background: #E8F5E9; color: #1b5e20; }
.traffic-light tr.tl-yellow td.tl-color { background: #FFF8E1; color: #7a5f00; }
.traffic-light tr.tl-red td.tl-color { background: #FDECF3; color: #8C1D4F; }

/* Crisis resources reference table */
.resources-table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0 28px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
}

.resources-table th,
.resources-table td {
  border: 1px solid rgba(15, 76, 92, 0.16);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.resources-table th {
  background: var(--teal);
  color: #ffffff;
  font-weight: 600;
}

.resources-table tr:nth-child(even) td {
  background: #fbfaf6;
}

/* Action row at top: download + print */
.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 32px;
}

.guide-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--teal);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid var(--teal);
  transition: background 0.18s ease, color 0.18s ease;
}

.guide-action:hover {
  background: #0a3640;
  color: #ffffff;
}

.guide-action--secondary {
  background: transparent;
  color: var(--teal);
}

.guide-action--secondary:hover {
  background: var(--teal);
  color: #ffffff;
}

/* Soft subscribe footer card on guide page */
.soft-subscribe {
  margin: 48px 0 0;
  padding: 28px 28px 24px;
  background: var(--sand);
  border: 1px solid rgba(15, 76, 92, 0.16);
  border-radius: 8px;
}

.soft-subscribe__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px;
  color: #1a2e30;
  margin: 0 0 8px;
  line-height: 1.2;
}

.soft-subscribe__copy {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: #2a2a2a;
  margin: 0 0 14px;
}

.soft-subscribe__cta {
  display: inline-block;
  padding: 9px 20px;
  background: var(--teal);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.18s ease;
}

.soft-subscribe__cta:hover { background: #0a3640; }

/* License footer */
.guide-license {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(15, 76, 92, 0.12);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: #6a7280;
}

.guide-license a { color: var(--teal); }

/* Breadcrumb */
.breadcrumb {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #6a7280;
  margin: 0 0 14px;
  letter-spacing: 0.01em;
}

.breadcrumb a {
  color: var(--teal);
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb span[aria-current] { color: #2a2a2a; }

@media (max-width: 600px) {
  .resources { padding: 40px 0 64px; }
  .resources__header { margin-bottom: 32px; }
  .lib-card { padding: 24px 22px; }
  .crisis-box { padding: 18px 18px; }
  .crisis-box__title { font-size: 19px; }
  .traffic-light, .resources-table { font-size: 14px; }
  .traffic-light th, .traffic-light td,
  .resources-table th, .resources-table td { padding: 10px 12px; }
  .guide-actions { flex-direction: column; align-items: stretch; }
  .guide-action { justify-content: center; }
}
