/* =====================================================
   MedDev Advisory - Books Library and Publication Pages
   Extends the established navy / teal knowledge-library system.
   ===================================================== */

.books-page-header .container {
  max-width: 900px;
}

.books-page-header p {
  max-width: 760px;
}

.publication-breadcrumb-wrap {
  position: relative;
  z-index: 2;
  margin-top: -56px;
  margin-bottom: 30px;
}

@media (max-width: 620px) {
  .publication-breadcrumb-wrap {
    margin-top: -32px;
    margin-bottom: 24px;
  }
}

.publication-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.5;
}

.publication-breadcrumb a {
  color: #baf5ef;
  text-decoration: underline;
  text-decoration-color: rgba(0, 180, 166, 0.58);
  text-underline-offset: 3px;
}

.publication-breadcrumb a:hover,
.publication-breadcrumb a:focus-visible {
  color: var(--white);
}

.publication-breadcrumb i {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.62rem;
}

.books-library {
  background: var(--light-bg);
}

.books-library-head {
  max-width: 780px;
  margin: 0 auto 44px;
  text-align: center;
}

.books-library-head .section-subtitle {
  margin-bottom: 0;
}

.books-grid {
  display: grid;
  gap: 28px;
}

.book-library-card {
  display: grid;
  grid-template-columns: minmax(190px, 270px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 62px);
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(10, 35, 66, 0.12);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 18px 44px rgba(10, 35, 66, 0.09);
}

.book-library-card:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(190px, 270px);
}

.book-library-card:nth-child(even) .book-library-cover {
  order: 2;
}

.book-library-cover {
  width: min(100%, 270px);
  margin-inline: auto;
  padding: 9px;
  border: 1px solid rgba(10, 35, 66, 0.12);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 20px 40px rgba(10, 35, 66, 0.2);
}

.book-library-cover img {
  width: 100%;
  border-radius: 6px;
}

.book-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.4;
  text-transform: uppercase;
}

.book-status.is-development {
  color: #765b0f;
}

.book-library-card h2 {
  max-width: 780px;
  margin-bottom: 14px;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
}

.book-library-card p {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: 0.96rem;
  line-height: 1.75;
}

.book-library-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.book-library-facts span {
  padding: 7px 11px;
  border: 1px solid rgba(30, 95, 168, 0.16);
  border-radius: 999px;
  background: #edf4fb;
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 700;
}

.book-library-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.books-compare-wrap,
.publication-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.books-compare-wrap:focus-visible,
.publication-table-wrap:focus-visible {
  outline: 3px solid rgba(0, 180, 166, 0.42);
  outline-offset: 3px;
}

.books-compare,
.publication-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.books-compare th,
.books-compare td,
.publication-table th,
.publication-table td {
  padding: 17px 19px;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  font-size: 0.88rem;
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
}

.books-compare th,
.publication-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
}

.books-compare td:first-child,
.publication-table td:first-child {
  color: var(--navy);
  font-weight: 700;
}

.books-compare tr:last-child td,
.publication-table tr:last-child td {
  border-bottom: 0;
}

/* Publication pages intentionally reuse the Book 1 hero anatomy. */
.publication-page .handbook-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.95rem);
}

.publication-page .handbook-proof-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.publication-page .handbook-section-head {
  max-width: 880px;
}

.publication-prose {
  max-width: 860px;
  margin-inline: auto;
}

.publication-prose > p,
.publication-prose .publication-copy p {
  margin-bottom: 1.15em;
  color: var(--text-mid);
  font-size: 0.98rem;
  line-height: 1.82;
  text-align: left;
}

.publication-prose h3 {
  margin: 30px 0 12px;
  font-size: 1.22rem;
}

.publication-answer {
  margin-bottom: 28px;
  padding: 22px 24px;
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #edf7f6;
}

.publication-answer p {
  margin: 0;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.7;
}

.publication-outcomes,
.publication-cases,
.publication-fit-grid,
.publication-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.publication-outcome,
.publication-case,
.publication-fit,
.publication-status-card {
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.publication-outcome h3,
.publication-case h3,
.publication-fit h3,
.publication-status-card h3 {
  margin: 0 0 10px;
  font-size: 1.06rem;
}

.publication-outcome p,
.publication-case p,
.publication-fit p,
.publication-status-card p {
  margin: 0;
  color: var(--text-mid);
  font-size: 0.89rem;
  line-height: 1.67;
}

.publication-toc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.publication-toc-part {
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
}

.publication-toc-part h3 {
  margin-bottom: 15px;
  color: var(--white);
  font-size: 1.08rem;
}

.publication-toc-part ol {
  padding-left: 1.35rem;
  color: rgba(255, 255, 255, 0.76);
}

.publication-toc-part li {
  margin-bottom: 9px;
  padding-left: 4px;
  font-size: 0.86rem;
  line-height: 1.55;
}

.publication-source-list,
.publication-boundary-list {
  display: grid;
  gap: 11px;
  margin-top: 20px;
}

.publication-source-list li,
.publication-boundary-list li {
  position: relative;
  padding-left: 25px;
  color: var(--text-mid);
  font-size: 0.91rem;
  line-height: 1.65;
}

.publication-source-list li::before,
.publication-boundary-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal-dark);
  font-weight: 800;
}

