/* 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;
}

/* Keep long contributor award lists compact while leaving every award reachable. */
.bp-awards-list-scroll {
  max-height: 320px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
  scrollbar-color: #92af2b #eef3df;
  scrollbar-width: thin;
}

.bp-awards-list-scroll::-webkit-scrollbar {
  width: 10px;
}

.bp-awards-list-scroll::-webkit-scrollbar-track {
  border-left: 1px solid #dce1e5;
  border-radius: 999px;
  background: #f5f7ef;
}

.bp-awards-list-scroll::-webkit-scrollbar-thumb {
  border: 2px solid #f5f7ef;
  border-radius: 999px;
  background: linear-gradient(180deg, #a8c832 0%, #718c1f 100%);
}

.bp-awards-list-scroll::-webkit-scrollbar-thumb:hover {
  background: #637b18;
}

body.print-mode .bp-awards-list-scroll {
  max-height: none !important;
  overflow: visible !important;
  padding-right: 0;
}

body.print-mode .bio-note-content {
  max-height: none !important;
  overflow: visible !important;
}

body.print-mode .bio-note-toggle-wrapper {
  display: none !important;
}

@media print {
  .bp-awards-list-scroll {
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0;
  }

  .bio-note-content {
    max-height: none !important;
    overflow: visible !important;
  }

  .bio-note-toggle-wrapper {
    display: none !important;
  }
}

.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-list-scroll {
  scrollbar-color: #a8c832 #252a24;
}

body.threads-dark-mode .bp-awards-list-scroll::-webkit-scrollbar-track {
  border-left-color: #3d444b;
  background: #252a24;
}

body.threads-dark-mode .bp-awards-list-scroll::-webkit-scrollbar-thumb {
  border-color: #252a24;
  background: linear-gradient(180deg, #c2dc61 0%, #7d9d23 100%);
}

body.threads-dark-mode .bp-awards-list-scroll::-webkit-scrollbar-thumb:hover {
  background: #dff28f;
}

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%;
  }
}

/* Award detail page ------------------------------------------------------ */
.bp-award-page-section {
  padding-top: 24px !important;
  padding-bottom: 48px !important;
  background: #fbfcfd;
}

.bp-award-page-layout {
  align-items: flex-start;
  row-gap: 24px;
}

.bp-award-sidebar {
  min-width: 0;
}

.bp-award-sidebar-card {
  position: sticky;
  top: 20px;
  overflow: hidden;
  border: 1px solid #dce1e5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(2, 36, 84, 0.05);
}

.bp-award-sidebar-detail {
  padding: 16px 17px;
  color: #2b3035;
  font-size: 14px;
  line-height: 1.45;
}

.bp-award-sidebar-detail + .bp-award-sidebar-detail {
  border-top: 1px solid #e7eaed;
}

.bp-award-sidebar-label {
  display: block;
  margin-bottom: 5px;
  color: #6d747b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.bp-award-same-category h2 {
  margin: 0 0 10px;
  color: #022454;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.bp-award-sidebar-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bp-award-sidebar-list li {
  padding: 6px 0;
  color: #5e666e;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.bp-award-sidebar-list li + li {
  border-top: 1px solid #f0f2f3;
}

.bp-award-sidebar-list a {
  color: #304d73;
}

.bp-award-sidebar-list a:hover,
.bp-award-sidebar-list a:focus {
  color: #637b18;
}

.bp-award-sidebar-list .is-current {
  color: #637b18;
}

.bp-award-main {
  min-width: 0;
}

.bp-award-hero {
  margin-bottom: 22px;
  padding: 4px 0 20px 18px;
  border-bottom: 1px solid #dce1e5;
  border-left: 4px solid #92af2b;
}

.bp-award-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #637b18;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bp-award-eyebrow-icon {
  display: inline-flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef3df;
  font-size: 14px;
}

.bp-award-title {
  margin: 8px 0 0;
  color: #022454;
  font-family: "Roboto", sans-serif;
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.bp-award-original-name {
  margin-top: 7px;
  color: #6d747b;
  font-size: 16px;
  line-height: 1.35;
}

.bp-award-description {
  max-width: 75ch;
  margin-top: 14px;
  color: #4f575f;
  font-size: 14px;
  line-height: 1.65;
}

.bp-award-content-section {
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid #dce1e5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(2, 36, 84, 0.045);
}

.bp-award-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid #e1e5e8;
  background: linear-gradient(90deg, #f8faf3 0%, #ffffff 78%);
}

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

.bp-award-section-heading h2 {
  margin: 0;
  color: #022454;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.bp-award-section-heading div > span {
  display: block;
  margin-top: 2px;
  color: #6d747b;
  font-size: 12px;
  line-height: 1.3;
}

.bp-award-people-list {
  padding: 2px 16px 8px;
}

.bp-award-people-year {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
}

.bp-award-people-year + .bp-award-people-year {
  border-top: 1px solid #edf0f2;
}

.bp-award-year-pill {
  display: inline-flex;
  min-width: 48px;
  min-height: 24px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 12px;
  background: #eef3df;
  color: #506414;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
}

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

.bp-award-person-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
  font-size: 14px;
  line-height: 1.4;
}

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

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

.bp-award-page-section .bp-award-achievement {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 10px;
  background: #f1f4f6;
  color: #68717a;
  font-size: 11px;
  line-height: 1.3;
}

.bp-award-books-list {
  padding: 0 16px 4px;
}

.bp-award-year-group + .bp-award-year-group {
  border-top: 1px solid #304d73;
}

.bp-award-book-columns {
  display: grid;
  grid-template-columns: minmax(6rem, 0.6fr) minmax(9rem, 1.15fr) minmax(12rem, 2fr) minmax(9rem, 1.25fr);
  gap: 12px;
  margin-top: 9px;
  padding: 0 16px 5px;
  border-bottom: 1px solid #edf0f2;
}

