:root {
  color-scheme: light;
  --paper: #f7f4ee;
  --paper-deep: #efeae0;
  --surface: #fffefa;
  --ink: #242a31;
  --muted: #72756f;
  --line: #e4dfd5;
  --line-strong: #d6d0c4;
  --green: #435f51;
  --green-dark: #31483d;
  --green-pale: #e8efe9;
  --gold: #ae8950;
  --reader-size: 19px;
  --shadow: 0 12px 32px rgba(46, 39, 28, .06);
  font-family: "Heebo", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(67, 95, 81, .35); outline-offset: 2px;
}
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; }
.topbar {
  height: 76px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 64px); background: rgba(255, 254, 250, .94);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 39px; height: 39px; display: block; flex: 0 0 auto; background: transparent;
}
.brand-mark img { display: block; width: 100%; height: 100%; }
.brand-title { display: inline-flex; align-items: baseline; gap: 4px; font-family: "Noto Sans Hebrew", Arial, sans-serif; font-weight: 700; letter-spacing: 0; font-size: 17px; }
.brand-word-source { color: #171915; font-weight: 700; }
.brand-word-light { color: #9a7438; font-weight: 600; }
.brand-subtitle { color: var(--muted); font-size: 12px; margin-top: -1px; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.text-button, .quiet-button, .footer-report, .filter-toggle, .report-button, .page-button, .primary-button {
  border: 0; cursor: pointer; transition: background .16s ease, color .16s ease, transform .16s ease;
}
.text-button { background: transparent; color: var(--green-dark); font-weight: 600; font-size: 13px; padding: 8px 10px; border-radius: 8px; }
.text-button:hover { background: var(--green-pale); }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; position: relative; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); cursor: pointer; font-size: 19px; color: #565d56; }
.icon-button:hover { border-color: var(--line-strong); background: var(--paper); }
.contact-button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); }
.contact-button span { color: var(--gold); font-size: 16px; }