.publication-source-list a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.publication-faq {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin-inline: auto;
}

.publication-faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.publication-faq summary {
  cursor: pointer;
  padding: 18px 21px;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.45;
}

.publication-faq details p {
  padding: 0 21px 20px;
  color: var(--text-mid);
  font-size: 0.91rem;
  line-height: 1.7;
}

.publication-cta {
  padding: 46px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 92% 18%, rgba(0, 180, 166, 0.22), transparent 34%),
    var(--navy);
  text-align: center;
}

.publication-cta h2 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.publication-cta p {
  max-width: 700px;
  margin: 0 auto 23px;
  color: rgba(255, 255, 255, 0.75);
}

.publication-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 900px) {
  .book-library-card,
  .book-library-card:nth-child(even) {
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
    gap: 28px;
  }

  .book-library-card:nth-child(even) .book-library-cover {
    order: 0;
  }

  .publication-page .handbook-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .book-library-card,
  .book-library-card:nth-child(even),
  .publication-outcomes,
  .publication-cases,
  .publication-fit-grid,
  .publication-status-grid,
  .publication-toc {
    grid-template-columns: 1fr;
  }

  .book-library-card {
    padding: 24px;
  }

  .book-library-cover {
    width: min(72vw, 255px);
  }

  .publication-cta {
    padding: 34px 22px;
  }
}

@media (max-width: 480px) {
  .book-library-actions .btn,
  .publication-cta-actions .btn,
  .publication-page .handbook-hero-actions .btn {
    width: 100%;
  }

  .publication-page .handbook-proof-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   Professional five-book family — September 2026
   One editorial system for the library hub and all titles.
   ===================================================== */

.book-family-page {
  --book-ink: #071a31;
  --book-navy: #0a2342;
  --book-blue: #173f6b;
  --book-teal: #00a99d;
  --book-paper: #f5f8fb;
  --book-rule: rgba(10, 35, 66, 0.14);
  background: var(--white);
}

.book-family-page .handbook-section.dark .tag {
  border-color: rgba(0, 207, 192, 0.42);
  background: rgba(0, 180, 166, 0.16);
  color: #b9f8f2;
}

.book-family-page .handbook-hero {
  padding-bottom: 96px;
  background:
    radial-gradient(circle at 84% 18%, rgba(0, 180, 166, 0.17), transparent 28%),
    radial-gradient(circle at 10% 92%, rgba(30, 95, 168, 0.17), transparent 31%),
    linear-gradient(132deg, #06172c 0%, #0a2342 54%, #0e3154 100%);
}

.book-family-page .handbook-hero::before {
  opacity: 0.62;
  background-size: 64px 64px;
}

.book-family-page .handbook-hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.62);
  color: var(--white);
}

.book-family-page .handbook-hero .btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.book-family-page .handbook-hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.7fr);
  gap: clamp(50px, 7vw, 96px);
}

.book-family-page .handbook-hero h1 {
  max-width: 850px;
  margin-top: 22px;
  font-size: clamp(2.45rem, 4.8vw, 4.45rem);
  line-height: 1.06;
  text-wrap: balance;
}

.book-family-page.publication-page .handbook-hero h1 {
  font-size: clamp(2.35rem, 4.45vw, 4.15rem);
}

.book-family-page .handbook-hero-lead {
  max-width: 790px;
  font-size: clamp(1.03rem, 1.4vw, 1.18rem);
  line-height: 1.78;
}

.book-family-page .handbook-cover-wrap {
  width: min(100%, 380px);
  padding: 12px;
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 44px 86px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset;
  backdrop-filter: blur(14px);
}

