/* Resource Directory — vNext public and buyer-facing pages */
.resources-vnext {
  background: var(--bg-light);
}

.resources-vnext .rd-page {
  min-height: 60vh;
}

.resources-vnext .rd-container {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
}

.resources-vnext .rd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.resources-vnext .rd-breadcrumb a {
  color: var(--teal-dark);
}

.resources-vnext .rd-breadcrumb a:hover {
  color: var(--teal);
}

.resources-vnext .rd-eyebrow,
.resources-vnext .rd-kicker {
  display: inline-flex;
  align-items: center;
  color: var(--teal-dark);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.resources-vnext .rd-btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.resources-vnext .rd-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.resources-vnext .rd-btn-primary {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 5px 18px rgba(255, 214, 0, 0.2);
}

.resources-vnext .rd-btn-primary:hover {
  background: var(--yellow-light);
  color: var(--navy);
  box-shadow: 0 7px 22px rgba(255, 214, 0, 0.3);
}

.resources-vnext .rd-btn-secondary {
  border-color: var(--border);
  background: #fff;
  color: var(--navy);
}

.resources-vnext .rd-btn-secondary:hover {
  border-color: var(--teal);
  background: var(--teal-50);
  color: var(--teal-dark);
}

/* Public directory */
.resources-public .rd-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 72px;
  background:
    radial-gradient(circle at 88% 20%, rgba(42, 157, 143, 0.22), transparent 29%),
    radial-gradient(circle at 12% 100%, rgba(255, 214, 0, 0.09), transparent 27%),
    linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff;
}

.resources-public .rd-hero::after {
  position: absolute;
  right: -100px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  content: "";
}

.resources-public .rd-hero .rd-breadcrumb {
  color: rgba(255, 255, 255, 0.58);
}

.resources-public .rd-hero .rd-breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
}

.resources-public .rd-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: 72px;
}

.resources-public .rd-hero-copy {
  max-width: 700px;
}

.resources-public .rd-eyebrow {
  margin-bottom: 14px;
  color: #76d4c8;
}

.resources-public .rd-hero h1 {
  max-width: 680px;
  margin: 0 0 20px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.08;
}

.resources-public .rd-hero-copy > p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.75;
}

.resources-public .rd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.resources-public .rd-hero .rd-btn-secondary {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.resources-public .rd-hero .rd-btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.resources-public .rd-trust-card {
  padding: 10px 26px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 50px rgba(8, 18, 28, 0.26);
  backdrop-filter: blur(8px);
}

.resources-public .rd-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.resources-public .rd-trust-item:last-child {
  border-bottom: none;
}

.resources-public .rd-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(42, 157, 143, 0.2);
  color: #73d1c5;
}

.resources-public .rd-icon svg {
  width: 18px;
  height: 18px;
}

.resources-public .rd-icon-check {
  background: rgba(255, 214, 0, 0.16);
  color: var(--yellow);
}

.resources-public .rd-trust-item div > strong,
.resources-public .rd-trust-item div > span {
  display: block;
}

.resources-public .rd-trust-item strong {
  margin-bottom: 3px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 14px;
}

.resources-public .rd-trust-item div > span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  line-height: 1.5;
}

.resources-public .rd-directory {
  padding: 72px 0 92px;
}

.resources-vnext .rd-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.resources-vnext .rd-section-heading h2,
.resources-vnext .rd-content-heading h2,
.resources-vnext .rd-form-heading h2,
.resources-vnext .rd-locked-copy h2 {
  margin: 7px 0 6px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.7px;
}

.resources-vnext .rd-section-heading p,
.resources-vnext .rd-form-heading p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.resources-vnext .rd-count {
  flex: 0 0 auto;
  padding: 6px 12px;
  border: 1px solid var(--teal-100);
  border-radius: 999px;
  background: var(--teal-50);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
}

.resources-vnext .rd-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.resources-vnext .rd-listing-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.resources-vnext .rd-listing-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal-100);
  box-shadow: var(--shadow-md);
}

.resources-vnext .rd-listing-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.resources-vnext .rd-category,
.resources-vnext .rd-source {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.resources-vnext .rd-category {
  padding: 5px 10px;
  background: var(--teal-50);
  color: var(--teal-dark);
}

.resources-vnext .rd-source {
  color: var(--text-muted);
}

.resources-vnext .rd-listing-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
}

.resources-vnext .rd-listing-card h3 a {
  color: var(--navy);
}

.resources-vnext .rd-listing-card h3 a:hover {
  color: var(--teal-dark);
}

