.lr-directory {
  margin: 0 0 28px;
  padding: 22px;
  background: #fff;
  border: 1px solid #dce6db;
  border-radius: 14px;
}
.library-review :is(.lr-directory,.lr-shelf) h2 {
  margin: 0 0 14px;
  color: #214b35;
  font-size: 24px;
  line-height: 1.25;
}
.library-review .lr-directory h3 {
  margin: 15px 0 9px;
  color: #344f3b;
  font-size: 16px;
}
.lr-type-directory,.lr-stage-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 9px;
}
.lr-type-directory > a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 56px;
  padding: 9px 11px;
  border: 1px solid #dce6db;
  border-radius: 8px;
  color: #234e37;
  background: #f7faf5;
  text-decoration: none;
}
.lr-type-directory > a:hover,.lr-grade-links > a:hover { background: #e9f2e6; }
.lr-type-directory strong { font-size: 14px; overflow-wrap: anywhere; }
.lr-directory-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
  background: #e2edde;
}
.lr-directory-icon svg { width: 16px; height: 16px; }
.lr-directory-arrow { margin-inline-start: auto; }
.lr-directory-arrow svg,.lr-stage-grid h3 svg,.lr-shelf-heading svg { width: 15px; height: 15px; vertical-align: middle; }
.lr-stage-grid article { padding: 12px; border-inline-start: 3px solid #a6b99b; background: #f7faf5; border-radius: 6px; }
.library-review .lr-stage-grid h3 { margin: 0 0 8px; }
.lr-stage-grid h3 a,.lr-shelf-heading a { color: #234e37; }
.lr-grade-links { display: flex; flex-wrap: wrap; gap: 5px; }
.lr-grade-links a { padding: 5px 8px; border: 1px solid #dce6db; border-radius: 6px; color: #234e37; background: #fff; font-size: 13px; }
.lr-shelf { margin: 32px 0; }
.lr-shelf-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.lr-shelf-heading a { font-weight: 600; white-space: nowrap; }
.library-review .lr-shelf .resource-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.library-review .lr-shelf .resource-card { display: grid; grid-template-columns: 76px minmax(0,1fr); min-width: 0; }
.library-review .lr-shelf .cover { min-height: 100%; height: auto; padding: 7px; }
.library-review .lr-shelf .cover-top > span:first-child { display: none; }
.library-review .lr-shelf .card-body { min-width: 0; overflow-wrap: anywhere; }
.library-review .lr-card :is(.lr-type-tag,.lr-format,.lr-card-context,.lr-card-meta) { color: #52674f; font-size: 12px; }
@media(max-width: 780px) {
  .home-review .home-directory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-review:not(.library-review,.tools-review) .home-portrait { max-width: 300px; justify-self: start; }
  .lr-type-directory,.lr-stage-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .library-review .lr-shelf .resource-grid { grid-template-columns: minmax(0,1fr); }
}
@media(max-width: 440px) {
  .home-review .home-directory-grid { grid-template-columns: minmax(0,1fr); }
  .lr-directory { padding: 15px; }
  .lr-type-directory,.lr-stage-grid { grid-template-columns: minmax(0,1fr); }
}
.home-review:not(.library-review,.tools-review) .home-intro-grid {
  gap: clamp(24px,5vw,72px);
  padding-block: clamp(34px,5vw,64px);
  align-items: center;
}
.home-review:not(.library-review,.tools-review) .home-intro h1 {
  font-size: clamp(36px,5.2vw,68px);
  letter-spacing: -.055em;
}
.home-review:not(.library-review,.tools-review) .home-lead { margin-block-end: 20px; }
.home-review:not(.library-review,.tools-review) .home-portrait {
  width: 100%;
  max-width: 360px;
  justify-self: end;
  transform: none;
  box-shadow: 0 16px 36px #0b2b22a0;
}
.home-directory-heading { display:flex; justify-content:space-between; align-items:baseline; gap:12px; flex-wrap:wrap; margin-bottom:18px; }
.home-review .home-directory-heading h2 { margin:0; font-size:clamp(25px,3.4vw,38px); color:#183e30; }
.home-directory-heading > a { color:#24543d; font-weight:650; }
.home-directory-heading svg { width:15px; height:15px; vertical-align:middle; }
.home-directory-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.home-directory-grid > a {
  display:flex; align-items:center; gap:12px; min-width:0;
  padding: 15px; border:1px solid #dce6db; border-radius:10px;
  color:#183e30; background:#fff; text-decoration:none;
}
.home-directory-grid > a:hover { background:#eff5ec; border-color:#9ab196; }
.home-review .home-directory-grid h3 { margin:0; font-size:17px; line-height:1.3; }
.home-review .home-directory-grid p { margin:5px 0 0; font-size:13px; color:#46594f; line-height:1.5; }
.lr-directory-jumps { display:flex; gap:8px; flex-wrap:wrap; margin:0 0 19px; }
.lr-directory-jumps a { padding:8px 12px; border:1px solid #dce6db; border-radius:7px; background:#fff; color:#234e37; font-weight:600; }
.lr-directory-jumps a:hover { background:#e9f2e6; }
#lr-directory-title,#lr-stage-title,#lr-results-title { scroll-margin-top: 24px; }