.book-family-page .handbook-cover-wrap img {
  border-radius: 5px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.book-family-page .handbook-meta {
  max-width: 790px;
}

.book-family-page .handbook-proof {
  box-shadow: 0 16px 42px rgba(10, 35, 66, 0.07);
}

.book-family-page .handbook-proof-grid,
.book-family-page.publication-page .handbook-proof-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.book-family-page .handbook-proof-item {
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.book-family-page .handbook-proof-item strong {
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(1.15rem, 1.75vw, 1.48rem);
}

.book-family-page .handbook-section-head,
.book-family-page .books-library-head {
  max-width: 900px;
  margin-right: auto;
  margin-left: 0;
  text-align: left;
}

.book-family-page .handbook-section-head .divider {
  margin-left: 0;
}

.book-family-page .handbook-section-head .section-subtitle,
.book-family-page .books-library-head .section-subtitle {
  max-width: 790px;
  margin-right: 0;
  margin-left: 0;
}

.book-family-page .handbook-outcome-card,
.book-family-page .handbook-package-card,
.book-family-page .handbook-fit-card,
.book-family-page .handbook-compare-card,
.book-family-page .publication-case,
.book-family-page .publication-fit,
.book-family-page .publication-status-card {
  border-color: rgba(10, 35, 66, 0.11);
  box-shadow: 0 14px 34px rgba(10, 35, 66, 0.07);
}

.book-family-page .handbook-outcome-card,
.book-family-page .publication-case,
.book-family-page .publication-fit,
.book-family-page .publication-status-card {
  position: relative;
  overflow: hidden;
}

.book-family-page .handbook-outcome-card::after,
.book-family-page .publication-case::after,
.book-family-page .publication-fit::after,
.book-family-page .publication-status-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--book-teal), transparent 72%);
  opacity: 0.72;
}

.book-family-page .handbook-part {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}

.book-family-page .handbook-part summary {
  min-height: 96px;
}

.book-family-page .handbook-part[open] {
  border-color: rgba(0, 180, 166, 0.48);
  background: rgba(255, 255, 255, 0.085);
}

.book-family-page .handbook-gallery figure {
  border-color: rgba(10, 35, 66, 0.12);
  box-shadow: 0 24px 54px rgba(10, 35, 66, 0.13);
}

.book-family-page .handbook-gallery figcaption {
  min-height: 80px;
  background: var(--white);
}

.book-family-page .handbook-gallery-four figure:last-child {
  grid-column: auto;
}

.book-family-page .handbook-gallery-four figure:last-child img {
  height: min(58vw, 620px);
}

.publication-preview-hold {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  max-width: 890px;
  padding: 26px 28px;
  border: 1px solid rgba(30, 95, 168, 0.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #edf4fb, #f8fbfd);
}

.publication-preview-hold > i {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 18px;
  background: var(--navy);
  color: var(--teal);
  font-size: 1.5rem;
}

.publication-preview-hold h3 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 1.14rem;
}

.publication-preview-hold p {
  margin: 0;
  color: var(--text-mid);
  font-size: 0.91rem;
  line-height: 1.68;
}

.book-family-page .publication-prose > p,
.book-family-page .publication-prose .publication-copy p,
.book-family-page .handbook-author-copy p,
.book-family-page .publication-cta p,
.book-family-page .handbook-final-card > p {
  text-align: left;
}

.book-family-page .publication-answer {
  padding: 24px 28px;
  border-left-width: 5px;
  background: linear-gradient(90deg, #e8f7f5 0%, #f5fbfa 100%);
}

.book-family-page .publication-faq {
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 15px;
}

.book-family-page .publication-faq details {
  border-radius: var(--radius-lg);
}

.book-family-page .publication-faq summary {
  position: relative;
  padding: 20px 50px 20px 21px;
  list-style: none;
}

.book-family-page .publication-faq summary::-webkit-details-marker {
  display: none;
}

.book-family-page .publication-faq summary::after {
  content: "+";
  position: absolute;
  top: 17px;
  right: 19px;
  color: var(--teal-dark);
  font-size: 1.25rem;
  font-weight: 400;
}

.book-family-page .publication-faq details[open] summary::after {
  content: "−";
}

.book-family-page .publication-status-card:first-child {
  border-top: 4px solid var(--teal);
}

.book-family-page .publication-status-card:last-child {
  border-top: 4px solid #d4a62a;
}

.book-family-page .publication-cta {
  padding: clamp(38px, 6vw, 66px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  box-shadow: 0 26px 64px rgba(10, 35, 66, 0.22);
}

.book-family-page .publication-cta h2,
.book-family-page .publication-cta p {
  max-width: 810px;
  margin-right: auto;
  margin-left: auto;
}

.book-family-page .publication-cta p {
  text-align: center;
}

/* Shared author and governance treatment for every title. */
.book-family-page .handbook-author-grid {
  align-items: stretch;
}

.book-family-page .handbook-author-photo {
  align-self: center;
  border: 8px solid var(--white);
  box-shadow: 0 24px 52px rgba(10, 35, 66, 0.2);
}

.book-family-page .handbook-source-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 24px 52px rgba(10, 35, 66, 0.16);
}

/* Related titles sit at the end of each publication page. */
.book-series-section {
  background: var(--book-paper);
}

.book-series-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.book-series-shelf-related {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
  margin-inline: auto;
}

.book-series-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--book-rule);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(10, 35, 66, 0.07);
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.book-series-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 169, 157, 0.42);
  box-shadow: 0 20px 44px rgba(10, 35, 66, 0.12);
}

