.journey-resources {
  padding: clamp(88px, 11vw, 150px) clamp(24px, 8vw, 140px);
  background: var(--navy);
  color: var(--white);
}

.journey-resources .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.journey-resources-header {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  gap: clamp(42px, 8vw, 120px);
  align-items: end;
  max-width: 1180px;
  margin: 0 auto;
  padding-bottom: clamp(50px, 7vw, 82px);
  border-bottom: 2px solid rgba(255, 255, 255, .72);
}

.journey-resources-header h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(44px, 6vw, 78px);
  line-height: .98;
  letter-spacing: -.04em;
}

.journey-resources-intro {
  max-width: 720px;
  margin: 0;
  font-size: clamp(18px, 1.7vw, 22px);
}

.external-note {
  max-width: 680px;
  margin: 18px 0 0;
  color: #d6e0e4;
  font-family: var(--sans);
  font-size: 14px;
}

.resource-lane {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: clamp(52px, 7vw, 82px);
}

.resource-lane + .resource-lane {
  margin-top: clamp(58px, 8vw, 96px);
  border-top: 1px solid rgba(255, 255, 255, .26);
}

/* Stacked editorial tables already end with a full-width rule. */
.resource-lane-table + .resource-lane-table {
  border-top: 0;
}

.resource-lane-heading {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: end;
  margin-bottom: 30px;
}

.resource-lane-heading h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(29px, 3.7vw, 48px);
  line-height: 1.04;
}

.resource-lane-heading p {
  max-width: 650px;
  margin: 0;
  color: #d6e0e4;
  font-size: 17px;
}

.resource-lane-web {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.resource-lane-institutions {
  max-width: 1240px;
  padding: clamp(34px, 4.5vw, 54px) clamp(24px, 4vw, 46px) clamp(30px, 4vw, 46px);
  border-top: 4px solid #d29a3a;
  background: #f7f0df;
  color: var(--ink);
}

.resource-lane-institutions .resource-lane-heading p,
.resource-lane-institutions .external-resource-notice {
  color: #324956;
}

.resource-lane-institutions .external-resource-notice strong {
  color: #8e2f27;
}

.resource-lane-institutions .external-resource-sign {
  border-color: #8e2f27;
}

.resource-lane-institutions .external-resource-sign::before,
.resource-lane-institutions .external-resource-sign::after {
  border-color: #8e2f27;
}

.resource-lane-institutions .resource-guide th,
.resource-lane-institutions .resource-guide td {
  border-color: rgba(20, 43, 59, .22);
}

.resource-lane-institutions .resource-guide th {
  border-top-color: rgba(20, 43, 59, .72);
  color: #8e2f27;
}

.resource-lane-institutions .resource-guide td {
  color: var(--ink);
}

.resource-lane-institutions .resource-guide td:first-child a {
  color: var(--ink);
}

.resource-lane-institutions .resource-guide td:first-child a:hover,
.resource-lane-institutions .resource-guide td:last-child {
  color: #8e2f27;
}

.resource-guide-wrap {
  overflow-x: auto;
}

.external-resource-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #d6e0e4;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
}

.external-resource-notice strong {
  flex: 0 0 auto;
  color: #e7c98c;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.external-resource-sign {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border: 1px solid #e7c98c;
}

.external-resource-sign::before {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #e7c98c;
  border-right: 2px solid #e7c98c;
}

.external-resource-sign::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 1px;
  width: 8px;
  border-top: 2px solid #e7c98c;
  transform: rotate(-45deg);
  transform-origin: right center;
}

