/* Shared award list for contributor and book detail pages */
.bp-awards-section {
  margin: 20px 0 22px;
  overflow: hidden;
  border: 1px solid #dce1e5;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(2, 36, 84, 0.06);
}

.bp-awards-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border-bottom: 1px solid #e1e5e8;
  border-left: 4px solid #92af2b;
  background: linear-gradient(90deg, #f8faf3 0%, #ffffff 72%);
}

.bp-awards-header-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(146, 175, 43, 0.14);
  color: #637b18;
  font-size: 17px;
}

.bp-awards-heading-copy {
  min-width: 0;
}

.bp-awards-title {
  margin: 0;
  color: #022454;
  font-family: "Roboto", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.bp-awards-count {
  display: block;
  margin-top: 2px;
  color: #6d747b;
  font-size: 12px;
  line-height: 1.3;
}

.bp-award-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #edf0f2;
  background: #ffffff;
  transition: background-color 0.16s ease;
}

.bp-award-item:last-child {
  border-bottom: 0;
}

.bp-award-item:hover {
  background: #f8faf3;
}

.bp-award-content {
  min-width: 0;
  flex: 1 1 auto;
}

.bp-award-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.bp-award-link {
  min-width: 0;
  color: #022454;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.bp-award-link:hover,
.bp-award-link:focus {
  color: #637b18;
  text-decoration: underline;
}

.bp-award-link:focus-visible {
  outline: 2px solid #92af2b;
  outline-offset: 2px;
}

.bp-award-year {
  display: inline-flex;
  min-height: 22px;
  flex: 0 0 auto;
  align-items: center;
  padding: 1px 8px;
  border-radius: 12px;
  background: #eef3df;
  color: #506414;
  font-size: 12px;
  font-weight: 700;
  line-height: 19px;
}

.bp-award-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: #666e75;
  font-size: 13px;
  line-height: 1.4;
}

.bp-award-category {
  color: #666e75;
}

.bp-award-meta-separator {
  color: #9aa0a5;
}

.bp-award-achievement {
  color: #304d73;
  font-weight: 600;
}

.bp-award-source {
  display: flex;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 4px 7px;
  border-left: 3px solid #92af2b;
  border-radius: 3px;
  background: #f5f7ef;
  color: #5f6870;
  font-size: 12px;
  line-height: 1.4;
}

.bp-award-source > i {
  color: #637b18;
}

.bp-award-source-label {
  font-weight: 600;
}

.bp-award-source-link {
  min-width: 0;
  color: #304d73;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.bp-award-source-link:hover,
.bp-award-source-link:focus {
  color: #637b18;
  text-decoration: underline;
}

body.threads-dark-mode .bp-awards-section {
  border-color: #3d444b;
  background: #1e1e1e;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

body.threads-dark-mode .bp-awards-header {
  border-bottom-color: #3d444b;
  border-left-color: #a8c832;
  background: linear-gradient(90deg, #24291e 0%, #202020 72%);
}

body.threads-dark-mode .bp-awards-header-icon {
  background: rgba(168, 200, 50, 0.14);
  color: #c2dc61;
}

body.threads-dark-mode .bp-awards-section .bp-awards-title {
  color: #e5ebd0;
}

body.threads-dark-mode .bp-awards-section .bp-awards-count {
  color: #aeb5ba;
}

body.threads-dark-mode .bp-award-item {
  border-bottom-color: #343a40;
  background: #1e1e1e;
}

body.threads-dark-mode .bp-award-item:hover {
  background: #252a24;
}

body.threads-dark-mode .bp-awards-section .bp-award-link {
  color: #c9df73;
}

body.threads-dark-mode .bp-awards-section .bp-award-link:hover,
body.threads-dark-mode .bp-awards-section .bp-award-link:focus {
  color: #dff28f;
}

body.threads-dark-mode .bp-awards-section .bp-award-year {
  background: #343c24;
  color: #d6e99a;
}

body.threads-dark-mode .bp-awards-section .bp-award-category {
  color: #bdc3c8;
}

body.threads-dark-mode .bp-awards-section .bp-award-meta-separator {
  color: #777f86;
}

body.threads-dark-mode .bp-awards-section .bp-award-achievement {
  color: #aebfd3;
}

body.threads-dark-mode .bp-awards-section .bp-award-source {
  border-left-color: #a8c832;
  background: #292d25;
  color: #b8bec3;
}

body.threads-dark-mode .bp-awards-section .bp-award-source > i {
  color: #c2dc61;
}

body.threads-dark-mode .bp-awards-section .bp-award-source-link {
  color: #c9df73;
}

body.threads-dark-mode .bp-awards-section .bp-award-source-link:hover,
body.threads-dark-mode .bp-awards-section .bp-award-source-link:focus {
  color: #dff28f;
}

@media (max-width: 575px) {
  .bp-awards-section {
    margin: 16px 0 19px;
  }

  .bp-awards-header {
    padding: 10px 11px;
  }

  .bp-award-item {
    gap: 8px;
    padding: 10px 11px;
  }

  .bp-award-title-row {
    display: block;
  }

  .bp-award-year {
    margin-top: 6px;
  }

  .bp-award-source {
    width: 100%;
  }
}