.book-series-card[aria-current="page"] {
  border-color: rgba(0, 169, 157, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.09), 0 18px 40px rgba(10, 35, 66, 0.1);
}

.book-series-card img {
  display: block;
  width: 84px;
  aspect-ratio: 0.707;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 10px 22px rgba(10, 35, 66, 0.22);
}

.book-series-number {
  display: block;
  margin-bottom: 6px;
  color: var(--teal-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-series-card h3 {
  margin: 0 0 7px;
  color: var(--navy);
  font-family: "Merriweather", Georgia, serif;
  font-size: 0.96rem;
  line-height: 1.38;
}

.book-series-card p {
  margin: 0;
  color: var(--text-mid);
  font-size: 0.78rem;
  line-height: 1.52;
}

.book-series-card .book-series-status {
  display: block;
  margin-top: 9px;
  color: var(--navy);
  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1.4;
}

/* Premium library hub. */
.books-hero {
  position: relative;
  overflow: hidden;
  padding: 152px 0 96px;
  background:
    radial-gradient(circle at 82% 18%, rgba(0, 180, 166, 0.2), transparent 29%),
    radial-gradient(circle at 12% 90%, rgba(30, 95, 168, 0.18), transparent 32%),
    linear-gradient(132deg, #06172c 0%, #0a2342 54%, #0e3154 100%);
}

.books-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.books-hero .handbook-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid rgba(0, 180, 166, 0.42);
  border-radius: 999px;
  background: rgba(0, 180, 166, 0.13);
  color: #b9f8f2;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.35;
  text-transform: uppercase;
}

.books-hero .handbook-eyebrow i {
  color: var(--teal);
}

.books-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.82fr);
  gap: clamp(50px, 7vw, 92px);
  align-items: center;
}

.books-hero h1 {
  max-width: 760px;
  margin: 22px 0 18px;
  color: var(--white);
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(2.55rem, 4.3vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.books-hero-lead {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  line-height: 1.76;
}

.books-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 27px;
}

.books-hero-covers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  align-items: end;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 34px 76px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
}

.books-hero-covers--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.books-hero-covers.books-hero-covers--five > .books-hero-cover {
  transform: none;
}

.books-hero-covers--five > .books-hero-cover:nth-child(2),
.books-hero-covers--five > .books-hero-cover:nth-child(4) {
  margin-block-end: 10px;
}

.books-hero-covers--five > .books-hero-cover:nth-child(3) {
  margin-block-end: 18px;
}

.books-hero-cover {
  min-width: 0;
  transition: transform 0.22s ease;
}

.books-hero-cover:nth-child(2),
.books-hero-cover:nth-child(3) {
  transform: translateY(-14px);
}

.books-hero-cover:hover {
  transform: translateY(-7px);
}

.books-hero-cover:nth-child(2):hover,
.books-hero-cover:nth-child(3):hover {
  transform: translateY(-20px);
}

.books-hero-covers--five > .books-hero-cover:hover {
  transform: translateY(-7px);
}

.books-hero-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 0.707;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
}

.books-library-premium {
  background: var(--book-paper);
}

.books-library-premium .book-library-card {
  border-color: rgba(10, 35, 66, 0.11);
  border-radius: 22px;
  box-shadow: 0 22px 54px rgba(10, 35, 66, 0.09);
}

.books-library-premium .book-library-card h2 {
  line-height: 1.2;
  text-wrap: balance;
}

.books-library-premium .book-library-cover {
  padding: 8px;
  border-radius: 10px;
  box-shadow: 0 26px 54px rgba(10, 35, 66, 0.24);
}

.books-library-premium .book-library-cover img {
  border-radius: 4px;
}

.books-promise {
  background: var(--white);
}

.books-promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.books-promise-item {
  padding: 26px 0 4px;
  border-top: 3px solid var(--teal);
}

.books-promise-item strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.08rem;
}

.books-promise-item p {
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.68;
}

@media (max-width: 1080px) {
  .book-family-page .handbook-hero-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .book-family-page .handbook-proof-grid,
  .book-family-page.publication-page .handbook-proof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .book-family-page .handbook-proof-item:nth-child(4),
  .book-family-page .handbook-proof-item:nth-child(5) {
    grid-column: auto;
  }

  .book-series-shelf {
    grid-template-columns: 1fr;
  }

  .books-hero-grid {
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 44px;
  }
}