.resource-guide {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.resource-guide th,
.resource-guide td {
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  text-align: left;
  vertical-align: top;
}

.resource-guide th {
  padding-top: 16px;
  padding-bottom: 16px;
  border-top: 2px solid rgba(255, 255, 255, .72);
  color: #e7c98c;
  font: 900 13px/1.35 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.resource-guide th:first-child,
.resource-guide td:first-child {
  width: 31%;
  padding-left: 0;
}

.resource-guide th:nth-child(2),
.resource-guide td:nth-child(2) {
  width: 47%;
}

.resource-guide th:last-child,
.resource-guide td:last-child {
  width: 22%;
  padding-right: 0;
}

.resource-guide td {
  color: #f5f0e5;
  font-size: 16px;
  line-height: 1.5;
}

.resource-guide td:first-child a {
  color: var(--white);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.28;
  text-decoration-color: #d29a3a;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.resource-guide td:first-child a:hover {
  color: #e7c98c;
}

.resource-guide td:first-child a:focus-visible {
  outline: 4px solid #e5a342;
  outline-offset: 4px;
}

.resource-guide td:last-child {
  color: #e7c98c;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 900;
}

.resource-lane-books {
  max-width: 1240px;
  padding: clamp(38px, 5vw, 62px) clamp(24px, 4vw, 46px) clamp(42px, 5vw, 62px);
  border-top: 4px solid #d29a3a;
  background: #f7f0df;
  color: var(--ink);
}

.resource-lane-books .resource-lane-heading {
  margin-bottom: 24px;
}

.resource-lane-books .resource-lane-heading p {
  color: #324956;
}

.library-help {
  display: grid;
  grid-template-columns: minmax(170px, .42fr) minmax(0, 1.58fr);
  gap: 22px;
  margin: 0 0 38px;
  padding: 15px 0;
  border-top: 1px solid rgba(20, 43, 59, .7);
  border-bottom: 1px solid rgba(20, 43, 59, .22);
  color: #324956;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
}

.library-help strong {
  color: #8e2f27;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.open-book {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1120px;
  margin: 0 auto;
  background: #fffaf0;
  box-shadow: 0 22px 42px rgba(7, 24, 38, .24);
}

.open-book::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 50px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(84, 58, 27, 0), rgba(84, 58, 27, .14), rgba(84, 58, 27, 0));
  pointer-events: none;
}

.book-page {
  padding: clamp(28px, 4vw, 48px);
}