.workspace { display: grid; grid-template-columns: 278px minmax(0, 1fr); direction: rtl; align-items: start; gap: 0; padding: 0 clamp(18px, 4vw, 64px) 54px; }
.sidebar {
  position: sticky; top: 76px; max-height: calc(100vh - 76px); overflow: auto; padding: 24px 18px 20px 19px;
  background: var(--surface); border: 1px solid var(--line); border-left: 0; border-radius: 0 16px 16px 0;
  min-height: min(720px, calc(100vh - 150px)); display: flex; flex-direction: column;
}
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 17px; }
.eyebrow { color: #8c7a5f; text-transform: none; font-size: 11px; font-weight: 600; letter-spacing: .025em; }
.sidebar-heading h2 { margin: 3px 0 0; font-size: 20px; font-family: "Noto Serif Hebrew", Georgia, serif; font-weight: 600; }
.mobile-close { display: none; }
.nav-item, .nav-subitem { width: 100%; display: flex; align-items: center; justify-content: space-between; text-align: right; border: 0; background: transparent; cursor: pointer; color: #515950; border-radius: 9px; transition: background .15s ease, color .15s ease; }
.nav-item { min-height: 41px; padding: 8px 11px; font-size: 13px; font-weight: 600; }
.nav-subitem { min-height: 35px; padding: 6px 12px 6px 9px; color: #71756f; font-size: 12px; font-weight: 400; }
.nav-item:hover, .nav-subitem:hover { background: #f4f1e9; color: var(--green-dark); }
.nav-item.active, .nav-subitem.active { background: var(--green-pale); color: var(--green-dark); }
.nav-count { color: #95988f; font-size: 11px; font-weight: 500; white-space: nowrap; }
.nav-children { border-right: 1px solid #ded9ce; margin: 2px 17px 7px 0; padding-right: 5px; }
.nav-group { margin-top: 3px; }
.sidebar-bottom { margin-top: auto; padding-top: 24px; }
.bookmark-filter { border-top: 1px solid var(--line); border-radius: 0; padding-top: 15px; color: #655d4f; }
.sidebar-note { padding: 0 11px; margin: 7px 0 0; color: #96958e; font-size: 11px; line-height: 1.6; }

.tree-search { display: flex; align-items: center; gap: 8px; min-height: 38px; margin: 0 2px 12px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #92958e; }
.tree-search:focus-within { border-color: #9ab0a1; box-shadow: 0 0 0 3px rgba(67,95,81,.08); }
.tree-search > span { font-size: 18px; }
.tree-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.tree-search input::placeholder { color: #a0a198; }
.division-nav { display: grid; align-content: start; gap: 5px; flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; direction: rtl; text-align: right; }
.tree-volume, .tree-branch { min-width: 0; }
.tree-volume > summary, .tree-branch > summary { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; direction: rtl; text-align: right; list-style: none; cursor: pointer; color: #49564c; }
.tree-volume > summary::-webkit-details-marker, .tree-branch > summary::-webkit-details-marker { display: none; }
.tree-volume > summary::before, .tree-branch > summary::before { content: "⌄"; order: 1; flex: 0 0 auto; color: #8c9389; font-size: 14px; transition: transform .16s ease; }
.tree-volume > summary > span, .tree-branch > summary > span { min-width: 0; text-align: right; }
.tree-volume:not([open]) > summary::before, .tree-branch:not([open]) > summary::before { transform: rotate(90deg); }
.tree-volume > summary { min-height: 43px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fcfbf8; font-size: 13px; font-weight: 700; }
.tree-volume[open] > summary { color: var(--green-dark); background: var(--green-pale); border-color: #d4e0d5; }
.tree-volume > summary small, .tree-branch > summary small { color: #92958d; font-size: 10px; font-weight: 400; white-space: nowrap; }
.tree-volume-items { padding: 4px 12px 8px 0; }
.tree-branch { margin-top: 3px; }
.tree-branch > summary { min-height: 35px; padding: 6px 9px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.tree-branch > summary:hover, .tree-passage:hover { background: #f4f1e9; color: var(--green-dark); }
.tree-subbranch > summary { font-weight: 500; color: #6f756d; font-size: 11px; }
.tree-branch-items { margin: 1px 14px 5px 0; padding: 2px 7px 3px 0; border-right: 1px solid #e2ddd3; }
.tree-passage { width: 100%; min-height: 31px; display: grid; grid-template-columns: minmax(26px, auto) minmax(0,1fr); align-items: start; gap: 7px; border: 0; border-radius: 7px; padding: 5px 7px; background: transparent; direction: rtl; text-align: right; color: #747970; cursor: pointer; font-size: 10px; line-height: 1.45; }
.tree-passage.active { color: var(--green-dark); background: #eaf0ea; box-shadow: inset -2px 0 var(--green); }
.tree-passage-letter { color: #786849; font-weight: 700; white-space: nowrap; }
.tree-passage-title { min-width: 0; text-align: right; }
.tree-passage.no-source-change { color: #a3a59e; }
.tree-passage.no-source-change .tree-passage-letter { color: #aaa99f; }
.tree-passage.no-source-change:hover, .tree-passage.no-source-change:focus-visible { color: var(--green-dark); }
.tree-no-results { padding: 8px 10px; color: #8a8d84; font-size: 11px; line-height: 1.6; }
.tree-search-empty { margin: 8px 4px; color: #888b83; font-size: 12px; text-align: center; }

.main-content { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px 0 16px 16px; padding: clamp(22px, 3vw, 42px); box-shadow: var(--shadow); }
.main-content.home-mode { min-height: min(760px, calc(100vh - 140px)); display: flex; flex-direction: column; }
.main-content.home-mode .search-panel { order: 1; }
.main-content.home-mode .welcome-view { order: 2; width: 100%; }
.main-content.home-mode #reader-view { order: 3; }
.welcome-view { max-width: 720px; margin: 12px auto 31px; text-align: center; }
.welcome-mark { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 18px 18px 18px 5px; background: var(--green); color: #f8f4e9; font-family: "Noto Serif Hebrew", Georgia, serif; font-size: 29px; box-shadow: 0 7px 20px rgba(49,72,61,.14); }
.welcome-view .eyebrow { color: #8f805f; }
.welcome-view h1 { margin: 9px 0 10px; color: #26352c; font-family: "Noto Serif Hebrew", Georgia, serif; font-size: clamp(32px, 4vw, 46px); font-weight: 600; letter-spacing: -.035em; line-height: 1.25; }
.welcome-intro { max-width: 880px; margin: 0 auto; color: #50574f; text-align: right; font-size: 15px; line-height: 1.9; }
.welcome-intro p { margin: 0 0 12px; }
.welcome-view h1 span { color: #68786c; font-size: .72em; font-weight: 500; }
.welcome-lede { max-width: 510px; margin: 0 auto; color: #73796f; font-size: 14px; line-height: 1.8; }
.research-credit { margin: 14px auto 0; color: #85877f; font-size: 12px; line-height: 1.8; }
.research-credit a { color: #536e5d; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.research-credit a:hover { color: #31483d; }
.welcome-actions { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; }
.welcome-actions .primary-button { min-height: 43px; padding-inline: 19px; }
.welcome-actions .primary-button span { margin-right: 9px; }
.welcome-volumes { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 11px; margin: 28px auto 0; max-width: 610px; }
.welcome-volume { min-height: 128px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px solid var(--line); border-radius: 14px; background: #fffefa; color: #47564a; cursor: pointer; box-shadow: 0 5px 16px rgba(46,39,28,.035); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.welcome-volume:hover { transform: translateY(-2px); border-color: #c8d4c9; box-shadow: 0 10px 24px rgba(46,39,28,.08); }
.welcome-volume > span:not(.volume-letter) { font-weight: 700; font-size: 13px; }
.welcome-volume small { color: #92958c; font-size: 10px; }
.volume-letter { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 5px; border-radius: 11px; background: #eef2ec; color: #4f6a57; font-family: "Noto Serif Hebrew", Georgia, serif; font-size: 18px; }
.welcome-hint { margin: 15px 0 0; color: #9b9b92; font-size: 11px; }
.home-mode .search-panel { margin: 22px auto 0; max-width: 760px; }
.home-mode .filter-toggle { display: none; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.intro-copy { max-width: 740px; }
.intro-copy h1 { font-family: "Noto Serif Hebrew", Georgia, serif; color: #26322c; font-weight: 600; font-size: clamp(26px, 3vw, 36px); line-height: 1.32; margin: 5px 0 7px; letter-spacing: -.025em; }
.intro-copy p { margin: 0; color: #777c75; font-size: 14px; }
.intro-stat { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 66px; height: 66px; border-radius: 18px 18px 18px 5px; background: #f2efe7; color: var(--green-dark); }
.intro-stat span { font-family: "Noto Serif Hebrew", Georgia, serif; font-size: 23px; font-weight: 600; line-height: 1.05; }
.intro-stat small { font-size: 10px; color: #777c75; margin-top: 3px; }

.search-panel { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.search-box { height: 48px; flex: 1; display: flex; align-items: center; gap: 11px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: #92958e; }
.search-box:focus-within { border-color: #9ab0a1; box-shadow: 0 0 0 3px rgba(67,95,81,.08); }
.search-icon { font-size: 22px; line-height: 1; transform: rotate(-18deg); }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.search-box input::placeholder { color: #a0a198; }
.clear-search { width: 25px; height: 25px; border: 0; background: transparent; color: #777; font-size: 19px; cursor: pointer; }
.filter-toggle { height: 48px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; background: #f6f4ef; border: 1px solid var(--line); border-radius: 11px; padding: 0 15px; color: #515a53; font-size: 13px; font-weight: 600; }
.filter-toggle:hover { background: var(--green-pale); border-color: #d1dbd2; }
.chevron { color: #899087; font-size: 16px; margin-right: 2px; }
.filter-panel { border: 1px solid var(--line); border-radius: 12px; padding: 17px 18px 16px; background: #fbfaf6; margin-bottom: 16px; }
.filter-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.filter-heading h2 { margin: 0; font-size: 14px; }
.filter-heading p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.filter-heading .auto-change-note { margin-top: 7px; color: #878b83; font-size: 11px; }
.type-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.type-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: white; color: #62675f; font-size: 12px; cursor: pointer; }
.type-chip:hover { border-color: #c9cec6; }
.type-chip.selected { background: #eaf0eb; border-color: #a8b8ac; color: #344c3f; box-shadow: 0 0 0 1px rgba(67,95,81,.04); }
.type-symbol { min-width: 19px; font-size: 11px; font-weight: 700; text-align: center; }
.type-language .type-symbol, .tag-language .type-symbol { color: #a56d1f; }
.type-content .type-symbol, .tag-content .type-symbol { color: #70538b; }
.type-presence .type-symbol, .tag-presence .type-symbol { color: #187766; }
.type-moved .type-symbol, .tag-moved .type-symbol { color: #376a9b; }
.type-other .type-symbol, .tag-other .type-symbol { color: #6e7783; }

.reading-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.mode-switch { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border-radius: 10px; background: #f1efe9; }
.mode-button { min-height: 33px; padding: 6px 12px; border: 0; border-radius: 8px; background: transparent; color: #74776f; cursor: pointer; font-size: 12px; transition: all .15s ease; }
.mode-button.active { color: #314b3e; background: #fffefa; box-shadow: 0 1px 3px rgba(47, 45, 38, .12); font-weight: 600; }
.toolbar-secondary { display: flex; align-items: center; gap: 16px; }
.quiet-button { background: transparent; color: #777b73; padding: 7px 9px; border-radius: 8px; font-size: 12px; }
.quiet-button:hover { background: #f2f0ea; color: #414b43; }
.quiet-button:disabled { opacity: .42; cursor: default; }
.marks-toggle { display: inline-flex; align-items: center; gap: 7px; }
.toggle-indicator { width: 20px; height: 12px; border-radius: 8px; background: #aab9ac; position: relative; transition: background .18s; }
.toggle-indicator::after { content: ""; width: 8px; height: 8px; border-radius: 50%; position: absolute; right: 2px; top: 2px; background: white; transition: right .18s; }
.marks-toggle.inactive .toggle-indicator { background: #d6d4ce; }
.marks-toggle.inactive .toggle-indicator::after { right: 10px; }
.text-size-control { display: inline-flex; align-items: center; gap: 5px; color: #777b73; font-family: Georgia, serif; font-size: 12px; }
.text-size-control input { width: 68px; height: 4px; accent-color: var(--green); cursor: pointer; }
.text-size-control .large-a { font-size: 17px; }
.active-filter-line { padding: 10px 0 0; color: #777b73; font-size: 11px; }

.results { padding-top: 10px; }
.passage-card { margin: 17px 0 21px; border: 1px solid var(--line); border-radius: 13px; background: #fff; overflow: clip; scroll-margin-top: 100px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; background: #faf9f5; border-bottom: 1px solid var(--line); padding: 8px 15px; }
.card-location { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #75786f; font-size: 11px; }
.card-location > span:first-child { color: #526457; font-weight: 600; }
.crumb-separator { color: #b3afa4; }
.card-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; }
.change-summary { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.mini-tag { font-size: 9px; padding: 3px 6px; border-radius: 6px; white-space: nowrap; background: #f2f1ed; color: #666; }
.mini-tag.tag-language { color: #8e651e; background: #fbf2df; }
.mini-tag.tag-content { color: #6d4f83; background: #f0eafa; }
.mini-tag.tag-presence { color: #17695e; background: #e4f2ed; }
.mini-tag.tag-moved { color: #376993; background: #e8f0f8; }
.mini-tag.tag-other { color: #66717c; background: #eff1f3; }
.bookmark-button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: #8f917f; font-size: 20px; line-height: 1; cursor: pointer; }
.bookmark-button:hover { background: #f0ecdf; color: #9d793a; }
.bookmark-button.saved { color: #b28a3e; }
.report-button { display: inline-flex; align-items: center; gap: 5px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #73776f; padding: 6px 8px; font-size: 11px; white-space: nowrap; }
.report-button:hover, .footer-report:hover { color: #965d49; background: #f8eee9; }
.compare-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); direction: rtl; }
.mode-orot .compare-grid { grid-template-columns: 1fr; }
.mode-source .compare-grid { grid-template-columns: 1fr; }
.text-panel { min-width: 0; padding: 16px clamp(14px, 2.2vw, 26px) 20px; }
.text-panel + .text-panel { border-right: 1px solid var(--line); }
.mode-orot .text-panel + .text-panel, .mode-source .text-panel + .text-panel { border-right: 0; }
.source-panel { background: #fffefa; }
.panel-label { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; color: #50574f; font-size: 11px; font-weight: 700; }
.panel-dot { width: 7px; height: 7px; border-radius: 50%; }
.orot-dot { background: var(--green); }
.source-dot { background: #aa8958; }
.citation { color: #687268; font-size: 11px; line-height: 1.7; margin-bottom: 6px; }
.passage-title { color: #66583f; font-family: "Noto Serif Hebrew", Georgia, serif; font-size: 14px; font-weight: 600; line-height: 1.5; margin: 3px 0 7px; }
.source-spacer { height: 5px; }
.text-body { font-family: "Noto Serif Hebrew", "David Libre", "Times New Roman", serif; font-size: var(--reader-size); line-height: 1.95; color: #272c2b; white-space: pre-wrap; text-align: justify; overflow-wrap: anywhere; font-weight: 400; }
.source-panel .text-body { color: #373b38; }
.empty-passage { color: #8b8b84; font-family: "Heebo", Arial, sans-serif; font-size: 13px; font-style: italic; }
.marked-text { display: inline; border: 0; margin: 0; padding: 0 1px; border-radius: 3px; color: inherit; line-height: inherit; font-family: inherit; font-size: inherit; cursor: help; white-space: inherit; transition: background .12s ease, box-shadow .12s ease; }
.marked-text:hover, .marked-text:focus-visible { position: relative; z-index: 1; }
.tag-language { text-decoration: underline; text-decoration-color: #c48f35; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.marked-text.tag-language:hover, .marked-text.tag-language:focus-visible { background: #fff1cf; }
.tag-content { font-weight: 700; text-decoration: underline dotted rgba(109,79,131,.7); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.marked-text.tag-content:hover, .marked-text.tag-content:focus-visible { background: #f1eafa; }
.tag-presence { text-decoration: underline; text-decoration-style: wavy; text-decoration-color: #238271; text-decoration-thickness: 1.2px; text-underline-offset: 4px; }
.marked-text.tag-presence:hover, .marked-text.tag-presence:focus-visible { background: #e0f2ec; }
.tag-moved { background: #eaf1f8; box-shadow: inset 0 -1px 0 #79a1c4; }
.marked-text.tag-moved:hover, .marked-text.tag-moved:focus-visible { background: #dceaf5; }
.tag-other { box-shadow: inset 0 -1px 0 #c0c5c1; }
.marked-text.tag-other:hover, .marked-text.tag-other:focus-visible { background: #f0f1f3; }
.gap-marker { display: inline-grid; place-items: center; width: 15px; height: 18px; vertical-align: baseline; border: 0; border-radius: 5px; padding: 0; margin: 0 2px; color: #426956; background: #e5eee7; font-family: Arial, sans-serif; font-size: 15px; font-weight: 700; line-height: 1; cursor: help; }
.gap-marker:hover, .gap-marker:focus-visible { outline: 2px solid rgba(67,95,81,.25); background: #d7e5da; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 17px 0 7px; color: #666d66; font-size: 12px; }
.pagination small { color: #999b94; font-size: 10px; }
.page-button { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 8px 13px; color: #525a53; font-size: 12px; }
.page-button:hover:not(:disabled) { background: var(--green-pale); border-color: #c4d1c5; }
.page-button:disabled { opacity: .4; cursor: default; }
.empty-state { text-align: center; margin: 45px auto; max-width: 380px; color: #777b73; }
.empty-icon { width: 45px; height: 45px; display: grid; place-items: center; margin: 0 auto 13px; border-radius: 16px; background: #f0eee7; color: #858577; font-size: 23px; }
.empty-state h2 { margin: 0 0 6px; color: #3e4941; font-family: "Noto Serif Hebrew", Georgia, serif; font-size: 19px; }
.empty-state p { margin: 0; font-size: 13px; line-height: 1.7; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 31px; padding-top: 13px; border-top: 1px solid var(--line); color: #999b94; font-size: 10px; }
.footer-report { background: transparent; color: #7c716b; padding: 7px 9px; border-radius: 7px; font-size: 11px; white-space: nowrap; }
.mobile-toolbar { display: none; }

.pair-popover { z-index: 70; position: fixed; max-width: calc(100vw - 24px); border: 1px solid #d9d4ca; border-radius: 12px; background: #fffefa; padding: 12px 14px 14px; box-shadow: 0 12px 35px rgba(29, 34, 30, .18); direction: rtl; text-align: right; }
.popover-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.popover-head strong { display: block; color: #3b4b40; font-size: 12px; }
.popover-head small { display: block; color: #83857d; font-size: 10px; margin-top: 2px; line-height: 1.5; }
.popover-report { flex: 0 0 auto; width: 27px; height: 27px; border: 0; border-radius: 7px; color: #7b786d; background: #f4f1eb; cursor: pointer; }
.popover-report:hover { color: #925c47; background: #f8eee8; }
.popover-categories { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.popover-tag { border-radius: 5px; padding: 3px 6px; font-family: "Heebo", Arial, sans-serif; font-size: 9px; }
.popover-tag.tag-language { color: #8e651e; background: #fbf2df; }
.popover-tag.tag-content { color: #6d4f83; background: #f0eafa; }
.popover-tag.tag-presence { color: #17695e; background: #e4f2ed; }
.popover-tag.tag-moved { color: #376993; background: #e8f0f8; }
.popover-tag.tag-other { color: #66717c; background: #eff1f3; }
.counterpart-text { border-top: 1px solid #ece7dc; margin-top: 9px; padding-top: 9px; color: #272e29; font-family: "Noto Serif Hebrew", Georgia, serif; font-size: 15px; line-height: 1.75; max-height: 190px; overflow: auto; }

.app-dialog { width: min(520px, calc(100vw - 28px)); max-height: min(92vh, 850px); padding: 0; border: 1px solid #ded8cc; border-radius: 17px; color: var(--ink); background: var(--surface); box-shadow: 0 25px 70px rgba(28, 31, 27, .22); }
.app-dialog::backdrop { background: rgba(30, 36, 31, .42); backdrop-filter: blur(2px); }
.dialog-content { padding: 24px clamp(19px, 5vw, 31px) 23px; overflow: auto; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.dialog-heading h2 { margin: 4px 0 0; color: #29372f; font-family: "Noto Serif Hebrew", Georgia, serif; font-size: 25px; font-weight: 600; }
.dialog-close { font-size: 22px; line-height: 1; }
.dialog-intro { margin: 10px 0 17px; color: #777b73; font-size: 13px; line-height: 1.7; }
.report-location { white-space: pre-line; padding: 11px 13px; margin-bottom: 16px; border-radius: 9px; background: #f3f1eb; color: #656d65; font-size: 11px; line-height: 1.8; }
.form-label { display: flex; align-items: baseline; gap: 7px; margin: 12px 0 5px; color: #454e47; font-size: 12px; font-weight: 600; }
.form-label span { color: #92948c; font-size: 10px; font-weight: 400; }
.app-dialog select, .app-dialog input, .app-dialog textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 9px; background: white; padding: 10px 11px; color: var(--ink); font-size: 13px; }
.app-dialog textarea { resize: vertical; line-height: 1.65; }
.app-dialog input::placeholder, .app-dialog textarea::placeholder { color: #a4a49d; }
.privacy-note { color: #888b83; font-size: 10px; line-height: 1.6; margin: 8px 0 0; }
.form-status { border-radius: 8px; margin-top: 12px; padding: 10px 12px; font-size: 12px; line-height: 1.6; }
.form-status.pending { background: #fff4df; color: #775820; }
.form-status.success { background: #e7f2e9; color: #365f43; }
.form-status.sending { background: #edf1ed; color: #526456; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-start; gap: 9px; margin-top: 19px; }
.primary-button { min-height: 39px; border-radius: 9px; padding: 8px 16px; background: var(--green); color: white; font-size: 12px; font-weight: 600; }
.primary-button:hover:not(:disabled) { background: var(--green-dark); }
.primary-button:disabled { opacity: .56; cursor: wait; }
.dialog-actions .quiet-button { min-height: 39px; }
.mobile-scrim { display: none; }

@media (max-width: 980px) {
  .workspace { grid-template-columns: 238px minmax(0, 1fr); padding-inline: 18px; }
  .sidebar { padding-inline: 12px; }
  .main-content { padding: 25px 20px; }
  .change-summary { display: none; }
}

@media (max-width: 720px) {
  .topbar { height: 64px; padding-inline: 14px; }
  .brand-mark { width: 35px; height: 35px; font-size: 20px; }
  .brand-title { font-size: 15px; }
  .topbar-actions { gap: 8px; }
  .text-button { font-size: 11px; }
  .workspace { display: block; padding: 0 12px 32px; }
  .sidebar { position: fixed; z-index: 52; top: 0; right: 0; bottom: 0; width: min(310px, 87vw); max-height: none; min-height: 0; border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: -15px 0 45px rgba(28,31,27,.12); transform: translateX(110%); transition: transform .23s ease; padding: 22px 17px; }
  .sidebar.open { transform: translateX(0); }
  .mobile-scrim:not([hidden]) { display: block; position: fixed; z-index: 50; inset: 0; background: rgba(25,30,26,.34); }
  .mobile-close { display: grid; }
  .mobile-toolbar { display: flex; align-items: center; gap: 10px; height: 47px; color: #687168; font-size: 12px; }
  .mobile-toolbar .icon-button { width: 32px; height: 32px; font-size: 16px; }
  .main-content { border-radius: 14px; padding: 19px 14px 23px; }
  .main-content.home-mode { min-height: calc(100vh - 92px); }
  .welcome-view { margin: 10px auto 18px; }
  .welcome-mark { width: 43px; height: 43px; margin-bottom: 11px; font-size: 24px; }
  .welcome-view h1 { font-size: 32px; }
  .welcome-lede { font-size: 12px; }
  .research-credit { margin-top: 10px; font-size: 11px; }
  .welcome-actions { margin-top: 16px; flex-wrap: wrap; }
  .welcome-volumes { gap: 7px; margin-top: 19px; }
  .welcome-volume { min-height: 104px; border-radius: 11px; }
  .welcome-volume > span:not(.volume-letter) { font-size: 11px; }
  .welcome-volume small { font-size: 9px; }
  .volume-letter { width: 30px; height: 30px; font-size: 16px; }
  .welcome-hint { font-size: 10px; }
  .page-intro { align-items: center; gap: 9px; margin-bottom: 19px; }
  .intro-copy h1 { font-size: 25px; }
  .intro-copy p { font-size: 12px; line-height: 1.55; }
  .intro-stat { min-width: 55px; width: 55px; height: 55px; border-radius: 15px 15px 15px 4px; }
  .intro-stat span { font-size: 20px; }
  .search-panel { align-items: stretch; gap: 7px; }
  .search-box { min-height: 45px; height: auto; padding-inline: 10px; gap: 7px; }
  .search-box input { font-size: 12px; }
  .search-icon { font-size: 19px; }
  .filter-toggle { min-height: 45px; height: auto; padding-inline: 10px; gap: 5px; font-size: 11px; }
  .filter-toggle > span:first-child { display: none; }
  .filter-panel { padding: 13px 12px; }
  .filter-heading p { max-width: 245px; line-height: 1.55; }
  .type-filters { gap: 6px; }
  .type-chip { font-size: 10px; padding: 6px 7px; }
  .reading-toolbar { align-items: flex-start; flex-direction: column; gap: 11px; padding: 11px 0 13px; }
  .mode-switch { width: 100%; }
  .mode-button { flex: 1; padding-inline: 4px; font-size: 11px; }
  .toolbar-secondary { width: 100%; justify-content: space-between; }
  .text-size-control input { width: 62px; }
  .passage-card { margin: 13px 0 16px; }
  .card-head { align-items: flex-start; padding: 8px 10px; gap: 5px; }
  .card-location { font-size: 10px; gap: 5px; padding-top: 6px; }
  .card-actions { gap: 2px; }
  .bookmark-button { width: 27px; height: 29px; }
  .report-button { font-size: 0; width: 29px; height: 29px; justify-content: center; border: 1px solid var(--line); }
  .report-button span { font-size: 14px; }
  .compare-grid { grid-template-columns: 1fr; }
  .text-panel { padding: 13px 12px 17px; }
  .text-panel + .text-panel { border-right: 0; border-top: 1px solid var(--line); }
  .panel-label { font-size: 10px; }
  .citation { font-size: 10px; }
  .passage-title { font-size: 13px; }
  .text-body { text-align: right; line-height: 1.9; }
  .pagination { gap: 9px; font-size: 11px; }
  .page-button { padding: 7px 10px; font-size: 11px; }
  .page-footer { align-items: flex-start; flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media print {
  :root, body { background: white; }
  .topbar, .sidebar, .search-panel, .filter-panel, .reading-toolbar, .card-actions, .pagination, .page-footer, .mobile-toolbar, .welcome-view { display: none !important; }
  .workspace { display: block; padding: 0; }
  .main-content { border: 0; box-shadow: none; padding: 0; }
  .passage-card { break-inside: avoid; box-shadow: none; }
  .compare-grid { grid-template-columns: 1fr 1fr !important; }
}

/* The selected home design: a centered, three-column scholarly index. */
.brand { color: inherit; text-decoration: none; }
.brand:focus-visible { border-radius: 8px; outline: 3px solid rgba(67,95,81,.35); outline-offset: 5px; }
.brand-title { font-size: 19px; font-weight: 700; letter-spacing: 0; }
.sidebar-tools { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; }
.sidebar-tree-search { flex: 1; margin: 0; min-width: 0; }
.sidebar-tree-search input { font-size: 12px; }
.tree-search > button { flex: 0 0 auto; border: 0; background: transparent; color: #858980; font-size: 19px; line-height: 1; cursor: pointer; }
.home-tree-search { max-width: 570px; min-height: 52px; margin: 0 auto 19px; padding-inline: 16px; border-radius: 13px; background: #fffefa; box-shadow: 0 8px 22px rgba(48,58,48,.07); }
.home-tree-search > span { font-size: 22px; color: var(--green); }
.home-tree-search input { font-size: 14px; }
.home-tree-search input::placeholder { font-size: 14px; }
.home-tree-search > button { font-size: 22px; }
.workspace.home-mode { display: flex; flex-direction: column; gap: 0; padding-inline: clamp(16px, 5vw, 72px); }
.workspace.home-mode .sidebar { display: none; }
.workspace.home-mode .main-content { order: 0; width: 100%; max-width: 1240px; margin: 0 auto; padding: 25px 0 35px; border: 0; border-radius: 0; background: transparent; box-shadow: none; min-height: auto; display: block; }
.main-content.home-mode .mobile-toolbar { display: none; }
.main-content.home-mode .welcome-view { max-width: none; width: 100%; margin: 8px auto 0; text-align: center; }
.welcome-view h1 { margin: 0; color: var(--green-dark); font-family: "Gveret Levin", cursive; font-size: clamp(34px, 3.8vw, 46px); font-weight: 400; letter-spacing: 0; line-height: 1.35; }
.welcome-intro { max-width: 900px; margin-top: 14px; font-size: 15px; }
.welcome-intro p { margin-bottom: 11px; }
.research-credit { margin: 8px auto 23px; color: var(--muted); font-size: 12px; }
.research-credit a { color: var(--green-dark); }
.home-tree { width: 100%; max-width: 1160px; margin: 0 auto; text-align: right; }
.home-division-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: clamp(18px, 3vw, 38px); max-height: none; overflow: visible; }
.home-division-nav .tree-volume { border-top: 2px solid #829589; padding-top: 5px; }
.home-division-nav .tree-volume > summary { min-height: 44px; border: 0; border-radius: 0; padding: 7px 3px; background: transparent; color: var(--green-dark); font-family: "Noto Serif Hebrew", Georgia, serif; font-size: 19px; font-weight: 600; }
.home-division-nav .tree-volume[open] > summary { border: 0; background: transparent; }
.home-division-nav .tree-volume-items { padding: 1px 2px 5px 0; }
.home-division-nav .tree-branch { margin-top: 5px; }
.home-division-nav .tree-branch > summary { min-height: 33px; padding: 5px 7px; font-size: 13px; }
.home-division-nav .tree-subbranch > summary { font-size: 12px; }
.home-division-nav .tree-branch-items { margin-right: 12px; padding-right: 8px; }
.home-division-nav .tree-passage { min-height: 34px; grid-template-columns: minmax(23px, auto) minmax(0, 1fr); padding: 6px 7px; font-size: 12px; }
.home-division-nav .tree-passage-letter { font-size: 12px; }
.home-division-nav .tree-passage-title { min-height: 17px; }
.home-division-nav .tree-no-results { display: none; }
.sidebar .division-nav { overflow: auto; }
.sidebar-tools .mobile-close { margin-inline-start: 0; }
.filter-toggle { height: auto; min-height: 34px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: transparent; font-size: 12px; }
.filter-toggle:hover { background: var(--green-pale); }
.filter-panel { margin-top: 14px; }
.filter-heading p { line-height: 1.6; }
.filter-heading .auto-change-note { margin-top: 5px; }
.type-filters { gap: 6px 15px; }
.type-chip { display: inline-flex; border: 0; border-radius: 3px; background: transparent; padding: 5px 3px; color: inherit; font-size: 13px; transition: opacity .15s ease, background .15s ease; }
.type-chip.selected { background: transparent; border: 0; box-shadow: none; }
.type-chip:not(.selected) { opacity: .38; }
.type-chip.type-language { color: #8e651e; text-decoration: underline; text-decoration-color: #c48f35; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.type-chip.type-content { color: #70538b; font-weight: 700; text-decoration: underline dotted rgba(109,79,131,.7); text-underline-offset: 3px; }
.type-chip.type-presence { color: #187766; text-decoration: underline wavy #238271; text-underline-offset: 4px; }
.type-chip.type-moved { color: #376a9b; background: #eaf1f8; box-shadow: inset 0 -1px 0 #79a1c4; }
.type-chip.type-moved.selected { background: #eaf1f8; }
.type-chip.type-other { color: #66717c; box-shadow: inset 0 -1px 0 #c0c5c1; }
.type-chip:focus-visible { outline: 2px solid rgba(67,95,81,.45); outline-offset: 2px; }
.toolbar-secondary { gap: 9px; }
.app-toast { position: fixed; z-index: 100; inset-inline-start: 22px; bottom: 22px; max-width: min(440px, calc(100vw - 36px)); border: 1px solid #c8d6cb; border-radius: 10px; background: #fffefa; color: #344b3d; padding: 12px 16px; box-shadow: 0 8px 28px rgba(34,42,35,.16); font-size: 13px; line-height: 1.55; }

@media (max-width: 980px) {
  .home-division-nav { gap: 14px; }
  .home-division-nav .tree-passage { font-size: 11px; }
}
@media (max-width: 720px) {
  .sidebar-tools { display: flex; align-items: center; justify-content: flex-start; min-height: 42px; margin-bottom: 12px; }
  .brand { gap: 7px; }
  .brand-mark { width: 35px; height: 35px; }
  .brand-title { font-size: 17px; }
  .workspace.home-mode { display: block; padding: 0 14px 28px; }
  .workspace.home-mode .main-content { padding: 19px 0 24px; }
  .home-tree { margin-top: 17px; }
  .home-tree-search { min-height: 47px; margin-bottom: 14px; }
  .home-division-nav { grid-template-columns: 1fr; gap: 17px; }
  .home-division-nav .tree-volume > summary { font-size: 18px; }
  .welcome-view h1 { font-size: 27px; }
  .welcome-intro { font-size: 13px; line-height: 1.85; }
  .research-credit { margin-bottom: 16px; font-size: 11px; }
  .sidebar-tree-search { min-height: 38px; }
  .app-toast { inset-inline: 12px; bottom: 12px; margin: auto; }
}

.home-highlights { width: min(100%, 1040px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px auto 22px; direction: rtl; }
.home-highlight { min-height: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 13px 15px; border: 1px solid #e5ddcd; border-top: 2px solid #b8945f; border-radius: 11px; background: linear-gradient(145deg, #fffefa, #f7f3ea); color: #435447; box-shadow: 0 5px 16px rgba(46,39,28,.04); font-family: "Noto Sans Hebrew", "Heebo", Arial, sans-serif; font-size: 14px; font-weight: 600; line-height: 1.5; text-align: center; }
.home-highlight-note { color: #7b7c72; font-size: 12px; font-weight: 400; }
.source-notice { display: table; max-width: 100%; margin: 16px 0 0; padding: 6px 11px; border-right: 2px solid #b8945f; border-radius: 4px; background: #f8f5ee; color: #786849; font-family: "Noto Sans Hebrew", "Heebo", Arial, sans-serif; font-size: .72em; font-style: italic; line-height: 1.6; text-align: right; }
@media (max-width: 720px) {
  .home-highlights { grid-template-columns: 1fr; gap: 8px; margin: 16px auto 19px; }
  .home-highlight { min-height: 56px; padding: 10px 14px; font-size: 13px; }
}

/* Bookmark access, larger navigation text, and a compact responsive comparison. */
.tree-passage { font-size: 12px; }
.tree-branch > summary { font-size: 13px; }
.tree-subbranch > summary { font-size: 12px; }
.tree-search input { font-size: 13px; }
.eyebrow { font-size: 12px; }
.tree-volume > summary small, .tree-branch > summary small { font-size: 11px; }
.tree-search-empty, .tree-no-results { font-size: 12px; }
.card-location, .citation, .panel-label { font-size: 12px; }
.mini-tag { font-size: 10px; }
.report-button, .footer-report { font-size: 12px; }
.page-footer { font-size: 11px; }
.popover-head strong { font-size: 13px; }
.popover-head small { font-size: 11px; }
.popover-tag { font-size: 10px; }
.report-location { font-size: 12px; }
.privacy-note { font-size: 11px; }
.form-label span { font-size: 11px; }

/* Home landing flow and bookmark list rows. */
.main-content.home-mode .welcome-view { display: block; min-height: 0; }
.main-content.home-mode .home-tree { margin: 18px auto 0; }
.home-about { max-width: 920px; margin: clamp(20px, 3vh, 34px) auto 35px; padding: 27px clamp(18px, 4vw, 42px) 20px; border-top: 1px solid var(--line); border-radius: 0 0 16px 16px; background: linear-gradient(180deg, rgba(255,254,250,.6), rgba(255,254,250,0)); }
.home-about.reveal-pending { opacity: .6; transform: translateY(6px); }
.home-about.is-visible { opacity: 1; transform: none; transition: opacity .65s ease, transform .65s ease; }
.home-about .welcome-intro { max-width: 800px; margin: 0 auto; font-size: 16px; line-height: 1.95; }
.home-about .research-credit { margin-top: 17px; text-align: center; }
.home-poem { max-width: 790px; margin: 27px 0 8px auto; padding: 16px clamp(12px, 3vw, 28px) 12px; border-top: 1px solid rgba(167,124,61,.42); color: #40564a; font-family: "Gveret Levin", cursive; font-size: 15px; line-height: 1.8; text-align: right; }
.home-poem p { margin: 0 0 5px; }
.home-poem .home-poem-title { margin: 0 0 8px; color: var(--green-dark); font-size: 1.05em; line-height: 1.45; }
.home-poem .home-poem-title strong { font-weight: 700; }
.home-scripture { margin: 20px auto 5px; color: #536557; font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1.7; text-align: center; }
.home-highlight { font-family: "Gveret Levin", cursive; font-size: 17px; font-weight: 400; }
.bookmark-row { display: grid; grid-template-columns: minmax(0,1fr) 34px; align-items: center; gap: 4px; min-width: 0; border-bottom: 1px solid #ece8df; }
.bookmark-row:last-child { border-bottom: 0; }
.bookmark-link { display: grid; grid-template-columns: auto minmax(0,1fr) 14px; align-items: center; gap: 9px; min-height: 48px; padding: 7px 5px; border: 0; border-radius: 0; background: transparent; text-align: right; }
.bookmark-link:hover, .bookmark-link:focus-visible { border-color: transparent; background: transparent; }
.bookmark-link-letter { display: block; width: auto; height: auto; border-radius: 0; padding: 0 0 0 5px; background: transparent; color: #7b6743; font-size: 12px; font-weight: 650; white-space: nowrap; }
.bookmark-link-copy strong { font-size: 13px; }
.bookmark-link-copy small { font-size: 12px; }
.bookmark-link-arrow { font-size: 14px; }
.bookmark-remove { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #858176; font-size: 20px; line-height: 1; cursor: pointer; }
.bookmark-remove:hover, .bookmark-remove:focus-visible { border-color: #e4d9c8; background: #f5eee4; color: #805d46; }
@media (max-width: 720px) {
  .main-content.home-mode .welcome-view { min-height: 0; }
  .home-about { margin-top: 20px; padding: 21px 13px 14px; }
  .home-about .welcome-intro { font-size: 15px; }
  .home-poem { margin-top: 20px; padding-inline: 8px; font-size: 14px; line-height: 1.75; }
  .home-highlight { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-about.reveal-pending { opacity: 1; transform: none; }
  .home-about.is-visible { transition: none; }
}
.bookmark-row { grid-template-columns: minmax(0,1fr) 30px; }
.bookmark-link { display: block; min-width: 0; min-height: 39px; padding: 9px 5px; color: #465349; font-size: 14px; font-weight: 500; line-height: 1.5; white-space: normal; }
.bookmark-link-copy { display: block; overflow-wrap: anywhere; }
.bookmark-link:hover, .bookmark-link:focus-visible, .home-bookmark-links .bookmark-link { border: 0; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.bookmark-link-arrow, .bookmark-link-letter { display: none !important; }
.bookmark-remove { justify-self: start; width: 26px; height: 30px; border: 0; border-radius: 0; color: #858176; }
.bookmark-remove:hover, .bookmark-remove:focus-visible { border: 0; background: transparent; color: #805d46; text-decoration: underline; text-underline-offset: 3px; }
.main-content.home-mode .home-tree { margin: 18px auto 0; }
.home-highlights { margin-top: 24px; margin-bottom: 26px; }
.bookmark-nav { margin: 3px 0 12px; border-bottom: 1px solid var(--line); padding-bottom: 9px; }
.bookmark-nav > summary { display: flex; align-items: center; justify-content: space-between; min-height: 39px; padding: 5px 8px; border-radius: 8px; color: #536557; font-size: 14px; font-weight: 650; cursor: pointer; list-style: none; }
.bookmark-nav > summary::-webkit-details-marker { display: none; }
.bookmark-nav > summary::before { content: "☆"; color: #a47d40; font-size: 18px; margin-inline-end: 7px; }
.bookmark-nav > summary span:first-child { margin-inline-end: auto; }
.bookmark-nav-count { color: #8c897e; font-size: 12px; font-weight: 500; }
.bookmark-links { display: grid; gap: 5px; padding: 3px 0; }
.bookmark-link { width: 100%; display: grid; grid-template-columns: 30px minmax(0,1fr) 14px; align-items: center; gap: 8px; min-height: 52px; padding: 7px 8px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #404b42; text-align: right; cursor: pointer; }
.bookmark-link:hover, .bookmark-link:focus-visible { border-color: #e2ddcf; background: #f8f6f0; }
.bookmark-link-letter { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #f2ecdf; color: #896b38; font-size: 13px; font-weight: 700; }
.bookmark-link-copy { min-width: 0; display: grid; gap: 2px; }
.bookmark-link-copy strong { overflow: hidden; color: #465349; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.bookmark-link-copy small { overflow: hidden; color: #85877f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.bookmark-link-arrow { color: #a18c68; font-size: 15px; }
.home-bookmarks { width: min(100%, 1040px); margin: 18px auto 21px; padding: 15px 18px; border: 1px solid #e5ddcd; border-radius: 15px; background: linear-gradient(120deg,#fbfaf6,#f5f0e5); text-align: right; }
.home-bookmarks-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.home-bookmarks-heading h2 { margin: 0; color: #4b5b4f; font-size: 17px; }
.home-bookmarks-toggle { min-height: 34px; padding: 6px 11px; border: 1px solid #ded5c4; border-radius: 8px; background: #fffefa; color: #6e654f; font-size: 12px; cursor: pointer; }
.home-bookmark-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
.home-bookmark-links .bookmark-link { background: rgba(255,255,255,.58); }
.home-all-bookmarks { grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid #e4ddcf; margin-top: 9px; padding-top: 10px; }
.home-highlight { position: relative; min-height: 104px; gap: 8px; padding: 16px 18px; border: 1px solid #e4dece; border-top: 1px solid #e4dece; border-radius: 15px; background: linear-gradient(145deg,#fffefa,#f6f2e9); color: #435447; box-shadow: 0 7px 19px rgba(46,39,28,.045); font-size: 15px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.home-highlight:hover { transform: translateY(-2px); border-color: #d7c7a9; box-shadow: 0 12px 25px rgba(46,39,28,.08); }
.home-highlight > svg { width: 29px; height: 29px; margin-bottom: 2px; fill: none; stroke: #a7834c; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.home-highlight-note { display: block; }
.popover-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 5px; }
.popover-close { width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 7px; background: #fffefa; color: #73776f; font-size: 18px; cursor: pointer; }
.visually-hidden { 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; }
@media (max-width: 980px) {
  .compare-grid { grid-template-columns: 1fr; }
  .text-panel + .text-panel { border-right: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .home-bookmark-links, .home-all-bookmarks { grid-template-columns: 1fr; }
  .home-bookmarks { padding: 12px; }
  .home-highlight { min-height: 80px; font-size: 14px; }
  .tree-passage { font-size: 13px; }
  .tree-branch > summary { font-size: 14px; }
  .tree-subbranch > summary { font-size: 13px; }
  .card-location { font-size: 11px; }
  .citation, .panel-label { font-size: 11px; }
  .report-location { font-size: 12px; }
  .page-footer { font-size: 11px; }
}
.bookmark-row { grid-template-columns: minmax(0,1fr) 30px; }
.bookmark-link, .home-bookmark-links .bookmark-link { display: block; width: 100%; min-width: 0; min-height: 39px; padding: 9px 5px; border: 0; border-radius: 0; background: transparent; color: #465349; font-size: 14px; font-weight: 500; line-height: 1.5; text-align: right; white-space: normal; }
.bookmark-link:hover, .bookmark-link:focus-visible, .home-bookmark-links .bookmark-link:hover, .home-bookmark-links .bookmark-link:focus-visible { border: 0; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.bookmark-link-copy { display: block; min-width: 0; overflow-wrap: anywhere; }
.bookmark-link-arrow, .bookmark-link-letter { display: none !important; }
.home-highlights { margin-bottom: 18px; }
@media (prefers-reduced-motion: reduce) {
  .home-about.reveal-pending { opacity: 1; transform: none; }
  .home-about.is-visible { transition: none; }
}