@media (max-width: 820px) {
  .book-family-page .handbook-hero-grid,
  .books-hero-grid {
    grid-template-columns: 1fr;
  }

  .book-family-page .handbook-hero-copy {
    display: contents;
  }

  .book-family-page .handbook-eyebrow { order: 1; }
  .book-family-page .handbook-hero h1 { order: 2; }
  .book-family-page .handbook-hero-byline { order: 3; }
  .book-family-page .handbook-cover-wrap { order: 4; }
  .book-family-page .handbook-hero-lead { order: 5; }
  .book-family-page .handbook-hero-price { order: 6; }
  .book-family-page .handbook-hero-actions { order: 7; }
  .book-family-page .handbook-assurance-list { order: 8; }
  .book-family-page .handbook-hero-note { order: 9; }
  .book-family-page .handbook-meta { order: 10; }

  .book-family-page .handbook-cover-wrap {
    width: min(72vw, 360px);
    margin-block: 8px 12px;
  }

  .books-hero-covers {
    width: min(100%, 520px);
    margin-inline: auto;
  }

  .book-family-page .publication-faq {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .books-hero {
    padding: 126px 0 72px;
  }

  .books-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.55rem);
  }

  .books-promise-grid {
    grid-template-columns: 1fr;
  }

  .publication-preview-hold {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .book-family-page .handbook-proof-grid,
  .book-family-page.publication-page .handbook-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book-family-page .handbook-proof-item:last-child {
    grid-column: 1 / -1;
  }

  .book-series-card {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 17px;
  }

  .book-series-card img {
    width: 72px;
  }

  .books-hero-covers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 14px;
  }

  .books-hero-covers--five {
    grid-template-columns: repeat(5, minmax(44px, 1fr));
    gap: 6px;
    padding: 12px;
  }

  .books-hero-covers--five > .books-hero-cover {
    margin-block-end: 0;
  }

  .books-hero-cover:nth-child(2),
  .books-hero-cover:nth-child(3) {
    transform: none;
  }

  .books-hero-actions {
    flex-direction: column;
  }

  .books-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .books-hero-cover,
  .book-series-card {
    transition: none;
  }
}

/* =====================================================
   Books hub refinement — August 11, 2026
   Search-led library hierarchy with a scalable catalogue.
   ===================================================== */

.books-breadcrumb {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
  line-height: 1.5;
}

.books-breadcrumb a {
  color: #baf5ef;
  text-decoration: underline;
  text-decoration-color: rgba(0, 180, 166, 0.58);
  text-underline-offset: 3px;
}

.books-breadcrumb a:hover,
.books-breadcrumb a:focus-visible {
  color: var(--white);
}

.books-breadcrumb i {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.62rem;
}

.books-hero {
  padding-bottom: 56px;
}

.books-hero h1 {
  max-width: 820px;
  font-size: clamp(2.45rem, 4.1vw, 3.78rem);
  line-height: 1.06;
}

.books-hero-lead {
  max-width: 760px;
}

.books-proof-rail {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.books-proof-rail > div {
  min-width: 0;
  padding: 22px clamp(16px, 2.1vw, 28px);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.books-proof-rail > div:first-child {
  padding-left: 0;
}

.books-proof-rail > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.books-proof-rail strong,
.books-proof-rail span {
  display: block;
}

.books-proof-rail strong {
  margin-bottom: 5px;
  color: var(--white);
  font-family: "Merriweather", Georgia, serif;
  font-size: 1rem;
  line-height: 1.35;
}

.books-proof-rail span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.76rem;
  line-height: 1.5;
}

.books-library-premium {
  padding-top: clamp(72px, 8vw, 108px);
  scroll-margin-top: 72px;
}

.books-grid-featured {
  display: block;
}

.books-library-premium .book-library-card-featured,
.books-library-premium .book-library-card-featured:nth-child(even) {
  grid-template-columns: minmax(205px, 270px) minmax(0, 1fr);
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
}

.books-library-card-featured .book-library-cover,
.book-library-card-featured .book-library-cover {
  width: min(100%, 270px);
}

.book-library-copy,
.book-preview-copy {
  min-width: 0;
}

.book-library-card h3,
.book-preview-card h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-family: "Merriweather", Georgia, serif;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.book-library-card h3 {
  max-width: 800px;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.18;
}

.book-library-card > .book-library-copy > p:not(.book-library-meta-line) {
  max-width: 850px;
  margin-bottom: 21px;
  color: var(--text-mid);
  font-size: 0.98rem;
  line-height: 1.76;
}

.book-status {
  margin-bottom: 14px;
  letter-spacing: 0.045em;
}

.book-status.is-available {
  color: #08756d;
}

.book-status.is-preview {
  color: #255c82;
}

.book-decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 20px;
}

.book-decision-grid > div {
  padding: 17px 18px;
  border-left: 3px solid var(--teal);
  background: #f2f8fa;
}