.book-page-left {
  background: linear-gradient(90deg, #fffaf0 78%, #f0e3c7);
}

.book-page-right {
  background: linear-gradient(270deg, #fffaf0 78%, #f0e3c7);
}

.book-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.book-entry {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid #cdbb92;
}

.book-entry:first-child {
  padding-top: 0;
}

.book-entry:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.book-spine {
  width: 8px;
  min-height: 64px;
  background: #1f6f8b;
}

.book-entry:nth-child(2) .book-spine { background: #315b43; }
.book-entry:nth-child(3) .book-spine { background: #a9362e; }
.book-entry:nth-child(4) .book-spine { background: #c98b32; }
.book-page-right .book-entry:nth-child(1) .book-spine { background: #704f89; }
.book-page-right .book-entry:nth-child(2) .book-spine { background: #153651; }
.book-page-right .book-entry:nth-child(3) .book-spine { background: #8e2f27; }
.book-page-right .book-entry:nth-child(4) .book-spine { background: #315b43; }
.book-page-right .book-entry:nth-child(5) .book-spine { background: #c98b32; }
.book-entry:nth-child(6) .book-spine { background: #704f89; }
.book-entry:nth-child(7) .book-spine { background: #153651; }
.book-entry:nth-child(8) .book-spine { background: #8e2f27; }

.book-entry h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.16;
}

.book-entry p {
  margin: 7px 0 0;
  color: #273e4c;
  font-size: 16px;
  line-height: 1.45;
}

.book-entry .book-by {
  color: #4b5f69;
  font-family: var(--sans);
  font-size: 14px;
}

.book-entry .book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 12px;
  color: #4b5f69;
  font-family: var(--sans);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.book-kind {
  padding: 4px 8px;
  background: #315b43;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.book-kind-story {
  background: #704f89;
}

.book-length {
  color: #8e2f27;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.book-shelf-note {
  margin: 28px 0 0;
  color: #324956;
  font-family: var(--sans);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 980px) {
  .journey-resources-header,
  .resource-lane-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

}

@media (max-width: 620px) {
  .journey-resources {
    padding: 78px 20px;
  }

  .journey-resources-header h2 {
    font-size: clamp(42px, 14vw, 60px);
  }

  .resource-lane-institutions {
    padding: 34px 20px 28px;
  }

  .resource-guide-wrap {
    overflow: visible;
  }

  .external-resource-notice {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-bottom: 22px;
  }

  .external-resource-notice > span:last-child {
    flex-basis: 100%;
  }

  .resource-guide,
  .resource-guide tbody,
  .resource-guide tr,
  .resource-guide td {
    display: block;
    width: 100%;
  }

  .resource-guide {
    table-layout: auto;
  }

  .resource-guide thead {
    display: none;
  }

  .resource-guide tr {
    padding: 26px 0;
    border-top: 1px solid rgba(255, 255, 255, .36);
  }

  .resource-guide tr:first-child {
    border-top-width: 2px;
    border-top-color: rgba(255, 255, 255, .72);
  }

  .resource-guide td,
  .resource-guide td:first-child,
  .resource-guide td:nth-child(2),
  .resource-guide td:last-child {
    width: 100%;
    padding: 0;
    border: 0;
  }

  .resource-guide td + td {
    margin-top: 20px;
  }

  .resource-guide td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 7px;
    color: #e7c98c;
    font: 900 11px/1.35 var(--sans);
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .resource-lane-institutions .resource-guide tr:first-child {
    border-top-color: rgba(20, 43, 59, .72);
  }

  .resource-lane-institutions .resource-guide td::before {
    color: #8e2f27;
  }

  /* Mobile rows use top rules, so retain one lane boundary here. */
  .resource-lane-table + .resource-lane-table {
    border-top: 1px solid rgba(255, 255, 255, .26);
  }

  .resource-lane-books {
    padding: 34px 20px 38px;
  }

  .library-help {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-bottom: 28px;
  }

  .open-book {
    grid-template-columns: 1fr;
    box-shadow: 0 16px 32px rgba(7, 24, 38, .22);
  }

  .open-book::after {
    display: none;
  }

  .book-page {
    padding: 28px 20px;
    background: #fffaf0;
  }

  .book-page-right {
    border-top: 2px solid #d29a3a;
  }

  .book-entry {
    grid-template-columns: 9px minmax(0, 1fr);
    gap: 13px;
  }
}

@media print {
  .journey-resources {
    display: block !important;
    padding: 36px 0 !important;
    background: #fff !important;
    color: #111 !important;
    break-before: page;
  }

  .journey-resources * {
    color: #111 !important;
    box-shadow: none !important;
  }

  .resource-lane-books {
    padding: 28px 0 !important;
    break-before: page;
    background: #fff !important;
  }

  .resource-lane-books .resource-lane-heading {
    margin-bottom: 12px;
  }

  .resource-lane-books .resource-lane-heading h3 {
    font-size: 34px;
  }

  .resource-lane-books .library-help {
    margin-bottom: 12px;
    padding: 8px 0;
  }

  .resource-lane-books .open-book {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    break-inside: avoid;
    page-break-inside: avoid;
    background: #fff !important;
  }

  .resource-lane-books .open-book::after {
    display: none !important;
  }

  .resource-lane-books .book-page {
    padding: 12px 16px !important;
    background: #fff !important;
  }

  .book-entry {
    padding: 8px 0 !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .book-entry h4 {
    font-size: 18px;
    line-height: 1.08;
  }

  .book-entry p {
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.24;
  }

  .book-entry .book-by {
    font-size: 12px;
  }

  .book-entry .book-meta {
    margin-top: 5px;
    font-size: 11px;
  }

  .book-spine {
    min-height: 52px;
  }

  .book-shelf-note {
    margin-top: 12px;
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
