@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Frank+Ruhl+Libre:wght@400;500&family=Libre+Caslon+Display&display=swap");
:root {
  --paper: #f9f7f0;
  --white: #fffef9;
  --ink: #243c35;
  --muted: #68716a;
  --line: #dedfd4;
  --green: #174c3f;
  --pale: #edf0e5;
  --gold: #a6854e;
  --serif: "Libre Caslon Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}
.lk-hero { display:flex; align-items:center; justify-content:space-between; gap:32px; padding:28px 0 38px; }
.lk-hero p:not(.eyebrow) { max-width:510px; color:var(--muted); margin-top:20px; font-size:16px; }
.lk-count { display:flex; flex-direction:column; text-align:center; background:#e8eee8; border:1px solid var(--line); border-radius:100px 100px 8px 8px; min-width:180px; padding:30px 18px; }
.lk-count strong { font:64px/1.1 var(--serif); color:#2f7c7a; }
.lk-count span { font-size:13px; }.lk-count small { font-size:10px; color:var(--muted); margin-top:12px; }
.lk-filterbar { display:flex; flex-wrap:wrap; gap:20px; align-items:end; margin:30px 0 18px; }
.lk-filterbar label { display:flex; flex-direction:column; gap:5px; font-size:12px; color:var(--muted); }
.lk-filterbar select { border:1px solid var(--line); border-radius:6px; padding:10px; background:var(--white); color:var(--ink); max-width:290px; }
.lk-filterbar .lk-media-filter { flex-direction:row; align-items:center; padding:12px 0; }
.lk-coverage { font-size:12px; color:var(--muted); margin:15px 0; }
.lk-card { display:grid; grid-template-columns:145px minmax(0,1fr); gap:24px; padding:27px 0; border-bottom:1px solid var(--line); }
.lk-card img { width:145px; height:82px; object-fit:cover; border-radius:8px; background:var(--pale); }
.lk-card-mark { height:108px; display:grid; place-items:center; font:40px var(--serif); background:var(--pale); border-radius:8px; color:var(--gold); }
.lk-card h3 { font-size:28px; line-height:1.2; margin:7px 0; }.lk-card h3 a:hover { color:#2f7c7a; text-decoration:underline; text-underline-offset:4px; }
.lk-credit { color:var(--muted); font-size:12px; margin:8px 0; }.lk-excerpt { line-height:1.8; font-size:14px; }
.lk-passage-label { margin:15px 0 7px; font-size:11px; font-weight:600; color:var(--green); }
.lk-tags { display:flex; flex-wrap:wrap; gap:6px; margin:14px 0 8px; }.lk-tags span { padding:3px 8px; border-radius:4px; background:var(--pale); font-size:10px; color:var(--muted); }
.lk-card .result-actions { flex-wrap:wrap; gap:18px; }.lk-card .result-actions button { color:#2f7c7a; }
.lk-member-note { background:var(--pale); border-left:3px solid #2f7c7a; padding:25px; margin:35px 0 20px; }.lk-member-note p { margin:10px 0; color:var(--muted); max-width:650px; }.lk-member-note a { color:var(--green); text-decoration:underline; text-underline-offset:4px; }
.lk-reading { max-width:740px; margin:auto; padding:15px 5px; }.lk-reading>p:not(.result-meta) { margin:18px 0; line-height:1.9; font-size:16px; }.lk-reading>h3 { margin:32px 0 18px; font-size:30px; }.lk-reading .notice { margin-top:30px; }.lk-related { display:flex; flex-direction:column; gap:12px; }.lk-related button { text-align:left; padding:14px; border:1px solid var(--line); background:var(--pale); border-radius:6px; color:var(--ink); }
@media (max-width:650px) { .lk-hero { align-items:start; gap:15px; }.lk-count { min-width:84px; max-width:95px; padding:20px 8px; }.lk-count strong { font-size:40px; }.lk-count small { display:none; }.lk-count span { font-size:10px; }.lk-card { grid-template-columns:72px minmax(0,1fr); gap:14px; }.lk-card img,.lk-card-mark { width:72px; height:72px; }.lk-card h3 { font-size:24px; }.lk-filterbar { gap:12px; }.lk-filterbar select { max-width:220px; }.lk-reading>p:not(.result-meta) { font-size:15px; } }
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 14px/1.65 var(--sans);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #b58b43;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 400;
}
h1,
h2 {
  font-family: var(--serif);
  line-height: 1.08;
}
h1 {
  font-size: clamp(40px, 4.3vw, 67px);
  letter-spacing: -1.8px;
}
h2 {
  font-size: 36px;
}
h3 {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.2;
}
.eyebrow,
.nav-caption {
  font-size: 10px;
  letter-spacing: 2.1px;
  font-weight: 600;
}
.eyebrow {
  color: var(--green);
  margin-bottom: 16px;
}
.muted {
  color: var(--muted);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 237px;
  border-right: 1px solid var(--line);
  padding: 38px 24px;
  display: flex;
  flex-direction: column;
  background: #f0f0e6;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.5px;
  margin-top: 6px;
  color: var(--muted);
}
.brand-mark {
  font-family: "Frank Ruhl Libre", Georgia, serif;
  font-size: 37px;
  letter-spacing: -4px;
  border: 1px solid #b8c0aa;
  border-radius: 50%;
  width: 58px;
  height: 58px;
  text-align: center;
  line-height: 54px;
}
.nav-caption {
  margin-top: 54px;
  color: #778072;
  font-size: 9px;
}
.sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 6px;
  font-size: 12px;
}
.sidebar nav a > span {
  font-size: 21px;
  line-height: 1;
}
.sidebar nav a.active {
  background: #dde4d5;
  color: #1b4b3c;
  font-weight: 600;
}
.sidebar nav a:hover {
  background: #e6e9df;
}
.sidebar nav b {
  font-size: 10px;
  margin-left: auto;
  font-weight: 500;
}
.side-bottom {
  margin-top: auto;
  padding: 25px 10px 0;
}
.small-sun {
  font-size: 35px;
  color: var(--gold);
  margin-bottom: 15px;
}
.side-bottom h3 {
  font-size: 25px;
}
.side-bottom p {
  font-size: 11px;
  color: var(--muted);
  margin: 16px 0 23px;
  line-height: 1.9;
}
.side-bottom a {
  font-size: 10px;
  border-bottom: 1px solid #a5ad9c;
  padding-bottom: 4px;
}
.workspace {
  margin-left: 237px;
}
.topbar {
  height: 81px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 45px;
  font-size: 11px;
}
.breadcrumb {
  color: var(--muted);
}
.breadcrumb i {
  font-style: normal;
  padding: 0 13px;
  color: #b4b9ad;
}
#member-link {
  border: 1px solid #c8cfbf;
  border-radius: 30px;
  padding: 7px 15px;
}
main {
  max-width: 1360px;
  margin: auto;
  padding: 48px 45px 50px;
  min-height: 85vh;
}
.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  min-height: 235px;
  align-items: center;
  gap: 30px;
}
.hero .intro {
  max-width: 460px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  margin-top: 19px;
}
.or-art {
  height: 230px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.or-art:before,
.or-art:after {
  content: "";
  position: absolute;
  border: 1px solid #c8c9af;
  border-radius: 50%;
  width: 205px;
  height: 205px;
}
.or-art:after {
  width: 155px;
  height: 155px;
  border-color: #d7d4bf;
}
.or-art .orb {
  width: 109px;
  height: 109px;
  border: 1px solid #c8c9af;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, #f3e8ba66, transparent);
  font:
    67px "Frank Ruhl Libre",
    serif;
  color: #9d844f;
  z-index: 1;
  letter-spacing: -8px;
  padding-right: 7px;
}
.or-art .line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid #d7d4bf;
}
.or-art .line.v {
  transform: rotate(90deg);
}
.or-art small {
  position: absolute;
  bottom: 2px;
  font-size: 9px;
  letter-spacing: 3px;
  background: var(--paper);
  padding: 0 10px;
}
.search-box {
  margin-top: 28px;
  background: var(--white);
  border: 1px solid #bfc8b6;
  border-radius: 10px;
  box-shadow: 0 6px 28px #203e2d05;
  overflow: hidden;
}
.search-scopes {
  display: flex;
  gap: 26px;
  padding: 0 22px;
  border-bottom: 1px solid #ebede4;
}
.search-scopes button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 13px 0 11px;
  color: var(--muted);
  font-size: 12px;
}
.search-scopes button.active {
  border-color: var(--green);
  color: var(--green);
  font-weight: 600;
}
.search-row {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  gap: 13px;
}
.search-row .search-icon {
  font-size: 27px;
  color: #8c9989;
}
.search-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline-offset: 6px;
  font-size: 15px;
  color: var(--ink);
}
.primary {
  background: var(--green);
  color: white;
  border: 0;
  border-radius: 5px;
  padding: 11px 22px;
  font-size: 12px;
}
.primary:hover {
  background: #22614f;
}
.suggestions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 13px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.chip {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 25px;
  padding: 4px 12px;
  color: var(--muted);
  font-size: 10px;
}
.chip:hover,
.chip.active {
  background: #e5ebdf;
  color: var(--green);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  margin: 42px 0 20px;
}
.section-head h2 {
  font-size: 32px;
}
.section-head a,
.text-btn {
  font-size: 11px;
  color: var(--green);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.section-head p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 20px;
}
.feature-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 25px;
  align-items: center;
  background: #e9ecdf;
  border-radius: 8px;
  padding: 27px;
}
.book-cover {
  width: 112px;
  min-height: 151px;
  background: #2d5345;
  color: #e2d6ad;
  border-radius: 2px 6px 6px 2px;
  box-shadow: 6px 5px 12px #19372b19;
  border-left: 7px solid #234237;
  padding: 20px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.book-cover .he {
  font-family: "Frank Ruhl Libre", serif;
  font-size: 26px;
  line-height: 1.3;
}
.book-cover .en {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.1;
}
.book-cover .rule {
  display: block;
  width: 26px;
  margin: 0 auto;
  border-top: 1px solid #c0ab79;
}
.feature-card .eyebrow {
  font-size: 9px;
  margin-bottom: 12px;
}
.feature-card p {
  color: var(--muted);
  font-size: 11px;
  margin: 11px 0 15px;
  max-width: 300px;
}
.feature-card button {
  font-size: 11px;
  border: 0;
  border-bottom: 1px solid #a3af9c;
  padding: 0 0 4px;
  background: none;
  color: var(--green);
}
.journey-promo {
  border: 1px solid #ddd9ca;
  border-radius: 8px;
  padding: 26px;
  background: #f3eee3;
}
.journey-promo .eyebrow {
  font-size: 9px;
  color: #8b7047;
  margin-bottom: 12px;
}
.journey-promo h3 {
  font-size: 28px;
}
.journey-promo p {
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0 20px;
}
.journey-promo a {
  font-size: 11px;
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.collection-card {
  padding: 23px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fcfbf6;
  text-align: left;
  color: var(--ink);
}
.collection-card .number {
  font: 11px var(--sans);
  color: var(--gold);
  margin-bottom: 25px;
  display: block;
}
.collection-card h3 {
  font-size: 25px;
}
.collection-card p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}
.collection-card:hover {
  border-color: #9cae92;
  transform: translateY(-2px);
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 33px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.trust-strip span:before {
  content: "✦";
  color: var(--gold);
  margin-right: 8px;
}
footer {
  padding: 20px 45px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  color: var(--muted);
}
footer > span:first-child {
  font:
    24px "Frank Ruhl Libre",
    serif;
}
footer > a {
  margin-left: auto;
}
.page-intro {
  max-width: 650px;
}
.page-intro p {
  margin-top: 19px;
  color: var(--muted);
}
.filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 28px 0;
}
.filterbar input,
.filterbar select {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fffef9;
  padding: 10px 13px;
  min-width: 0;
}
.filterbar input {
  flex: 1;
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.book-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.book-card .book-head {
  background: #e9ecdf;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
}
.book-card:nth-child(3n + 2) .book-head {
  background: #eee5d7;
}
.book-card:nth-child(3n) .book-head {
  background: #e5e9e8;
}
.book-head .he {
  font:
    27px "Frank Ruhl Libre",
    serif;
}
.book-head small {
  font-size: 9px;
  letter-spacing: 1px;
}
.book-card .book-info {
  padding: 21px;
  display: flex;
  flex: 1;
  flex-direction: column;
}
.book-info h3 {
  font-size: 26px;
}
.book-info .author {
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
}
.book-info p {
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0;
}
.book-info .book-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 17px;
}
.book-actions button {
  background: none;
  border: 0;
  border-bottom: 1px solid #b2bfa8;
  padding: 0 0 3px;
  font-size: 11px;
  color: var(--green);
}
.tag {
  border-radius: 3px;
  background: #edf1e5;
  font-size: 9px;
  color: #59704e;
  padding: 3px 7px;
}
.tag.external {
  background: #f0ebdf;
  color: #856f49;
}
.notice {
  background: #eeeee4;
  border-left: 3px solid #a8b49a;
  border-radius: 3px;
  padding: 16px 20px;
  font-size: 12px;
  margin: 20px 0;
}
.notice.error {
  border-color: #ab684e;
  background: #f7eae1;
}
.results-list {
  display: grid;
  gap: 12px;
}
.result {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.result .result-meta {
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 8px;
}
.result h3 {
  font-size: 25px;
}
.result p {
  margin-top: 12px;
}
.result .he {
  font-family: "Frank Ruhl Libre", serif;
  font-size: 22px;
  text-align: right;
  margin: 8px 0;
}
.result-actions {
  display: flex;
  gap: 20px;
  margin-top: 15px;
  font-size: 11px;
}
.result-actions button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.result .excerpt {
  font-size: 13px;
  line-height: 1.9;
}
.result .note {
  border-left: 2px solid var(--gold);
  padding-left: 12px;
}
.result .edition {
  font-size: 10px;
  color: var(--muted);
}
.results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 26px 0 15px;
}
.results-heading h2 {
  font-size: 30px;
}
.results-heading span {
  font-size: 10px;
  color: var(--muted);
}
.search-layout {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 25px;
}
.search-aside {
  padding-top: 27px;
}
.search-aside h3 {
  font-size: 23px;
}
.search-aside p {
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0 20px;
}
.search-aside button {
  margin: 4px 3px 4px 0;
}
.module-list {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}
.module {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  display: grid;
  grid-template-columns: 70px 1fr;
  padding: 26px;
  gap: 20px;
}
.module-number {
  font: 40px var(--serif);
  color: var(--gold);
  border-right: 1px solid var(--line);
}
.module .eyebrow {
  font-size: 9px;
  margin-bottom: 9px;
}
.module h3 {
  font-size: 30px;
}
.module p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 12px;
}
.module-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 17px;
}
.module-actions button {
  background: #edf0e5;
  border: 1px solid #d8dece;
  padding: 8px 12px;
  border-radius: 4px;
  color: var(--green);
  font-size: 11px;
}
.module-actions button:hover {
  background: #e0e7d6;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}
.about-card {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.about-card h3 {
  font-size: 29px;
}
.about-card p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 15px;
}
.about-card a {
  text-decoration: underline;
}
dialog {
  border: 1px solid #bcc6b2;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  padding: 0;
  width: min(1060px, 94vw);
  max-height: 90vh;
  box-shadow: 0 30px 150px #14251c44;
}
dialog::backdrop {
  background: #15342a99;
  backdrop-filter: blur(4px);
}
.reader-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 25px 30px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 1;
}
.reader-top .eyebrow {
  font-size: 9px;
  margin-bottom: 8px;
}
.reader-top h2 {
  font-size: 33px;
}
.icon-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 24px;
  color: var(--green);
  flex-shrink: 0;
}
#reader-body {
  padding: 24px 30px 30px;
}
.reader-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}
.reader-controls button,
.reader-controls a {
  font-size: 11px;
  border: 1px solid #c7d0bd;
  background: none;
  color: var(--green);
  border-radius: 4px;
  padding: 7px 12px;
}
.reader-controls a {
  margin-left: auto;
}
.reader-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.reader-column {
  min-width: 0;
}
.reader-column h3 {
  font: 11px var(--sans);
  letter-spacing: 1px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.source-paragraph {
  font-size: 16px;
  line-height: 1.95;
  margin: 19px 0;
}
.reader-column[dir="rtl"] .source-paragraph {
  font-family: "Frank Ruhl Libre", Georgia, serif;
  font-size: 24px;
  line-height: 1.85;
}
.reader-edition {
  font: 10px/1.7 var(--sans);
  color: var(--muted);
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.reader-ref-form {
  display: flex;
  gap: 10px;
  margin: 18px 0;
}
.reader-ref-form input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 4px;
}
.empty {
  padding: 45px 25px;
  border: 1px dashed #b8c5ac;
  border-radius: 8px;
  text-align: center;
  margin-top: 25px;
}
.empty p {
  color: var(--muted);
  margin: 13px 0;
}
.saved-tools {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}
.saved-tools button {
  border: 1px solid #bfc8b6;
  background: transparent;
  border-radius: 4px;
  padding: 8px 15px;
  font-size: 11px;
}
.skip {
  position: fixed;
  top: -60px;
  left: 20px;
  background: var(--green);
  color: white;
  padding: 10px;
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 22px;
  background: var(--ink);
  color: white;
  border-radius: 6px;
  z-index: 100;
  font-size: 12px;
  display: none;
}
.loading {
  padding: 35px 20px;
  color: var(--muted);
}
.loading:before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #bcc9b0;
  border-top-color: var(--green);
  border-radius: 50%;
  margin-right: 12px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 1500px) {
  main {
    padding-top: 65px;
  }
  .hero {
    min-height: 265px;
  }
  .feature-card {
    padding: 35px;
  }
  .book-cover {
    min-height: 165px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 205px;
    padding: 30px 16px;
  }
  .workspace {
    margin-left: 205px;
  }
  main {
    padding: 35px 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .hero {
    grid-template-columns: 1.6fr 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature-card {
    grid-template-columns: 115px 1fr;
  }
  .journey-promo {
    display: none;
  }
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .search-layout {
    grid-template-columns: 1fr;
  }
  .search-aside {
    display: none;
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 18px 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 12px;
  }
  .brand-mark {
    width: 44px;
    height: 44px;
    font-size: 29px;
    line-height: 41px;
  }
  .brand small {
    font-size: 7px;
  }
  .nav-caption,
  .side-bottom {
    display: none;
  }
  .sidebar nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px 10px;
    margin: 15px 0 10px;
  }
  .sidebar nav a {
    font-size: 11px;
    padding: 8px;
    gap: 6px;
    white-space: nowrap;
    border-radius: 5px 5px 0 0;
  }
  .sidebar nav a > span {
    font-size: 15px;
  }
  .sidebar nav b {
    display: none;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 54px;
    padding: 0 21px;
    font-size: 10px;
  }
  #member-link {
    padding: 5px 9px;
  }
  .breadcrumb i {
    padding: 0 7px;
  }
  main {
    padding: 29px 21px 35px;
  }
  .hero {
    display: block;
    min-height: 0;
  }
  .hero h1 {
    font-size: 49px;
    line-height: 1.05;
    letter-spacing: -1.2px;
  }
  .hero .intro {
    font-size: 12px;
    max-width: 330px;
    margin-top: 16px;
  }
  .or-art {
    display: none;
  }
  .eyebrow {
    font-size: 9px;
    margin-bottom: 16px;
  }
  .search-box {
    margin-top: 25px;
  }
  .search-scopes {
    gap: 21px;
    padding: 0 16px;
  }
  .search-scopes button {
    font-size: 10px;
  }
  .search-row {
    padding: 17px 13px;
    gap: 8px;
  }
  .search-row input {
    font-size: 12px;
  }
  .search-row .search-icon {
    font-size: 23px;
  }
  .primary {
    padding: 10px 13px;
    font-size: 10px;
  }
  .suggestions {
    font-size: 9px;
    gap: 5px;
  }
  .chip {
    font-size: 9px;
    padding: 4px 9px;
  }
  .section-head {
    margin-top: 29px;
  }
  .section-head h2 {
    font-size: 29px;
  }
  .section-head a {
    font-size: 10px;
  }
  .feature-card {
    padding: 20px;
    grid-template-columns: 85px 1fr;
    gap: 19px;
  }
  .book-cover {
    width: 85px;
    min-height: 132px;
    padding: 15px 8px;
  }
  .book-cover .he {
    font-size: 23px;
  }
  .book-cover .en {
    font-size: 14px;
  }
  .feature-card h3 {
    font-size: 26px;
  }
  .feature-card p {
    font-size: 10px;
  }
  .feature-card .eyebrow {
    font-size: 8px;
  }
  .collection-grid {
    grid-template-columns: 1fr;
  }
  .collection-card {
    padding: 18px 20px;
  }
  .collection-card .number {
    float: right;
    margin: 3px 0 0 12px;
  }
  .collection-card h3 {
    font-size: 25px;
  }
  .collection-card p {
    margin-top: 7px;
  }
  .trust-strip {
    font-size: 9px;
    gap: 9px;
  }
  footer {
    padding: 20px;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 9px;
  }
  footer > a {
    margin-left: auto;
  }
  .book-grid {
    grid-template-columns: 1fr;
  }
  .page-intro h1 {
    font-size: 46px;
  }
  .page-intro p {
    font-size: 12px;
  }
  .module {
    grid-template-columns: 36px 1fr;
    padding: 20px;
    gap: 15px;
  }
  .module-number {
    font-size: 29px;
  }
  .module h3 {
    font-size: 27px;
  }
  .module p {
    font-size: 11px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .reader-top {
    padding: 18px;
  }
  .reader-top h2 {
    font-size: 27px;
  }
  #reader-body {
    padding: 18px;
  }
  .reader-columns {
    grid-template-columns: 1fr;
  }
  .reader-column[dir="rtl"] {
    order: -1;
  }
  .reader-ref-form {
    flex-wrap: wrap;
  }
  .reader-ref-form input {
    width: 100%;
  }
  .reader-controls {
    gap: 6px;
  }
  .reader-controls button,
  .reader-controls a {
    font-size: 10px;
    padding: 6px 8px;
  }
  .reader-controls a {
    margin-left: 0;
  }
  .filterbar input {
    width: 100%;
    flex-basis: 100%;
  }
  .result h3 {
    font-size: 24px;
  }
  .result {
    padding: 18px;
  }
  .results-heading h2 {
    font-size: 27px;
  }
  .search-row input::placeholder {
    font-size: 11px;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.long-reading summary {
  font: 12px/1.5 var(--sans);
  padding: 15px 0;
  color: var(--green);
  cursor: pointer;
  direction: ltr;
}

/* Chabad: an editorial catalog with Hebrew titles and clear reading destinations. */
.chabad-hero { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 40px; align-items: center; padding: 12px 0 32px; }
.chabad-hero h1 { font: 56px/1.03 var(--serif); letter-spacing: -1.7px; margin: 14px 0 22px; }
.chabad-hero p:not(.eyebrow) { max-width: 540px; font-size: 14px; line-height: 1.85; color: var(--muted); }
.chabad-seal { color: var(--green); border: 1px solid #d8cdb6; border-radius: 100px 100px 4px 4px; background: #eeeadd; text-align: center; padding: 28px 18px; }
.chabad-seal span { display: block; font: 38px/1.25 var(--serif); }
.chabad-seal small { display: block; font: 9px/1.5 var(--sans); letter-spacing: 1.3px; margin-top: 20px; }
.chabad-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px; }
.chabad-stats strong { font-size: 23px; font-family: var(--serif); margin-right: 5px; }
.chabad-stats a { margin-left: auto; color: var(--green); }
.chabad-note { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 18px 0; }
.chabad-doors { display: flex; gap: 7px; flex-wrap: wrap; margin: 16px 0 22px; }
#chabad-count { font-size: 11px; margin-bottom: 18px; }
.chabad-records { border-top: 1px solid var(--line); }
.chabad-record { display: grid; grid-template-columns: minmax(0, 1fr) 210px; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); padding: 26px 0; }
.chabad-record h3 { text-align: left; font: 29px/1.4 var(--serif); margin: 8px 0; overflow-wrap: anywhere; }
.chabad-record .eyebrow { font-size: 9px; margin: 0; }
.chabad-record .muted, .chabad-english { font-size: 12px; line-height: 1.6; margin: 4px 0; }
.chabad-record-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 11px; color: var(--green); }
.chabad-record-actions button { text-align: left; }
.chabad-record-actions small { font-size: 9px; color: var(--muted); }
.chabad-coverage { margin-top: 26px; padding: 20px; background: #eeeadd; font-size: 12px; line-height: 1.8; }
.chabad-coverage summary { cursor: pointer; font-weight: 600; }
.chabad-banner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px; margin: 28px 0 0; background: var(--green); color: #fffaf0; }
.chabad-banner small { display: block; font-size: 9px; letter-spacing: 1.3px; margin-bottom: 8px; }
.chabad-banner strong { font: 29px/1.2 var(--serif); }
.chabad-banner > span:last-child { font-size: 11px; }
#chabad-results { margin-top: 25px; }
@media (max-width: 700px) {
  .chabad-hero { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .chabad-hero h1 { font-size: 43px; }
  .chabad-hero p:not(.eyebrow) { font-size: 13px; }
  .chabad-seal { display: none; }
  .chabad-stats { gap: 14px; }
  .chabad-stats a { flex-basis: 100%; margin-left: 0; }
  .chabad-record { grid-template-columns: minmax(0,1fr); gap: 14px; padding: 22px 0; }
  .chabad-record-actions { flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .chabad-record-actions small { flex-basis: 100%; }
  .chabad-record h3 { font-size: 27px; }
  .chabad-banner { align-items: flex-start; flex-direction: column; }
  .sidebar nav a:last-child { grid-column: 1 / -1; }
}
.chabad-record-actions button { border: 0; border-bottom: 1px solid #bfcac0; border-radius: 0; padding: 2px 0; background: transparent; color: var(--green); }
.chabad-record-actions a:hover, .chabad-record-actions button:hover { color: #7c632b; }
.chabad-record h3, .chabad-seal span { font-family: "Frank Ruhl Libre", Georgia, serif; }
.chabad-portals { margin-top: 36px; }
.chabad-portals h2 { font: 30px/1.2 var(--serif); }

/* Source-supplied contents: Hebrew first, nested only as the source provides. */
.source-contents { margin-top: 22px; border-top: 1px solid var(--line); color: var(--green); min-width: 0; }
.chabad-record > .source-contents { grid-column: 1 / -1; margin-top: -8px; }
.source-contents > summary { padding: 15px 0 4px; font-size: 12px; font-weight: 600; }
.source-contents summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; list-style: none; }
.source-contents summary::-webkit-details-marker { display: none; }
.source-contents summary:focus-visible, .toc-read:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.source-contents[open] > summary { padding-bottom: 16px; }
.toc-body { min-width: 0; }
.toc-note, .toc-status { font-size: 11px; line-height: 1.7; color: var(--muted); margin: 8px 0 15px; }
.toc-list { border-top: 1px solid var(--line); }
.toc-branch, .toc-leaf { border-bottom: 1px solid var(--line); }
.toc-branch > summary, .toc-leaf { padding: 13px 2px; }
.toc-branch > .toc-body { border-left: 2px solid #d6dfd4; margin: 0 0 16px 7px; padding: 0 0 0 16px; }
.toc-label { display: flex; flex-direction: column; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.toc-label [lang="he"] { font: 22px/1.4 "Frank Ruhl Libre", Georgia, serif; text-align: left; }
.toc-english { font-size: 12px; line-height: 1.5; }
.toc-count { font-size: 10px; color: var(--muted); flex-shrink: 0; }
.toc-leaf { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.toc-read { font-size: 10px; color: var(--green); white-space: nowrap; border: 0; background: transparent; padding: 10px 0; text-align: left; }
.toc-more { font-size: 11px; margin: 15px 0; }
.toc-source-link { margin: 5px 0; }
#reader-body > .source-contents { margin: 0 0 24px; }
@media(max-width:600px) { .toc-leaf { align-items: flex-start; flex-wrap: wrap; gap: 2px 16px; } .toc-branch > .toc-body { margin-left: 2px; padding-left: 10px; } .toc-count { font-size: 9px; } }

.toc-entry { position: relative; }
.toc-entry > .toc-read { position: absolute; right: 2px; top: 4px; }
.toc-entry > .toc-branch > summary { padding-right: 110px; }
@media(max-width:600px) { .toc-entry > .toc-branch > summary { padding-right: 96px; } .toc-entry > .toc-branch > summary .toc-count { font-size: 0; } .toc-entry > .toc-branch > summary .toc-count span { font-size: 14px; } }