.book-decision-grid strong,
.book-decision-grid span {
  display: block;
}

.book-decision-grid strong {
  margin-bottom: 5px;
  color: var(--navy);
  font-size: 0.74rem;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.book-decision-grid span {
  color: var(--text-mid);
  font-size: 0.84rem;
  line-height: 1.58;
}

.book-library-meta-line {
  margin: 0 0 22px;
  color: #52657a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.55;
}

.book-price-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 3px 20px;
  max-width: 460px;
  margin: -4px 0 22px;
  padding: 15px 17px;
  border: 1px solid rgba(0, 137, 123, 0.2);
  border-radius: 12px;
  background: linear-gradient(135deg, #f2fbfa, #f8fbff);
}

.book-price-summary span,
.book-price-summary small {
  color: #52657a;
  font-size: 0.73rem;
  line-height: 1.45;
}

.book-price-summary strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--navy);
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1;
}

.books-pricing {
  scroll-margin-top: 78px;
  background: var(--white);
}

.books-pricing-head {
  max-width: 840px;
  margin: 0 auto 42px;
  text-align: center;
}

.books-pricing-head .section-subtitle {
  margin-bottom: 0;
}

.books-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.books-price-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(10, 35, 66, 0.12);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 20px 48px rgba(10, 35, 66, 0.09);
}

.books-price-card.is-bundle {
  border-color: rgba(0, 180, 166, 0.36);
  box-shadow: 0 22px 56px rgba(0, 110, 101, 0.13);
}

.books-price-card-head {
  padding: 27px 28px 23px;
  background: var(--navy);
}

.books-price-card.is-bundle .books-price-card-head {
  background: linear-gradient(135deg, #073659, #056f6a);
}

.books-price-card-head > span {
  display: block;
  margin-bottom: 8px;
  color: #9ef4eb;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.books-price-card-head h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  line-height: 1.25;
}

.books-price-card-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
  line-height: 1.6;
}

.books-price-table-wrap {
  overflow-x: auto;
}

.books-price-table-wrap:focus-visible {
  outline: 3px solid rgba(0, 180, 166, 0.42);
  outline-offset: -3px;
}

.books-price-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
}

.books-price-table th,
.books-price-table td {
  padding: 15px 17px;
  border-bottom: 1px solid rgba(10, 35, 66, 0.09);
  text-align: left;
  vertical-align: top;
}

.books-price-table thead th {
  color: #50647b;
  background: #f3f7fa;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.books-price-table tbody th {
  color: var(--navy);
  font-size: 0.82rem;
}

.books-price-table td {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
}

.books-price-table td small {
  display: block;
  margin-top: 3px;
  color: #08756d;
  font-size: 0.68rem;
  font-weight: 700;
}

.books-price-card:not(.is-bundle) .books-price-table td small {
  color: #52657a;
}

.books-price-cta {
  align-self: center;
  justify-content: center;
  width: min(310px, calc(100% - 56px));
  margin: 28px auto;
}

.books-pricing-note {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  max-width: 930px;
  margin: 26px auto 0;
  color: #52657a;
  font-size: 0.8rem;
  line-height: 1.65;
  text-align: center;
}

.books-pricing-note i {
  margin-top: 4px;
  color: var(--teal-dark);
}

.books-maintenance {
  scroll-margin-top: 96px;
  padding-bottom: 44px;
  background: var(--white);
}

.books-maintenance-card {
  overflow: hidden;
  max-width: 1120px;
  margin: 0 auto;
  border: 1px solid rgba(10, 35, 66, 0.1);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 20px 50px rgba(10, 35, 66, 0.09);
}

.books-maintenance-table {
  min-width: 760px;
}

.books-maintenance-card > p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 18px 20px;
  border-top: 1px solid rgba(10, 35, 66, 0.08);
  color: var(--text-mid);
  font-size: 0.8rem;
  line-height: 1.65;
}

.books-maintenance-card > p i {
  margin-top: 4px;
  color: var(--teal-dark);
}

.books-maintenance-card > p a {
  color: var(--blue);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.handbook-hero-price {
  display: grid;
  gap: 3px;
  max-width: 610px;
  margin: 16px 0 0;
  padding: 13px 15px;
  border-left: 3px solid var(--teal);
  background: rgba(255, 255, 255, 0.08);
}

.handbook-hero-price strong {
  color: var(--white);
  font-size: 0.9rem;
}

.handbook-hero-price span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  line-height: 1.5;
}

.handbook-assurance-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  max-width: 670px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.handbook-assurance-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.45;
}

.handbook-assurance-list i {
  color: #70e1d7;
  font-size: 0.68rem;
}

.handbook-pricing {
  background: var(--light-bg2);
}

.handbook-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}