.bp-award-book-columns span {
  color: #7a8289;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.bp-award-book-item {
  display: grid;
  grid-template-columns: minmax(6rem, 0.6fr) minmax(9rem, 1.15fr) minmax(12rem, 2fr) minmax(9rem, 1.25fr);
  gap: 12px;
  padding: 10px 0;
}

.bp-award-book-item + .bp-award-book-item {
  border-top: 1px solid #edf0f2;
}

.bp-award-book-item.is-winner {
  background: transparent;
}

.bp-award-book-field {
  min-width: 0;
}

.bp-award-book-award-year {
  color: #637b18;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.bp-award-book-value {
  display: block;
  color: #2b3035;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.bp-award-book-link {
  color: #304d73;
  font-weight: 700;
}

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

.bp-award-book-title-line {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.bp-award-book-achievement {
  display: inline-flex;
  padding: 1px 6px;
  border: 1px solid #b8cbe0;
  border-radius: 999px;
  background: #edf3fa;
  color: #304d73;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

body.threads-dark-mode .bp-award-page-section {
  background: #121212;
}

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

body.threads-dark-mode .bp-award-sidebar-detail + .bp-award-sidebar-detail,
body.threads-dark-mode .bp-award-people-year + .bp-award-people-year,
body.threads-dark-mode .bp-award-book-item + .bp-award-book-item {
  border-top-color: #343a40;
}

body.threads-dark-mode .bp-award-year-group + .bp-award-year-group {
  border-top-color: #a8c832;
}

body.threads-dark-mode .bp-award-sidebar-detail,
body.threads-dark-mode .bp-award-book-value {
  color: #d2d6d9;
}

body.threads-dark-mode .bp-award-sidebar-label,
body.threads-dark-mode .bp-award-original-name,
body.threads-dark-mode .bp-award-description,
body.threads-dark-mode .bp-award-book-columns span {
  color: #aeb5ba;
}

body.threads-dark-mode .bp-award-same-category h2,
body.threads-dark-mode .bp-award-title,
body.threads-dark-mode .bp-award-section-heading h2 {
  color: #e5ebd0;
}

body.threads-dark-mode .bp-award-sidebar-list li {
  color: #bdc3c8;
}

body.threads-dark-mode .bp-award-sidebar-list li + li {
  border-top-color: #343a40;
}

body.threads-dark-mode .bp-award-sidebar-list a,
body.threads-dark-mode .bp-award-person-item a,
body.threads-dark-mode .bp-award-book-link {
  color: #c9df73;
}

body.threads-dark-mode .bp-award-sidebar-list a:hover,
body.threads-dark-mode .bp-award-sidebar-list a:focus,
body.threads-dark-mode .bp-award-person-item a:hover,
body.threads-dark-mode .bp-award-person-item a:focus,
body.threads-dark-mode .bp-award-book-link:hover,
body.threads-dark-mode .bp-award-book-link:focus {
  color: #dff28f;
}

body.threads-dark-mode .bp-award-sidebar-list .is-current {
  color: #c2dc61;
}

body.threads-dark-mode .bp-award-hero {
  border-bottom-color: #3d444b;
  border-left-color: #a8c832;
}

body.threads-dark-mode .bp-award-eyebrow {
  color: #c2dc61;
}

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

body.threads-dark-mode .bp-award-section-heading {
  border-bottom-color: #3d444b;
  background: linear-gradient(90deg, #24291e 0%, #202020 78%);
}

body.threads-dark-mode .bp-award-book-columns {
  border-bottom-color: #343a40;
}

body.threads-dark-mode .bp-award-book-award-year {
  color: #c2dc61;
}

body.threads-dark-mode .bp-award-book-item.is-winner {
  background: transparent;
}

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

body.threads-dark-mode .bp-award-page-section .bp-award-achievement {
  background: #30343a;
  color: #bdc3c8;
}

body.threads-dark-mode .bp-award-book-achievement {
  border-color: #718b38;
  background: #303b25;
  color: #c9df73;
}

@media (max-width: 767px) {
  .bp-award-page-section {
    padding-top: 16px !important;
    padding-bottom: 34px !important;
  }

  .bp-award-sidebar-card {
    position: static;
  }

  .bp-award-main {
    padding-top: 2px;
  }

  .bp-award-book-item {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 13px 16px;
  }

  .bp-award-book-columns {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 7px 16px;
  }

  .bp-award-book-columns span:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .bp-award-book-columns span:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .bp-award-book-columns span:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .bp-award-book-columns span:nth-child(4) {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .bp-award-book-award-year {
    grid-column: 1;
    grid-row: 1;
  }

  .bp-award-book-author {
    grid-column: 2;
    grid-row: 1;
  }

  .bp-award-book-title-field {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .bp-award-book-publisher {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

@media (max-width: 480px) {
  .bp-award-hero {
    padding-left: 13px;
  }

  .bp-award-section-heading,
  .bp-award-people-list,
  .bp-award-books-list {
    padding-left: 12px;
    padding-right: 12px;
  }

  .bp-award-people-year {
    gap: 9px;
  }

  .bp-award-person-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .bp-award-book-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bp-award-book-columns {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .bp-award-book-columns span:nth-child(1),
  .bp-award-book-columns span:nth-child(2),
  .bp-award-book-columns span:nth-child(3),
  .bp-award-book-columns span:nth-child(4) {
    grid-column: 1;
    grid-row: auto;
  }

  .bp-award-book-title-field,
  .bp-award-book-award-year,
  .bp-award-book-author,
  .bp-award-book-publisher {
    grid-column: 1;
    grid-row: auto;
    text-align: left;
  }
}