.resources-vnext .rd-listing-card > p {
  margin: 0 0 22px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.resources-vnext .rd-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--teal-dark);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
}

.resources-vnext .rd-card-link span {
  transition: transform 0.18s ease;
}

.resources-vnext .rd-card-link:hover span {
  transform: translateX(3px);
}

.resources-vnext .rd-empty {
  padding: 56px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-xl);
  background: #fff;
  text-align: center;
}

.resources-vnext .rd-empty-icon {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 16px;
  background: var(--teal-50);
  color: var(--teal);
  font-size: 28px;
}

.resources-vnext .rd-empty h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 23px;
}

.resources-vnext .rd-empty p {
  margin: 0 auto 22px;
  color: var(--text-secondary);
}

/* Listing detail */
.resources-detail .rd-detail-hero {
  padding: 38px 0 54px;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(145deg, var(--teal-50), #fff 58%, var(--yellow-100));
}

.resources-detail .rd-detail-container {
  max-width: 920px;
}

.resources-detail .rd-detail-hero .rd-category {
  margin-bottom: 16px;
}

.resources-detail .rd-detail-hero h1 {
  max-width: 760px;
  margin: 0 0 14px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.12;
}

.resources-detail .rd-detail-hero p {
  max-width: 740px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.7;
}

.resources-detail .rd-detail-body {
  padding: 52px 0 88px;
}

.resources-detail .rd-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.7fr);
  align-items: start;
  gap: 28px;
}

.resources-detail .rd-content-card,
.resources-detail .rd-sidebar-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.resources-detail .rd-content-card {
  padding: 34px;
}

.resources-detail .rd-prose {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.85;
}

.resources-detail .rd-prose p {
  margin: 0 0 18px;
}

.resources-detail .rd-visit-btn {
  margin-top: 14px;
}

.resources-detail .rd-detail-sidebar {
  display: grid;
  gap: 18px;
}

.resources-detail .rd-sidebar-card {
  padding: 22px;
}

.resources-detail .rd-sidebar-card h2 {
  margin: 0 0 16px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
}

.resources-detail .rd-sidebar-card dl {
  margin: 0;
}

.resources-detail .rd-sidebar-card dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-light);
}

.resources-detail .rd-sidebar-card dt {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.resources-detail .rd-sidebar-card dd {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.resources-detail .rd-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.resources-detail .rd-sidebar-note {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.resources-detail .rd-more-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.resources-detail .rd-more-list li {
  border-bottom: 1px solid var(--border-light);
}

.resources-detail .rd-more-list li:last-child {
  border-bottom: none;
}

.resources-detail .rd-more-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.resources-detail .rd-more-list a:hover {
  color: var(--teal-dark);
}

/* Buyer listing management */
.resources-manage .rd-manage-wrap {
  min-height: 70vh;
  padding: 32px 0 88px;
}

.resources-manage .rd-manage-container {
  max-width: 1040px;
}

.resources-manage .rd-manage-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}

.resources-manage .rd-manage-header h1 {
  margin: 6px 0 6px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -1px;
}

.resources-manage .rd-manage-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.resources-manage .rd-quota-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding: 22px 24px;
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--teal-50), #fff);
}

.resources-manage .rd-quota-icon,
.resources-manage .rd-locked-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--teal);
  color: #fff;
  font-size: 26px;
}

.resources-manage .rd-quota-card span,
.resources-manage .rd-quota-card strong {
  display: block;
}

.resources-manage .rd-quota-card > div > span {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.resources-manage .rd-quota-card strong {
  margin: 2px 0;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 18px;
}

.resources-manage .rd-quota-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.resources-manage .rd-manage-section,
.resources-manage .rd-form-card,
.resources-manage .rd-locked-card {
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.resources-manage .rd-manage-section,
.resources-manage .rd-form-card {
  padding: 28px;
}

.resources-manage .rd-manage-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.resources-manage .rd-manage-section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 19px;
}

.resources-manage .rd-manage-section-heading > span {
  color: var(--text-muted);
  font-size: 12px;
}

.resources-manage .rd-submission-list {
  display: grid;
  gap: 12px;
}

.resources-manage .rd-submission-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-light);
}

.resources-manage .rd-submission-main h3 {
  margin: 7px 0 2px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 16px;
}

.resources-manage .rd-submission-url {
  display: block;
  max-width: 540px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resources-manage .rd-submission-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
}

.resources-manage .rd-submission-actions > a {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
}

.resources-manage .rd-status {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
}