.handbook-price-card {
  padding: 26px;
  border: 1px solid rgba(10, 35, 66, 0.12);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 16px 38px rgba(10, 35, 66, 0.08);
}

.handbook-price-card.is-featured {
  border-color: rgba(0, 180, 166, 0.38);
  box-shadow: 0 18px 44px rgba(0, 110, 101, 0.13);
}

.handbook-price-card > span {
  display: block;
  margin-bottom: 10px;
  color: #08756d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.handbook-price-card h3 {
  margin: 0 0 11px;
  color: var(--navy);
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.8rem;
}

.handbook-price-card p {
  min-height: 3.1em;
  margin: 0 0 16px;
  color: var(--text-mid);
  font-size: 0.85rem;
  line-height: 1.55;
}

.handbook-price-card strong {
  display: block;
  padding-top: 13px;
  border-top: 1px solid rgba(10, 35, 66, 0.1);
  color: var(--navy);
  font-size: 0.8rem;
  line-height: 1.5;
}

.handbook-price-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}

.handbook-price-bundle-link {
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(30, 95, 168, 0.35);
  text-underline-offset: 4px;
}

.book-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
  color: var(--blue);
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(30, 95, 168, 0.35);
  text-underline-offset: 4px;
}

.book-inline-link:hover,
.book-inline-link:focus-visible {
  color: var(--teal-dark);
}

.books-preview-head {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: end;
  margin: clamp(70px, 9vw, 108px) 0 30px;
  scroll-margin-top: 100px;
}

.books-preview-head .tag {
  margin-bottom: 15px;
}

.books-preview-head h3 {
  margin: 0;
  color: var(--navy);
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  line-height: 1.25;
  text-wrap: balance;
}

.books-preview-head > p {
  margin: 0;
  color: var(--text-mid);
  font-size: 0.92rem;
  line-height: 1.72;
}

.books-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.book-preview-card {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  min-width: 0;
  padding: 28px;
  border: 1px solid rgba(10, 35, 66, 0.11);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(10, 35, 66, 0.08);
}

.book-preview-cover {
  display: block;
  padding: 6px;
  border: 1px solid rgba(10, 35, 66, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 38px rgba(10, 35, 66, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-preview-cover:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 46px rgba(10, 35, 66, 0.25);
}

.book-preview-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 0.707;
  object-fit: cover;
  border-radius: 3px;
}

.book-preview-card h3 {
  font-size: clamp(1.25rem, 2vw, 1.62rem);
  line-height: 1.27;
}

.book-preview-copy > p:not(.book-library-meta-line) {
  margin: 0 0 18px;
  color: var(--text-mid);
  font-size: 0.88rem;
  line-height: 1.68;
}

.book-preview-card .book-library-actions {
  gap: 9px;
}

.book-preview-card .book-library-actions .btn {
  padding: 11px 15px;
  font-size: 0.79rem;
}

.books-authority {
  background: var(--book-paper);
}

.books-authority-grid {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) minmax(290px, 0.72fr);
  gap: clamp(28px, 4.4vw, 56px);
  align-items: center;
}

.books-author-photo {
  display: block;
  width: 190px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 7px solid var(--white);
  border-radius: 18px;
  box-shadow: 0 24px 52px rgba(10, 35, 66, 0.2);
}

.books-authority-copy .tag {
  margin-bottom: 17px;
}

.books-authority-copy .section-title {
  margin-bottom: 19px;
  font-size: clamp(1.9rem, 3.2vw, 2.72rem);
  line-height: 1.18;
  text-wrap: balance;
}

.books-authority-copy > p {
  margin: 0 0 13px;
  color: var(--text-mid);
  font-size: 0.92rem;
  line-height: 1.72;
}

.books-authority-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
}

.books-authority-links a {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
}

.books-governance-card {
  padding: 30px;
  border-radius: 18px;
  background: var(--navy);
  box-shadow: 0 24px 54px rgba(10, 35, 66, 0.18);
}

.books-governance-card h3 {
  margin: 0 0 19px;
  color: var(--white);
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.14rem;
  line-height: 1.42;
}

