@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  font-family: Inter, system-ui, sans-serif;
  color: #1c2c44;
  background: #f3f5f9;
  font-synthesis: none;
  font-size: 16px;
  line-height: 1.6;
  --ink: #1c2c44;
  --muted: #52627a;
  --line: #dce2ec;
  --accent: #315fc4;
  --pale: #eaf0fc;
  --gold: #a87830;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
button {
  cursor: pointer;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 13px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
}
.button:hover,
button:hover {
  background: var(--pale);
  text-decoration: none;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 19px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.primary:hover {
  background: #244ca4;
  color: white;
  text-decoration: none;
}
button.icon {
  border-color: transparent;
  padding: 8px;
  min-width: 37px;
  background: transparent;
}
button.icon:hover {
  background: var(--pale);
}
button.icon[aria-pressed="true"] {
  color: var(--accent);
  background: var(--pale);
}
button.text-button,
a.text-button {
  border: 0;
  background: none;
  padding: 0;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}
input,
select,
textarea {
  width: 100%;
  background: white;
  border: 1px solid #dce2ec;
  border-radius: 7px;
  color: var(--ink);
  padding: 11px 12px;
  min-height: 43px;
}
textarea {
  resize: vertical;
  line-height: 1.7;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #315fc4;
  outline-offset: 2px;
}
label {
  display: block;
  font-size: 14px;
  color: #52627a;
  font-weight: 500;
}
label > input,
label > select,
label > textarea {
  margin-top: 6px;
}
label + label {
  margin-top: 15px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #b08d49;
  outline-offset: 4px;
}
.skip {
  position: fixed;
  top: -70px;
  left: 20px;
  padding: 12px;
  background: white;
  z-index: 99;
}
.skip:focus {
  top: 8px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-weight: 500;
  line-height: 1.16;
}
h1 {
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -1.3px;
}
h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
p + p {
  margin-top: 14px;
}
small {
  font-size: 12px;
  color: var(--muted);
}
.app {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: #fff;
  border-right: 1px solid var(--line);
  color: var(--ink);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 30px 18px;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  padding: 0 10px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.7px;
}
.brand:hover {
  text-decoration: none;
}
.brand em {
  font-style: normal;
  font-weight: 400;
  color: var(--accent);
}
.brand small {
  font-size: 12px;
  letter-spacing: 0.1px;
  display: block;
  color: var(--muted);
  margin-top: 8px;
}
.brand-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  background: var(--accent);
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: white;
}
.nav-label {
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--muted);
  padding: 38px 13px 12px;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 7px;
}
.sidebar nav a:hover {
  background: var(--pale);
  text-decoration: none;
  color: var(--ink);
}
.sidebar nav a.active {
  background: var(--pale);
  color: var(--accent);
  font-weight: 600;
}
.sidebar nav a.active svg {
  color: var(--accent);
}
.sidebar-bottom {
  margin-top: auto;
  padding: 34px 12px 0;
}
.sidebar-bottom p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 14px 0;
}
.sidebar-bottom > a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.covenant-badge {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--ink);
  font-weight: 600;
  font-size: 12px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #79ad87;
  flex-shrink: 0;
}
.dot.warning {
  background: #be8f3f;
}
.workspace {
  width: calc(100% - 240px);
  margin-left: 240px;
}
.topbar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 36px;
  background: #fafbfd;
  color: #52627a;
  font-size: 12px;
  letter-spacing: 0.1px;
}
.topbar > div {
  display: flex;
  gap: 10px;
  align-items: center;
}
.save-status {
  color: #52627a;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.menu-toggle {
  display: none !important;
}
main {
  padding: 32px 36px 48px;
  max-width: 1560px;
  margin: auto;
  min-height: calc(100vh - 150px);
}
main:focus {
  outline: none;
}
.page-heading {
  margin-bottom: 27px;
}
.page-heading .eyebrow {
  margin-bottom: 10px;
}
.page-heading .lede {
  margin-top: 12px;
  max-width: 750px;
  font-size: 16px;
  line-height: 1.8;
  color: #52627a;
}
.page-heading .actions {
  margin-top: 22px;
}
.page-heading.compact h1 {
  font-size: 34px;
}
.eyebrow {
  font-size: 12px !important;
  letter-spacing: 1.2px;
  font-weight: 700 !important;
  color: #61718a;
  line-height: 1.6;
}
.searchbox {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 10px 10px 20px;
  border: 1px solid #dce2ec;
  box-shadow: 0 4px 18px #213e2e06;
  border-radius: 11px;
  background: white;
  max-width: none;
}
.searchbox > svg {
  color: #61718a;
  flex-shrink: 0;
}
.searchbox input {
  border: 0;
  background: transparent;
  font-size: 14px;
  min-width: 0;
  padding: 8px 0;
  outline-offset: 2px;
}
.searchbox .primary {
  min-height: 44px;
}
.suggestions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 12px 0 26px;
  font-size: 12px;
}
.suggestions > span {
  color: var(--muted);
  margin-right: 4px;
}
.suggestions button {
  font-size: 12px;
  padding: 5px 9px;
  min-height: 28px;
  background: #eaf0fc;
  border: 0;
  color: #315fc4;
  border-radius: 5px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 0 0 20px;
}
.section-title > span {
  font-size: 12px;
  color: var(--muted);
}
.section-title h2 {
  font-size: 25px;
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.topic-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 215px;
  padding: 23px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.topic-card:hover {
  border-color: #a5b7df;
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 7px 20px #253b2107;
}
.topic-card > svg {
  color: #61718a;
  margin-bottom: 16px;
}
.topic-card h3 {
  font-size: 14px;
}
.topic-card p {
  font-size: 12px;
  color: #52627a;
  margin: 10px 0 20px;
  line-height: 1.8;
}
.topic-card > span {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #315fc4;
}

.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 36px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #61718a;
}
.app-footer a {
  color: #52627a;
}
.panel {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 18px;
}
.panel > h2 {
  margin-bottom: 17px;
}
.panel > p {
  font-size: 16px;
  line-height: 1.8;
  color: #52627a;
}
.panel > p.eyebrow {
  margin-bottom: 12px;
}
.panel > h3 {
  margin: 22px 0 12px;
}
.panel > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
}
.panel .caption {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.panel .section-title h2 {
  margin: 0;
}
.muted {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 20px;
}
.caption {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.notice {
  border: 1px solid #ddd5b7;
  border-left: 3px solid #b59b61;
  background: #f6f2e4;
  color: #736440;
  padding: 16px 20px;
  font-size: 16px;
  border-radius: 6px;
  margin: 20px 0;
  line-height: 1.8;
}
.notice.quiet {
  background: #f3f5f9;
  border-color: #dce2ec;
  color: #52627a;
}
.notice.error {
  background: #fff2ec;
  border-color: #ddb19b;
  color: #8c452e;
}
.notice button {
  margin-left: 12px;
}
.notice p {
  margin-bottom: 8px;
}
.loading {
  padding: 20px;
  font-size: 14px;
  color: var(--muted);
  background: #f3f5f9;
  border-radius: 6px;
  animation: pulse 1.5s infinite;
}
.empty {
  padding: 35px 10px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}
.empty h2 {
  margin: 15px 0;
  font-size: 25px;
}
.empty p {
  margin-bottom: 16px;
}
.inline-controls {
  display: flex;
  gap: 15px;
  align-items: flex-end;
  margin: 15px 0;
}
.inline-controls > label {
  flex: 1;
  margin: 0;
}
.inline-controls > label:last-child {
  max-width: 210px;
}
.search-result {
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}
.search-result p {
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.8;
  margin-top: 10px;
  color: #1c2c44;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 25px;
}
.pagination > span {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.results-topics {
  margin: 20px 0 30px;
}
.results-topics .topic-card {
  min-height: 180px;
}
.ref {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}
.refs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.refs > .ref,
.refs > a {
  padding: 6px 9px;
  border: 1px solid #dce2ec;
  border-radius: 5px;
  background: #f3f5f9;
  font-size: 12px;
  gap: 6px;
  display: inline-flex;
  align-items: center;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  margin-bottom: 27px;
}
.study-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: 25px;
}
.evidence-card {
  display: flex;
  gap: 19px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  margin-bottom: 18px;
}
.evidence-card h2 {
  font-size: 27px;
  margin-bottom: 12px;
}
.evidence-card > div {
  min-width: 0;
}
.step-number {
  font-family: Georgia, serif;
  font-size: 22px;
  color: #61718a;
  flex-shrink: 0;
}
.evidence-card blockquote {
  font-family: Georgia, serif;
  border-left: 2px solid #a5b7df;
  margin: 22px 0;
  padding: 3px 0 3px 19px;
  font-size: 17px;
  line-height: 1.8;
  color: #52627a;
}
.evidence-card cite {
  display: block;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-style: normal;
  color: #61718a;
  margin-top: 12px;
}
.evidence-card p {
  font-size: 16px;
  color: #52627a;
  line-height: 1.85;
}
.note-label {
  font-size: 12px !important;
  letter-spacing: 1.1px;
  font-weight: 600;
  margin: 20px 0 8px;
}
.study-aside > .panel h2 {
  font-size: 25px;
}
.note {
  display: block;
}
.note > span {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #315fc4;
  font-size: 14px;
  margin-bottom: 14px;
}
.note textarea {
  font-size: 16px;
  font-weight: 400;
  background: #fafbfd;
  border-color: #dce2ec;
  min-height: 150px;
}
.note small {
  display: block;
  font-size: 12px;
  margin-top: 10px;
  line-height: 1.7;
  font-weight: 400;
}
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.reader-search {
  display: flex;
  gap: 13px;
  align-items: flex-end;
  margin-bottom: 24px;
}
.grow {
  flex: 1;
}
.reader-controls {
  display: flex;
  align-items: flex-end;
  gap: 13px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 27px;
}
.reader-controls label {
  margin: 0;
}
.reader-controls label:nth-child(1) {
  width: 180px;
}
.reader-controls label:nth-child(2) {
  width: 80px;
}
.reader-controls label:nth-child(3) {
  width: 205px;
}
.reader-controls select {
  font-size: 12px;
}
.check-control {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  font-size: 12px;
  white-space: nowrap;
}
.check-control input {
  width: 15px;
  min-height: 15px;
  margin: 0;
  accent-color: var(--accent);
}
.reader-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 23px;
  align-items: start;
}
.reader-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 28px;
}
.reading-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}
.reading-heading h2 {
  font-size: 32px;
  margin-top: 8px;
}
.reading-heading .actions {
  gap: 2px;
  flex-wrap: nowrap;
}
.context-link {
  padding-bottom: 15px;
}
.verse {
  border-top: 1px solid #dce2ec;
  padding: 23px 0;
}
.verse-english {
  display: flex;
  gap: 15px;
}
.verse-number {
  font-size: 12px;
  font-weight: 600;
  color: #61718a;
  min-width: 12px;
  margin-top: 6px;
}
.verse-english p {
  font-family: Georgia, serif;
  font-size: 21px;
  line-height: 1.85;
  color: #1c2c44;
}
.parallel {
  font-family: Georgia, serif;
  font-size: 16px;
  line-height: 1.8;
  color: #52627a;
  margin: 17px 0 0 27px;
  padding: 12px;
  background: #fafbfd;
  border-radius: 5px;
}
.parallel > span {
  display: block;
  font-family: Inter, sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  color: #61718a;
  margin-bottom: 7px;
}
.original {
  margin-top: 18px;
  margin-left: 27px;
  padding: 14px 0 0;
  border-top: 1px dashed #dce2ec;
}
.original-heading {
  font-size: 12px;
  letter-spacing: 0.4px;
  color: #61718a;
  margin-bottom: 12px;
  line-height: 1.8;
}
.word-line {
  line-height: 2.3;
}
.word-line button {
  font-family: Georgia, "Times New Roman", serif;
  min-height: 29px;
  border: 0;
  border-radius: 4px;
  padding: 0 4px;
  margin: 0 1px 3px 0;
  background: transparent;
  display: inline;
  color: #52627a;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.8;
}
.word-line button:hover,
.word-line button.selected {
  background: #eaf0fc;
  color: #1c2c44;
}
.word-line.hebrew button {
  font-family: "Times New Roman", serif;
  font-size: 24px;
  padding: 2px 5px;
  line-height: 1.9;
}
.reader-panel > .caption {
  margin-top: 23px;
}
.word-detail h2 {
  font-size: 30px;
  overflow-wrap: anywhere;
}
.word-detail .lemma {
  font-family: Georgia, serif;
  font-size: 22px;
  margin: 4px 0 12px;
  overflow-wrap: anywhere;
}
.lexical {
  padding: 8px 0 16px;
  border-bottom: 1px solid #dce2ec;
  margin: 15px 0;
}
.lexical > div:first-child {
  display: flex;
  gap: 10px;
  align-items: center;
}
.lexical strong {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 400;
}
.tag {
  padding: 3px 6px;
  border: 1px solid #dce2ec;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #315fc4;
  background: #f3f5f9;
}
.lexical > p {
  margin-top: 12px;
  font-size: 16px;
  color: #52627a;
  line-height: 1.8;
}
.lexical > small {
  display: block;
  font-size: 12px;
  margin-top: 14px;
}
.lexical details {
  margin-top: 15px;
  font-size: 12px;
  color: #52627a;
}
.lexical details p {
  margin-top: 10px;
}
.segmented {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  margin: 25px 0;
  padding-bottom: 12px;
  flex-wrap: wrap;
}
.segmented button {
  border-color: transparent;
  background: transparent;
  font-size: 14px;
}
.segmented button.active {
  background: #eaf0fc;
  color: #315fc4;
}
.word-study-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 25px;
  align-items: start;
}
.word-study-layout .panel {
  padding: 23px;
}
.chosen {
  border-color: #a5b7df;
  background: #fafbfd;
}
.word-study-layout .lexical {
  margin-top: 0;
}
.concordance h2 {
  font-size: 32px;
  margin-top: 12px;
}
.concordance .caption {
  margin: 12px 0;
}
.occurrence {
  border-top: 1px solid var(--line);
  padding: 21px 0;
}
.occurrence p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.9;
  color: #315fc4;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.occurrence p[lang="he"] {
  font-size: 23px;
}
.occurrence mark {
  background: #eaf0fc;
  color: #1c2c44;
  padding: 2px 3px;
  border-radius: 3px;
}
.covenant-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin: 33px 0;
}
.covenant-flow article {
  padding: 23px;
  background: #eaf0fc;
  border: 1px solid #dce2ec;
  border-radius: 9px;
}
.covenant-flow h2 {
  font-size: 23px;
  margin: 18px 0 12px;
  line-height: 1.2;
}
.covenant-flow p {
  font-size: 16px;
  color: #52627a;
  line-height: 1.8;
  margin-bottom: 20px;
}
.covenant-list > div {
  border-top: 1px solid var(--line);
  padding: 21px 0;
}
.covenant-list {
  margin-top: 22px;
}
.covenant-list h3 {
  font-size: 14px;
  margin-bottom: 8px;
}
.outline {
  max-width: 850px;
}
.outline label {
  margin-bottom: 15px;
}
.outline .panel {
  margin-top: 18px;
}
.outline > button {
  margin-bottom: 10px;
}
.outline .section-title {
  margin-bottom: 22px;
}
.outline-section textarea {
  font-size: 14px;
}
.outline-section > .ref {
  margin: -5px 0 15px;
}
.bookmark-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.bookmark-row:last-child {
  border-bottom: 0;
}
.method-list .panel {
  display: flex;
  gap: 22px;
}
.method-list h2 {
  font-size: 24px;
  margin-bottom: 13px;
}
.method-list p {
  font-size: 14px;
  color: #52627a;
}
.source-card h2 {
  font-size: 26px;
}
.source-card a {
  font-size: 14px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #1c2c44;
  color: #f4f7e5;
  border: 1px solid #577153;
  padding: 15px 22px;
  border-radius: 9px;
  box-shadow: 0 8px 30px #17302030;
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 60;
  max-width: 90vw;
}
.storage-warning {
  position: fixed;
  bottom: 12px;
  left: 245px;
  right: 20px;
  background: #fff4dd;
  border: 1px solid #c8aa66;
  padding: 15px 20px;
  z-index: 50;
  box-shadow: 0 4px 25px #221b1119;
  border-radius: 7px;
  font-size: 14px;
  color: #756337;
}
.storage-warning button {
  font-size: 12px;
  margin: 10px 10px 0 0;
}
.print-only {
  display: none;
}
@keyframes pulse {
  50% {
    opacity: 0.55;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 1700px) {
  main {
    padding-top: 60px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 220px;
    padding: 30px 12px;
  }
  .workspace {
    width: calc(100% - 220px);
    margin-left: 220px;
  }
  .topbar {
    padding: 0 30px;
  }
  main {
    padding: 38px 30px 55px;
  }
  .app-footer {
    padding: 23px 30px;
  }
  .topic-grid {
    gap: 12px;
  }
  .topic-card {
    padding: 20px;
  }

  .reader-layout {
    grid-template-columns: minmax(0, 1.65fr) minmax(240px, 1fr);
  }
  .reader-panel {
    padding: 22px;
  }
  .reading-heading {
    align-items: flex-start;
  }
  .reading-heading h2 {
    font-size: 27px;
  }
  .study-layout {
    gap: 18px;
  }
  .evidence-card {
    padding: 22px;
    gap: 14px;
  }
  .covenant-flow {
    grid-template-columns: repeat(2, 1fr);
  }
  .storage-warning {
    left: 215px;
  }
}
@media (max-width: 960px) {
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reader-layout,
  .study-layout {
    grid-template-columns: 1fr;
  }
  .reader-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }
  .reader-aside > .panel,
  .reader-aside > .note {
    margin: 0;
  }
  .reader-aside > .word-detail {
    grid-column: 1 / -1;
  }
  .study-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }
  .study-aside > .panel {
    margin: 0;
  }
  .study-aside > .note {
    grid-column: 1 / -1;
  }

  .word-study-layout {
    grid-template-columns: 1fr;
  }
  .word-study-layout > aside {
    order: -1;
  }

  .topbar {
    padding: 0 24px;
  }
  main {
    padding: 33px 24px 50px;
  }
  .app-footer {
    padding: 20px 24px;
    flex-wrap: wrap;
  }
}
@media (max-width: 720px) {
  .sidebar {
    transform: translateX(-100%);
    width: 238px;
    box-shadow: 8px 0 30px #10292020;
    top: 63px;
    transition: transform 0.18s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-bottom {
    padding-top: 20px;
  }
  .sidebar .brand {
    font-size: 22px;
  }
  .nav-label {
    padding-top: 30px;
  }
  .workspace {
    width: 100%;
    margin: 0;
  }
  .menu-toggle {
    display: inline-flex !important;
  }
  .topbar {
    height: 63px;
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 0 15px;
  }
  .topbar > div > span {
    font-size: 12px;
  }
  .save-status {
    font-size: 12px;
  }
  .topbar .icon {
    min-width: 31px;
  }
  main {
    padding: 30px 20px 45px;
  }
  .page-heading .eyebrow {
    font-size: 12px !important;
    letter-spacing: 1.5px;
    margin-bottom: 13px;
  }
  h1 {
    font-size: 30px;
    letter-spacing: -1.1px;
    line-height: 1.13;
  }
  .page-heading .lede {
    font-size: 14px;
    line-height: 1.8;
    margin-top: 17px;
  }
  .page-heading {
    margin-bottom: 23px;
  }
  .searchbox {
    gap: 9px;
    padding: 8px 8px 8px 12px;
    flex-wrap: wrap;
  }
  .searchbox > svg {
    width: 18px;
  }
  .searchbox input {
    font-size: 14px;
    flex: 1;
    width: calc(100% - 40px);
  }
  .searchbox > .primary {
    width: 100%;
    min-height: 39px;
    padding: 10px;
    margin-top: 3px;
  }
  .suggestions {
    gap: 7px;
    margin-bottom: 26px;
  }
  .suggestions > span {
    width: 100%;
    margin-bottom: 2px;
  }
  .suggestions button {
    font-size: 12px;
    min-height: 31px;
  }

  .section-title {
    align-items: flex-start;
  }
  .section-title h2 {
    font-size: 24px;
  }
  .section-title > span {
    font-size: 12px;
    text-align: right;
    max-width: 130px;
  }
  .topic-grid {
    gap: 10px;
  }
  .topic-card {
    padding: 18px;
    min-height: 220px;
  }
  .topic-card h3 {
    font-size: 14px;
  }
  .topic-card p {
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 14px;
  }
  .topic-card > span {
    font-size: 12px;
  }
  .topic-card > svg {
    width: 20px;
    height: 20px;
    margin-bottom: 13px;
  }

  .app-footer {
    padding: 21px 20px;
    gap: 9px;
    font-size: 12px;
  }
  .panel {
    padding: 22px;
  }
  .study-aside,
  .reader-aside {
    grid-template-columns: 1fr;
  }
  .evidence-card {
    padding: 22px 18px;
    gap: 11px;
  }
  .evidence-card h2 {
    font-size: 25px;
  }
  .evidence-card blockquote {
    font-size: 17px;
    padding-left: 14px;
  }
  .step-number {
    font-size: 19px;
  }
  .reader-search {
    align-items: flex-end;
    gap: 8px;
  }
  .reader-search button {
    font-size: 12px;
    padding: 12px;
    min-height: 43px;
  }
  .reader-search button svg {
    display: none;
  }
  .reader-search input {
    font-size: 14px;
  }
  .page-heading.compact h1 {
    font-size: 32px;
  }
  .reader-controls {
    gap: 12px;
  }
  .reader-controls label:nth-child(1) {
    flex: 1;
    width: auto;
  }
  .reader-controls label:nth-child(2) {
    width: 65px;
  }
  .reader-controls label:nth-child(3) {
    width: 100%;
  }
  .check-control {
    height: 32px;
  }
  .reader-panel {
    padding: 20px 17px;
  }
  .reading-heading h2 {
    font-size: 26px;
  }
  .reading-heading .eyebrow {
    font-size: 12px !important;
  }
  .reading-heading .actions {
    gap: 0;
  }
  .reading-heading .icon {
    min-width: 30px;
    padding: 6px;
  }
  .reading-heading .actions svg {
    width: 17px;
  }
  .verse-english {
    gap: 10px;
  }
  .verse-english p {
    font-size: 20px;
  }
  .original {
    margin-left: 22px;
  }
  .word-line button {
    font-size: 17px;
    min-height: 33px;
  }
  .word-line.hebrew button {
    font-size: 23px;
  }
  .parallel {
    margin-left: 22px;
  }
  .inline-controls {
    gap: 10px;
  }
  .inline-controls > label:last-child {
    max-width: 135px;
  }
  .inline-controls select {
    font-size: 12px;
  }
  .covenant-flow {
    grid-template-columns: 1fr;
    gap: 13px;
    margin: 25px 0;
  }
  .covenant-flow article {
    padding: 25px;
  }
  .covenant-flow h2 {
    font-size: 26px;
    margin-top: 12px;
  }
  .covenant-flow p {
    font-size: 16px;
  }
  .covenant-flow .step-number {
    font-size: 24px;
  }
  .notice {
    padding: 15px;
    font-size: 12px;
  }
  .notice button {
    margin: 10px 0 0;
  }
  .actions {
    gap: 7px;
  }
  .actions button,
  .actions .button {
    font-size: 12px;
    padding: 9px 11px;
  }
  .storage-warning {
    left: 10px;
    right: 10px;
  }
  .word-study-layout {
    gap: 15px;
  }
  .source-card h2 {
    font-size: 25px;
  }
  .source-card p {
    overflow-wrap: anywhere;
  }
  .source-card .eyebrow {
    font-size: 12px !important;
  }
  .method-list .panel {
    gap: 15px;
  }
  .method-list h2 {
    font-size: 23px;
  }
  .pagination button {
    font-size: 12px;
    padding: 9px;
  }
  .pagination {
    gap: 8px;
  }
  .print-only {
    display: none;
  }
}
@media (max-width: 380px) {
  .topic-grid {
    grid-template-columns: 1fr;
  }
  .topic-card {
    min-height: 180px;
  }
  .save-status {
    max-width: 120px;
    text-align: right;
  }
  .topbar > div > span {
    max-width: 100px;
  }
  .reading-heading {
    flex-wrap: wrap;
  }
  .searchbox input {
    font-size: 14px;
  }
}
@media print {
  @page {
    margin: 18mm;
  }
  body {
    background: #fff;
    color: #111;
  }
  .sidebar,
  .topbar,
  .app-footer,
  .no-print,
  .storage-warning,
  .toast,
  .skip {
    display: none !important;
  }
  .workspace {
    width: 100%;
    margin: 0;
  }
  main {
    padding: 0;
    max-width: none;
    min-height: 0;
  }
  .page-heading,
  .outline > * {
    display: none !important;
  }
  .outline > .print-only {
    display: block !important;
  }
  .outline {
    max-width: none;
  }
  .print-only h1 {
    font-size: 30px;
    margin-bottom: 15px;
  }
  .print-only h2 {
    font-size: 21px;
    margin: 25px 0 10px;
  }
  .print-only p {
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.7;
  }
  .print-only section {
    break-inside: avoid;
  }
  .print-only a {
    color: #111;
    text-decoration: none;
  }
  .print-only small {
    display: block;
    margin-top: 24px;
  }
  a[href]::after {
    content: none !important;
  }
}

@media (max-width: 720px) {
  .sidebar {
    visibility: hidden;
  }
  .sidebar.open {
    visibility: visible;
  }
  .reader-aside > .word-detail {
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    max-height: 65vh;
    overflow: auto;
    z-index: 40;
    box-shadow: 0 10px 60px #15372c50;
    border-color: #a5b7df;
  }
  .reader-aside > .word-detail > .section-title {
    position: sticky;
    top: -22px;
    background: white;
    padding: 5px 0;
    z-index: 1;
  }
}
.export-panel > label {
  margin: 18px 0;
}
.export-panel textarea {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  font-weight: 400;
  white-space: pre;
  overflow: auto;
}
.export-panel .section-title {
  margin-bottom: 12px;
}

@media screen {
  /* Research desk: sources and tools share the first screen. */
  .workspace-name {
    font-weight: 600;
    color: var(--ink);
  }
  .breadcrumb-divider {
    color: #91a0b6;
  }
  .sidebar-method {
    margin-bottom: 28px;
  }
  .research-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
  }
  .research-heading > .button {
    flex-shrink: 0;
  }
  .research-heading .eyebrow {
    color: var(--accent);
  }
  .research-heading .lede {
    max-width: 660px;
  }
  .research-tools {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 28px;
  }
  .research-tools > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--ink);
  }
  .research-tools > a:hover {
    text-decoration: none;
    border-color: #a5b7df;
    background: #fafbfd;
  }
  .research-tools > a > span:nth-child(2) {
    flex: 1;
    min-width: 0;
  }
  .research-tools strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
  }
  .research-tools small {
    display: block;
    margin-top: 3px;
    font-size: 12px;
  }
  .research-tools > a > svg {
    color: var(--muted);
    flex-shrink: 0;
  }
  .tool-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: var(--pale);
    color: var(--accent);
    border-radius: 8px;
    flex-shrink: 0;
  }
  .research-desk {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.65fr);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
  }
  .subject-library {
    border-right: 1px solid var(--line);
    background: #fafbfd;
    min-width: 0;
  }
  .subject-library-heading {
    padding: 24px 22px 18px;
    border-bottom: 1px solid var(--line);
  }
  .subject-library-heading h2 {
    font-size: 19px;
    letter-spacing: -0.4px;
  }
  .subject-library-heading span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin: 5px 0 18px;
  }
  .subject-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding-left: 10px;
  }
  .subject-filter svg {
    flex-shrink: 0;
    color: var(--muted);
  }
  .subject-filter input {
    border: 0;
    background: transparent;
    margin: 0;
    min-width: 0;
    min-height: 38px;
    padding: 7px 10px 7px 0;
    font-size: 14px;
  }
  .subject-list {
    max-height: 527px;
    overflow-y: auto;
    padding: 10px;
    scrollbar-width: thin;
    scrollbar-color: #b7c5dc transparent;
  }
  .subject-list button {
    width: 100%;
    padding: 14px 12px;
    background: transparent;
    border: 1px solid transparent;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0;
    border-radius: 6px;
  }
  .subject-list button > span {
    min-width: 0;
  }
  .subject-list button strong {
    font-size: 14px;
    display: block;
    font-weight: 500;
    line-height: 1.5;
  }
  .subject-list button small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
  }
  .subject-list button > svg {
    flex-shrink: 0;
    color: #8b9ab2;
  }
  .subject-list button:hover {
    background: #eef2f8;
  }
  .subject-list button.selected {
    background: #eaf0fc;
    border-color: #d4dff6;
    color: #244ca4;
  }
  .subject-list button.selected strong {
    font-weight: 600;
  }
  .subject-list button.selected > svg {
    color: var(--accent);
  }
  .library-method {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 22px;
    border-top: 1px solid var(--line);
    font-size: 12px;
  }
  .library-method svg {
    flex-shrink: 0;
  }
  .subject-preview {
    padding: 26px 30px;
    min-width: 0;
  }
  .preview-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }
  .preview-meta > span:last-child {
    color: var(--muted);
    font-size: 12px;
  }
  .subject-preview > h2 {
    font-size: 27px;
    letter-spacing: -0.7px;
    max-width: 600px;
    line-height: 1.3;
  }
  .preview-intro {
    font-size: 16px;
    color: var(--muted);
    margin-top: 12px;
    line-height: 1.7;
  }
  .preview-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0 26px;
  }
  .preview-passage {
    border: 1px solid #e0e6f0;
    background: #f8faff;
    padding: 20px 22px;
    border-radius: 8px;
  }
  .preview-passage .section-title {
    margin: 0 0 12px;
  }
  .preview-passage .section-title > span {
    font-size: 12px;
  }
  .preview-passage blockquote {
    margin: 12px 0 17px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    line-height: 1.7;
    color: var(--ink);
  }
  .preview-passage > .ref {
    font-size: 14px;
  }
  .path-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 26px 0 12px;
  }
  .path-heading h3 {
    font-size: 14px;
  }
  .path-heading a {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
  }
  .path-steps {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .path-steps li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #edf0f6;
  }
  .path-number {
    border: 1px solid var(--line);
    color: var(--muted);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    font-size: 12px;
    flex-shrink: 0;
  }
  .path-steps li > div {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }
  .path-steps strong {
    font-size: 14px;
    font-weight: 500;
  }
  .path-steps .ref {
    font-size: 12px;
  }
  .preview-note {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
    margin-top: 18px;
  }
  .research-method {
    display: flex;
    align-items: center;
    gap: 17px;
    margin: 24px 0 0;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
  }
  .research-method > svg {
    color: var(--accent);
    flex-shrink: 0;
  }
  .research-method p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    max-width: 680px;
  }
  .research-method strong {
    color: var(--ink);
  }
  .research-method a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-left: auto;
    flex-shrink: 0;
  }
  .reader-controls {
    background: white;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 18px;
  }
  .reader-panel {
    box-shadow: 0 3px 12px #1c2c4404;
  }
  .original {
    background: #f8faff;
    border: 1px solid #e7ecf6;
    border-radius: 7px;
    padding: 13px 15px;
  }
  .word-line button {
    color: #35568d;
  }
  .word-line button:hover,
  .word-line button.selected {
    background: #dce7fc;
    color: #203f7e;
  }
  .reader-aside > .word-detail {
    border-top: 3px solid var(--accent);
  }
  .note textarea {
    background: #fafbfd;
    font-size: 16px;
  }
  .note > span {
    font-weight: 600;
  }
  .topic-card {
    min-height: 190px;
  }
  .topic-card p {
    font-size: 14px;
    line-height: 1.7;
  }
  .topic-card h3 {
    font-size: 16px;
  }
  .reading-heading .eyebrow {
    letter-spacing: 0.5px;
  }
  .section-title > span {
    font-size: 12px;
  }
  input,
  select,
  textarea,
  .reader-controls select,
  .reader-search input,
  .inline-controls select,
  .searchbox input {
    font-size: 16px;
  }
  @media (min-width: 1101px) {
    .reader-aside {
      position: sticky;
      top: 24px;
      max-height: calc(100vh - 48px);
      overflow-y: auto;
      scrollbar-width: thin;
    }
  }
  @media (max-width: 1200px) {
    .research-tools {
      gap: 10px;
    }
    .research-tools > a {
      padding: 15px 13px;
      gap: 10px;
    }
    .research-tools > a > svg {
      display: none;
    }
    .research-tools .tool-icon {
      width: 30px;
      height: 34px;
      background: transparent;
    }
    .subject-preview {
      padding: 24px;
    }
    .research-desk {
      grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.5fr);
    }
    .research-heading > .button {
      display: none;
    }
    .path-steps li > div {
      align-items: flex-start;
      flex-direction: column;
      gap: 3px;
    }
    .research-method {
      flex-wrap: wrap;
    }
    .research-method p {
      flex: 1;
    }
    .research-method a {
      margin-left: 38px;
    }
  }
  @media (max-width: 1000px) {
    .research-tools {
      grid-template-columns: 1fr;
      gap: 0;
      border: 1px solid var(--line);
      border-radius: 9px;
      overflow: hidden;
    }
    .research-tools > a {
      border: 0;
      border-bottom: 1px solid var(--line);
      border-radius: 0;
      padding: 14px 18px;
    }
    .research-tools > a:last-child {
      border-bottom: 0;
    }
    .research-tools > a > svg {
      display: block;
    }
    .research-tools small {
      display: inline;
      margin-left: 10px;
    }
    .research-tools strong {
      display: inline;
    }
    .research-desk {
      grid-template-columns: 1fr;
    }
    .subject-library {
      border-right: 0;
      border-bottom: 1px solid var(--line);
    }
    .subject-library-heading {
      display: flex;
      align-items: center;
      gap: 20px;
      justify-content: space-between;
      border: 0;
      padding-bottom: 10px;
    }
    .subject-library-heading span {
      margin-bottom: 0;
    }
    .subject-filter {
      max-width: 220px;
    }
    .subject-list {
      display: flex;
      overflow-x: auto;
      padding: 8px 20px 18px;
      gap: 8px;
      scroll-snap-type: x proximity;
    }
    .subject-list button {
      flex: 0 0 225px;
      border-color: var(--line);
      background: #fff;
      padding: 12px;
      margin: 0;
      scroll-snap-align: center;
    }
    .subject-list button strong {
      font-size: 14px;
    }
    .subject-list .empty {
      padding: 12px 0;
      text-align: left;
    }
    .library-method {
      display: none;
    }
    .path-steps li > div {
      flex-direction: row;
      align-items: center;
    }
    .topbar {
      gap: 15px;
    }
  }
  @media (max-width: 720px) {
    main {
      padding: 24px 18px 40px;
    }
    .page-heading .lede {
      font-size: 16px;
      margin-top: 12px;
      line-height: 1.7;
    }
    .research-heading h1 {
      font-size: 30px;
    }
    .research-heading .eyebrow {
      font-size: 12px !important;
    }
    .workspace-name,
    .breadcrumb-divider {
      display: none;
    }
    .topbar > div > span {
      font-size: 14px;
    }
    .save-status {
      font-size: 12px;
      max-width: 145px;
      text-align: right;
    }
    .sidebar {
      padding-top: 24px;
    }
    .sidebar-bottom {
      padding-top: 36px;
    }
    .subject-library-heading {
      flex-direction: column;
      align-items: stretch;
      gap: 15px;
      padding: 21px 18px 10px;
    }
    .subject-filter {
      max-width: none;
    }
    .subject-filter input {
      font-size: 16px;
    }
    .subject-list {
      padding-left: 18px;
      padding-right: 18px;
    }
    .subject-preview {
      padding: 22px 18px;
    }
    .subject-preview > h2 {
      font-size: 25px;
    }
    .preview-passage {
      padding: 17px;
    }
    .preview-passage blockquote {
      font-size: 20px;
    }
    .preview-actions {
      gap: 16px;
    }
    .path-steps li > div {
      flex-direction: column;
      align-items: flex-start;
    }
    .path-heading {
      align-items: flex-start;
    }
    .path-heading a {
      flex-shrink: 0;
    }
    .research-tools {
      margin-bottom: 22px;
    }
    .research-tools small {
      display: block;
      margin-left: 0;
    }
    .research-method {
      align-items: flex-start;
      gap: 12px;
    }
    .research-method a {
      margin-left: 33px;
    }
    .research-method p {
      font-size: 14px;
    }
    .searchbox input,
    .reader-search input,
    .reader-controls select,
    .inline-controls select {
      font-size: 16px;
    }
    .suggestions button {
      min-height: 36px;
    }
    .topic-grid {
      grid-template-columns: 1fr;
    }
    .topic-card {
      min-height: 0;
    }
    .topic-card h3 {
      font-size: 17px;
    }
    .topic-card p {
      font-size: 16px;
    }
    .topic-card > span {
      font-size: 12px;
    }
    .original {
      margin-left: 0;
    }
    .reader-controls label:nth-child(2) {
      width: 78px;
    }
    .reader-controls label:nth-child(1) {
      min-width: 150px;
    }
    .reading-heading {
      flex-wrap: wrap;
    }
    .reading-heading .eyebrow,
    .source-card .eyebrow {
      font-size: 12px !important;
    }
    .notice {
      font-size: 14px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation: none !important;
      transition: none !important;
      scroll-behavior: auto !important;
    }
  }
}