.resources-manage .rd-status-0 {
  background: var(--yellow-100);
  color: #8a6a00;
}

.resources-manage .rd-status-1 {
  background: var(--teal-50);
  color: var(--teal-dark);
}

.resources-manage .rd-status-2,
.resources-manage .rd-status-3 {
  background: #fdf0f1;
  color: #b12f3c;
}

.resources-manage .rd-form-heading {
  max-width: 700px;
  margin-bottom: 24px;
}

.resources-manage .rd-form {
  display: grid;
  gap: 18px;
}

.resources-manage .rd-form-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 650;
}

.resources-manage .rd-form input,
.resources-manage .rd-form select,
.resources-manage .rd-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.resources-manage .rd-form textarea {
  min-height: 108px;
  resize: vertical;
}

.resources-manage .rd-form input:focus,
.resources-manage .rd-form select:focus,
.resources-manage .rd-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.12);
}

.resources-manage .rd-form-field.has-error input,
.resources-manage .rd-form-field.has-error select,
.resources-manage .rd-form-field.has-error textarea {
  border-color: #dc3545;
}

.resources-manage .rd-help,
.resources-manage .rd-error {
  display: block;
  margin-top: 5px;
  font-size: 12px;
}

.resources-manage .rd-help {
  color: var(--text-muted);
}

.resources-manage .rd-error {
  color: #b12f3c;
  font-weight: 600;
}

.resources-manage .rd-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 6px;
}

.resources-manage .rd-form-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

.resources-manage .rd-form-footer p span {
  color: var(--teal);
  font-weight: 800;
}

.resources-manage .rd-locked-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  padding: 34px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 214, 0, 0.13), transparent 35%),
    #fff;
}

.resources-manage .rd-locked-copy {
  max-width: 720px;
}

.resources-manage .rd-locked-copy > p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.resources-manage .rd-locked-copy ul {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  color: var(--text-secondary);
  font-size: 14px;
  list-style: none;
}

.resources-manage .rd-locked-copy li::before {
  margin-right: 9px;
  color: var(--teal);
  content: "✓";
  font-weight: 800;
}

@media (max-width: 900px) {
  .resources-public .rd-hero-grid,
  .resources-detail .rd-detail-layout {
    grid-template-columns: 1fr;
  }

  .resources-public .rd-hero-grid {
    gap: 38px;
  }

  .resources-public .rd-trust-card {
    max-width: 620px;
  }

  .resources-vnext .rd-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .resources-vnext .rd-container {
    width: min(100% - 32px, 1120px);
  }

  .resources-public .rd-hero {
    padding: 28px 0 52px;
  }

  .resources-public .rd-hero h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .resources-public .rd-hero-copy > p {
    font-size: 15px;
  }

  .resources-public .rd-directory {
    padding: 50px 0 66px;
  }

  .resources-vnext .rd-grid {
    grid-template-columns: 1fr;
  }

  .resources-vnext .rd-section-heading,
  .resources-manage .rd-manage-header,
  .resources-manage .rd-form-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .resources-vnext .rd-section-heading h2,
  .resources-vnext .rd-content-heading h2,
  .resources-vnext .rd-form-heading h2,
  .resources-vnext .rd-locked-copy h2 {
    font-size: 23px;
  }

  .resources-detail .rd-detail-hero {
    padding: 28px 0 40px;
  }

  .resources-detail .rd-detail-body {
    padding: 34px 0 60px;
  }

  .resources-detail .rd-content-card {
    padding: 24px;
  }

  .resources-manage .rd-manage-wrap {
    padding: 24px 0 64px;
  }

  .resources-manage .rd-manage-header h1 {
    font-size: 27px;
  }

  .resources-manage .rd-quota-card,
  .resources-manage .rd-submission-card {
    align-items: flex-start;
  }

  .resources-manage .rd-submission-card {
    flex-direction: column;
  }

  .resources-manage .rd-submission-actions {
    align-items: flex-start;
  }

  .resources-manage .rd-manage-section,
  .resources-manage .rd-form-card {
    padding: 22px;
  }

  .resources-manage .rd-locked-card {
    grid-template-columns: 1fr;
    padding: 26px;
  }
}

@media (max-width: 420px) {
  .resources-public .rd-hero-actions,
  .resources-public .rd-hero-actions .rd-btn,
  .resources-manage .rd-manage-header .rd-btn,
  .resources-manage .rd-form-footer .rd-btn {
    width: 100%;
  }

  .resources-manage .rd-quota-card {
    align-items: flex-start;
    flex-direction: column;
  }
}