.books-governance-card ul {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.books-governance-card li {
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.books-governance-card li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.books-governance-card strong,
.books-governance-card span {
  display: block;
}

.books-governance-card strong {
  margin-bottom: 5px;
  color: #b9f8f2;
  font-size: 0.79rem;
}

.books-governance-card span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  line-height: 1.55;
}

.books-final {
  padding: 44px 0 88px;
  background: var(--book-paper);
}

.books-final-card {
  padding: clamp(30px, 4vw, 42px);
  border-radius: 22px;
  background: var(--navy);
  box-shadow: 0 26px 64px rgba(10, 35, 66, 0.2);
}

.books-final-heading {
  margin-bottom: 24px;
  text-align: center;
}

.books-final-heading > span {
  display: block;
  margin-bottom: 7px;
  color: #9ef4eb;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.books-final-heading h2 {
  margin: 0;
  color: var(--white);
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.25;
}

.books-final-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.books-final-card .books-crosslink {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 132px;
  padding: 24px 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--white);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.books-final-card .books-crosslink:hover {
  border-color: rgba(0, 207, 192, 0.55);
  background: rgba(255, 255, 255, 0.09);
}

.books-final-card .books-crosslink:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.books-final-link-kicker {
  margin-bottom: 7px;
  color: #9ef4eb;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.books-final-card .books-crosslink h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 7px;
  color: var(--white);
  font-size: 1.15rem;
  line-height: 1.35;
}

.books-final-card .books-crosslink h3 i {
  color: var(--teal);
  font-size: 0.92rem;
}

.books-final-card .books-crosslink p {
  max-width: 390px;
  margin: 0;
  color: rgba(255, 255, 255, 0.73);
  font-size: 0.86rem;
  line-height: 1.55;
}

@media (min-width: 1156px) {
  .books-price-card-head h3 {
    min-block-size: 2.5em;
  }

  .books-price-card-head p {
    min-block-size: 3.2em;
  }
}

@media (max-width: 1155px) {
  .books-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin-inline: auto;
  }
}

@media (max-width: 1080px) {

  .handbook-price-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
  }

  .handbook-price-card p {
    min-height: 0;
  }
  .books-proof-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .books-proof-rail > div:nth-child(2) {
    border-right: 0;
  }

  .books-proof-rail > div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .books-proof-rail > div:nth-child(3) {
    padding-left: 0;
  }

  .books-preview-grid {
    grid-template-columns: 1fr;
  }

  .book-preview-card {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .books-authority-grid {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .books-author-photo {
    width: 170px;
  }

  .books-governance-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1fr);
    gap: 28px;
  }

  .books-governance-card h3 {
    margin-bottom: 0;
  }
}

@media (max-width: 820px) {
  .books-breadcrumb {
    margin-bottom: 27px;
  }

  .books-hero-grid > div:first-child {
    display: contents;
  }

  .books-hero .handbook-eyebrow { order: 1; }
  .books-hero h1 { order: 2; }
  .books-hero-covers { order: 3; }
  .books-hero-lead { order: 4; }
  .books-hero-actions { order: 5; }

  .books-library-premium .book-library-card-featured,
  .books-library-premium .book-library-card-featured:nth-child(even) {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 28px;
  }

  .book-decision-grid,
  .books-preview-head {
    grid-template-columns: 1fr;
  }

  .books-preview-head {
    align-items: start;
    gap: 16px;
  }

}

@media (max-width: 799px) {
  .books-final-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .books-maintenance {
    padding-bottom: 32px;
  }

  .books-final {
    padding: 32px 0 64px;
  }
}

@media (max-width: 700px) {
  .books-hero {
    padding-top: 116px;
    padding-bottom: 42px;
  }

  .books-hero h1 {
    font-size: clamp(2.15rem, 10.8vw, 3.2rem);
  }

  .books-proof-rail {
    margin-top: 40px;
  }

  .books-proof-rail > div {
    padding: 17px 14px;
  }

  .books-library-premium .book-library-card-featured,
  .books-library-premium .book-library-card-featured:nth-child(even),
  .book-preview-card,
  .books-authority-grid,
  .books-governance-card {
    grid-template-columns: 1fr;
  }

  .books-library-premium .book-library-card-featured {
    padding: 24px;
  }

  .book-library-card-featured .book-library-cover {
    width: min(66vw, 245px);
  }

  .book-decision-grid {
    gap: 10px;
  }

  .book-preview-card {
    padding: 24px;
  }

  .book-preview-cover {
    width: min(55vw, 205px);
    margin-inline: auto;
  }

  .books-author-photo {
    width: min(58vw, 220px);
  }

  .books-governance-card {
    gap: 20px;
  }

  .books-final-card {
    padding: 24px;
  }

  .books-final-heading {
    margin-bottom: 20px;
  }

  .books-final-card .books-crosslink {
    min-height: 124px;
    padding: 20px;
  }

  .book-price-summary {
    grid-template-columns: 1fr;
  }

  .book-price-summary strong {
    grid-row: auto;
    grid-column: auto;
    margin: 4px 0;
  }

  .books-price-card-head {
    padding: 22px 20px 19px;
  }

  .books-price-cta {
    width: calc(100% - 40px);
    margin: 22px 20px 20px;
  }

  .books-pricing-note {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .books-proof-rail strong {
    font-size: 0.9rem;
  }

  .books-proof-rail span {
    font-size: 0.7rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  .book-preview-cover {
    transition: none;
  }
}
