/* Second edition: reuse the existing navy and gold theme. */
.book-value-section .edition-stats-2027 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.edition-topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 2rem 0;
}
.edition-topic-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1rem;
  border: 1px solid rgba(184, 146, 76, .5);
  border-radius: 3px;
  color: inherit;
  font-size: .86rem;
  line-height: 1.5;
  text-decoration: none;
  text-align: center;
  transition: border-color .2s, background-color .2s;
}
.edition-topic-nav a:hover,
.edition-topic-nav a:focus-visible {
  border-color: #bb964f;
  background: rgba(184, 146, 76, .12);
  outline-offset: 4px;
}
.book-value-section .edition-focus article[id] {
  scroll-margin-top: 7rem;
}
.edition-comparison { margin: 3rem 0; }
.edition-comparison h3 { margin-bottom: 1.5rem; }
.edition-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(184, 146, 76, .4);
  border-radius: 4px;
}
.edition-table-wrap:focus-visible { outline: 2px solid #bb964f; outline-offset: 4px; }
.edition-table-wrap table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  text-align: left;
  font-size: .9rem;
  line-height: 1.6;
}
.edition-table-wrap caption { text-align: left; padding: 1rem; font-weight: 600; }
.edition-table-wrap th,
.edition-table-wrap td { padding: .85rem 1rem; border-top: 1px solid rgba(184, 146, 76, .25); vertical-align: top; }
.edition-table-wrap thead th { background: rgba(184, 146, 76, .12); font-weight: 600; }
.edition-table-wrap tbody th { width: 40%; font-weight: 500; }
.edition-table-wrap tbody td:last-child { font-weight: 600; }
.edition-table-wrap tbody tr:nth-child(even) { background: rgba(184, 146, 76, .04); }
@media (max-width: 760px) {
  .book-value-section .edition-stats-2027 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edition-topic-nav a { flex: 1 1 calc(50% - .65rem); padding: .65rem .75rem; font-size: .8rem; }
  .edition-table-wrap th, .edition-table-wrap td { padding: .7rem .8rem; }
}

/* The second-edition video is vertical. */
.book-promo-video-frame {
  width: min(100%, 270px);
  justify-self: center;
}
.book-promo-video-frame video {
  aspect-ratio: 9 / 16;
}
