:root {
  --ink: #222322;
  --muted: #68706c;
  --line: #d7dfdc;
  --rule: #195f72;
  --rule-dark: #0d3945;
  --green: #36634c;
  --soft-blue: #eef5f6;
  --soft-green: #eff6f1;
  --paper: #ffffff;
  --sidebar: #f7f9f8;
  --note: #f4f7f8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.study-page {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Serif KR", "Apple SD Gothic Neo", "Malgun Gothic", serif;
  line-height: 1.78;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  transform: translateY(-160%);
  background: var(--rule-dark);
  color: #fff;
  padding: 8px 12px;
  text-decoration: none;
  z-index: 20;
}

.skip-link:focus {
  transform: translateY(0);
}

.study-masthead {
  border-bottom: 1px solid var(--line);
  padding: 24px clamp(20px, 5vw, 64px) 22px;
}

.study-top-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 26px;
}

.study-top-actions a,
.study-sidebar a,
.anchor-top {
  color: var(--rule-dark);
  text-decoration: none;
}

.study-top-actions a {
  border: 1px solid var(--line);
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 0.88rem;
  line-height: 1.2;
  min-height: 36px;
  padding: 8px 12px;
}

.study-top-actions a:hover,
.study-sidebar a:hover,
.anchor-top:hover {
  color: var(--green);
}

.study-page a:focus-visible {
  outline: 3px solid rgba(25, 95, 114, 0.34);
  outline-offset: 3px;
}

.study-title-row {
  border-bottom: 2px solid var(--rule);
  display: block;
  margin: 0 auto;
  max-width: 1120px;
  padding-bottom: 24px;
  text-align: center;
}

.study-kicker,
.study-meta,
.study-sidebar h2,
.study-sidebar h3,
.label,
.method-label {
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.study-kicker {
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 10px;
}

.study-masthead h1 {
  color: var(--ink);
  font-size: clamp(2.9rem, 5.4vw, 5.8rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
}

.study-subtitle {
  color: #39433f;
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  margin: 14px auto 0;
  max-width: 680px;
}

.study-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 16px 0 0;
}

.study-primary-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 24px auto 0;
}

.primary-action,
.secondary-action {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1.2;
  min-height: 44px;
  padding: 11px 15px;
  text-decoration: none;
}

.primary-action {
  background: var(--rule-dark);
  border-color: var(--rule-dark);
  color: #fff;
}

.primary-action:hover {
  background: var(--rule);
  color: #fff;
}

.secondary-action {
  background: #fff;
  color: var(--rule-dark);
}

.secondary-action:hover {
  border-color: var(--rule);
  color: var(--green);
}

.compact-action {
  font-size: 0.84rem;
  min-height: 38px;
  padding: 9px 12px;
}

.study-layout {
  display: grid;
  gap: clamp(26px, 3vw, 42px);
  grid-template-columns: 176px minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1240px;
  padding: 30px clamp(20px, 4vw, 54px) 80px;
}

.study-sidebar {
  align-self: start;
  background: transparent;
  border-right: 1px solid var(--line);
  min-height: calc(100vh - 90px);
  padding: 4px 16px 26px 0;
  position: sticky;
  top: 0;
  text-align: right;
}

.study-sidebar h2,
.study-sidebar h3 {
  color: var(--green);
  font-size: 0.78rem;
  letter-spacing: 0;
  margin: 0 0 12px;
}

.study-sidebar-group {
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  padding-bottom: 14px;
}

.study-sidebar-group:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.study-sidebar a {
  display: block;
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 0.78rem;
  line-height: 1.28;
  padding: 6px 0;
}

.study-verse-list {
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr;
}

.study-verse-list a {
  font-size: 0.74rem;
}

.study-reader {
  min-width: 0;
}

.study-index-layout .study-reader > .notice,
.study-index-layout .study-reader > section {
  background: #fff;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  margin: 0 0 34px;
  padding: 24px 0 0;
}

.study-index-layout .study-reader > .notice {
  background: var(--soft-green);
  border-left: 4px solid var(--green);
  border-top: 0;
  padding: 18px 20px;
}

.book-library-section h2,
.book-toc-block h2,
.detailed-toc-heading h2 {
  border-bottom: 0;
  color: var(--ink);
  margin: 0;
  padding-bottom: 0;
}

.book-card-kicker,
.book-section-kicker {
  color: var(--green);
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 6px;
}

.book-card-actions,
.book-section-actions {
  align-content: start;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.section-heading-row,
.book-section-head {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.book-library {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 18px;
}

.book-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px;
}

.background-card p,
.study-note-card p {
  color: #39433f;
  font-size: 0.92rem;
}

.book-card h3 {
  color: var(--ink);
  font-size: 1.28rem;
  margin: 0 0 8px;
}

.book-card-meta,
.book-section-meta {
  color: var(--muted);
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 0.86rem;
  margin: 0 0 14px;
}

.canon-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.canon-testament {
  border-top: 2px solid var(--rule);
  padding-top: 16px;
}

.canon-testament-head {
  margin-bottom: 18px;
}

.canon-testament-head h2,
.commentary-collections-section h2 {
  color: var(--ink);
  margin: 0;
}

.canon-group {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 14px;
}

.canon-group h3 {
  color: var(--green);
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 0.9rem;
  margin: 0 0 10px;
}

.canon-book-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.canon-book {
  border: 1px solid var(--line);
  display: grid;
  gap: 2px;
  min-height: 48px;
  padding: 8px 10px;
}

.canon-book-title {
  color: var(--ink);
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.canon-book a.canon-book-title:hover {
  color: var(--rule-dark);
}

.canon-book-state {
  color: var(--muted);
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 0.74rem;
  line-height: 1.35;
}

.canon-book.is-active {
  border-color: #bfd0d4;
}

.canon-book.is-active .canon-book-state {
  color: var(--rule-dark);
}

.collection-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.collection-panel {
  border: 1px solid var(--line);
  padding: 17px;
}

.collection-panel h3 {
  color: var(--ink);
  font-size: 1.28rem;
  margin: 0 0 8px;
}

.collection-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.collection-link-list a {
  border: 1px solid var(--line);
  color: var(--rule-dark);
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 0.82rem;
  line-height: 1.2;
  min-height: 36px;
  padding: 8px 10px;
  text-decoration: none;
}

.collection-link-list a:hover {
  border-color: var(--rule);
  color: var(--green);
}

.book-section-head {
  border-bottom: 2px solid var(--rule);
  margin-bottom: 18px;
  padding-bottom: 16px;
}

.background-section-note {
  color: #39433f;
  margin: 12px 0 0;
  max-width: 780px;
}

.toc-details {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 14px;
}

.toc-details summary {
  color: var(--rule-dark);
  cursor: pointer;
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  min-height: 40px;
  padding: 8px 0;
}

.study-index-layout .toc {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.study-index-layout .toc a {
  border: 1px solid var(--line);
  color: var(--rule-dark);
  min-height: 44px;
  padding: 10px 12px;
  text-decoration: none;
}

.study-index-layout .toc a:hover {
  border-color: var(--rule);
  color: var(--green);
}

.toc-subtitle {
  color: var(--green);
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 24px 0 10px;
}

.chapter-shell > h2 {
  height: 1px;
  margin: 0;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.unit-section {
  margin-top: 58px;
}

.unit-section:first-child {
  margin-top: 0;
}

.unit-section-continued {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.unit-continuation {
  color: var(--muted);
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 0.88rem;
  margin: 0 0 18px;
}

.unit-continuation a {
  color: var(--rule-dark);
  text-decoration: none;
}

.unit-continuation a:hover {
  color: var(--green);
}

.unit-section > h2 {
  color: var(--green);
  font-size: clamp(1.42rem, 2vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px;
}

.section-intro,
.synthesis {
  background: #f7f9f6;
  border: 0;
  border-top: 2px solid var(--green);
  border-radius: 0;
  box-shadow: none;
  margin: 0 0 34px;
  padding: 16px 18px 14px;
}

.section-intro h3,
.synthesis h3 {
  color: var(--rule-dark);
  font-size: 1.12rem;
  margin: 0 0 14px;
}

.section-intro p,
.synthesis p {
  max-width: 880px;
}

.thesis {
  background: var(--soft-green);
  border: 0;
  border-left: 4px solid var(--green);
  border-radius: 0;
  color: #25352e;
  padding: 14px 16px;
}

.framework-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 22px 0;
}

.framework-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--soft-blue);
  padding: 16px;
}

.framework-card h4,
.note-box h4,
.commentary h4 {
  color: var(--rule-dark);
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  letter-spacing: 0;
  margin-top: 0;
}

.verse-card {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 16px 28px;
  grid-template-areas:
    "ref scripture"
    "ref pauline"
    "ref commentary"
    "notes notes";
  grid-template-columns: 112px minmax(0, 1fr);
  margin: 0;
  padding: 30px 0 38px;
}

.verse-card > h3 {
  align-self: start;
  color: var(--rule);
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 0.82rem;
  grid-area: ref;
  line-height: 1.35;
  margin: 0;
  padding-top: 4px;
  text-align: right;
}

.scripture {
  background: transparent;
  border: 0;
  border-left: 4px solid var(--rule);
  border-radius: 0;
  color: #171b1a;
  font-size: 1.16rem;
  grid-area: scripture;
  line-height: 1.82;
  margin: 0;
  padding: 0 0 0 18px;
}

.label,
.method-label {
  color: var(--green);
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 7px;
}

.pauline {
  background: var(--soft-blue);
  border: 0;
  border-left: 0;
  border-top: 2px solid var(--rule);
  border-radius: 0;
  box-shadow: none;
  color: #2c3836;
  grid-area: pauline;
  margin: 0;
  padding: 14px 16px;
}

.pauline p {
  font-style: normal;
  margin-bottom: 0;
}

.commentary {
  border: 0;
  border-top: 1px solid var(--line);
  grid-area: commentary;
  margin: 0;
  padding-top: 14px;
}

.commentary p,
.pauline p,
.note-box p,
.section-intro p,
.synthesis p,
.framework-card p {
  margin-top: 0;
}

.scholia {
  background: var(--note);
  border: 0;
  border-top: 2px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 0;
  grid-area: notes;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2px;
  padding: 16px 0 6px;
}

.unit-study-panel {
  grid-area: auto;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 34px;
}

.note-box {
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 0 18px 12px;
}

.note-box:first-child {
  border-left: 0;
}

.anchor-top {
  display: none;
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 0.86rem;
  grid-area: back;
  justify-self: start;
}

.footer-note {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 0.86rem;
  margin-top: 54px;
  padding-top: 18px;
}

.study-note-article {
  max-width: 920px;
}

.study-note-article h2 {
  border-top: 2px solid var(--rule);
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.24;
  margin: 58px 0 18px;
  padding-top: 24px;
}

.study-note-article h2:first-child {
  margin-top: 0;
}

.study-note-article h3 {
  border-top: 1px solid var(--line);
  color: var(--rule-dark);
  font-size: 1.42rem;
  line-height: 1.34;
  margin: 34px 0 12px;
  padding-top: 18px;
}

.study-note-article h4 {
  color: var(--green);
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 1.08rem;
  line-height: 1.42;
  margin: 28px 0 10px;
}

.study-note-article h5 {
  color: var(--rule-dark);
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  margin: 22px 0 8px;
}

.study-note-article p,
.study-note-article li {
  font-size: 1rem;
  line-height: 1.86;
}

.study-note-article blockquote {
  background: var(--soft-green);
  border-left: 4px solid var(--green);
  margin: 0 0 24px;
  padding: 16px 18px;
}

.study-note-article blockquote p {
  margin: 0;
}

.study-note-article strong {
  color: var(--rule-dark);
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.study-note-article code {
  background: var(--note);
  border: 1px solid var(--line);
  padding: 1px 5px;
}

.background-article {
  max-width: 920px;
}

.background-summary-grid {
  border-bottom: 2px solid var(--rule);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 34px;
}

.background-summary-item {
  background: var(--soft-blue);
  padding: 15px 16px;
}

.background-summary-item dt {
  color: var(--green);
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 5px;
}

.background-summary-item dd {
  margin: 0;
}

.background-section {
  border-top: 1px solid var(--line);
  margin: 0 0 34px;
  padding-top: 24px;
}

.background-section h2 {
  border-bottom: 0;
  color: var(--ink);
  font-size: clamp(1.48rem, 2vw, 2rem);
  line-height: 1.24;
  margin: 0 0 14px;
  padding: 0;
}

.background-section p {
  max-width: 820px;
}

.background-outline {
  display: grid;
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  gap: 10px;
  list-style: none;
  margin: 18px 0 0;
  max-width: 820px;
  padding: 0;
}

.background-outline li {
  border-left: 3px solid var(--rule);
  line-height: 1.65;
  padding: 8px 0 8px 13px;
}

.background-outline .outline-title {
  color: var(--ink);
  font-weight: 700;
}

.background-outline-nested {
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
}

.background-outline-nested li {
  border-left: 1px solid var(--line);
  color: var(--muted);
  padding: 4px 0 4px 12px;
}

.background-visual-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.background-figure {
  border: 1px solid var(--line);
  margin: 0;
  overflow: hidden;
  padding: 12px;
}

.background-figure img {
  background: #fff;
  display: block;
  height: auto;
  margin: 0 auto;
  max-height: min(560px, 72vh);
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.background-figure figcaption {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 0.84rem;
  line-height: 1.55;
  margin-top: 10px;
  padding-top: 10px;
}

.source-list {
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  margin-top: 10px;
}

.reading-path {
  background: var(--soft-green);
  border-top: 2px solid var(--green);
  padding: 18px;
}

@media (max-width: 1180px) {
  .study-title-row {
    grid-template-columns: 1fr;
  }

  .study-layout {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .study-index-layout {
    display: block;
    max-width: 980px;
  }

  .study-index-layout .study-sidebar {
    background: var(--sidebar);
    border-bottom: 1px solid var(--line);
    border-right: 0;
    margin-bottom: 28px;
    min-height: 0;
    padding: 16px;
    position: static;
    text-align: left;
  }

  .study-index-layout .study-sidebar-group {
    display: grid;
    gap: 8px 14px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }

  .study-index-layout .study-sidebar h2 {
    grid-column: 1 / -1;
  }

  .study-index-layout .study-sidebar a {
    min-height: 38px;
    padding: 8px 0;
  }

  body.study-index-page .study-index-layout .study-sidebar {
    display: none;
  }

  .verse-card {
    grid-template-areas:
      "ref scripture"
      "ref pauline"
      "ref commentary"
      "notes notes";
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .scholia,
  .framework-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .canon-layout,
  .collection-grid {
    grid-template-columns: 1fr;
  }

  .background-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .study-masthead {
    padding: 22px max(22px, calc(16px + env(safe-area-inset-right))) 22px max(22px, calc(16px + env(safe-area-inset-left)));
  }

  body.study-index-page .study-masthead h1 {
    font-size: clamp(2.38rem, 12vw, 3.6rem);
  }

  .study-top-actions {
    justify-content: flex-start;
    margin-bottom: 28px;
  }

  .study-top-actions a {
    min-height: 42px;
    padding: 10px 12px;
  }

  .study-primary-actions,
  .book-card-actions,
  .book-section-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .study-primary-actions a,
  .book-card-actions a,
  .book-section-actions a {
    width: 100%;
  }

  .study-layout {
    display: block;
    padding: 24px max(22px, calc(16px + env(safe-area-inset-right))) calc(80px + env(safe-area-inset-bottom)) max(22px, calc(16px + env(safe-area-inset-left)));
  }

  .study-sidebar {
    background: var(--sidebar);
    border-bottom: 1px solid var(--line);
    border-right: 0;
    margin-bottom: 32px;
    min-height: 0;
    padding: 18px;
    position: static;
    text-align: left;
  }

  .study-sidebar a {
    min-height: 44px;
    padding: 10px 0;
  }

  .book-library {
    grid-template-columns: 1fr;
  }

  .canon-book-grid {
    grid-template-columns: 1fr;
  }

  .canon-book {
    min-height: 50px;
    padding: 10px 12px;
  }

  .collection-link-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .study-note-article h2 {
    font-size: 1.76rem;
    margin-top: 46px;
  }

  .study-note-article h3 {
    font-size: 1.22rem;
  }

  .study-note-article p,
  .study-note-article li {
    line-height: 1.82;
  }

  .section-heading-row,
  .book-section-head {
    align-items: stretch;
    display: block;
  }

  .book-section-actions {
    margin-top: 14px;
  }

  .toc-details .roadmap {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .toc-details summary {
    min-height: 44px;
  }

  .study-verse-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .verse-card {
    display: block;
    padding: 28px 0 34px;
  }

  .verse-card > h3,
  .scripture,
  .pauline,
  .commentary,
  .scholia,
  .anchor-top {
    margin-bottom: 18px;
  }

  .verse-card > h3 {
    display: block;
    font-size: 0.96rem;
    line-height: 1.35;
    padding-top: 0;
    text-align: left;
  }

  .anchor-top {
    display: inline-block;
  }

  .scripture {
    border-left-width: 3px;
    font-size: 1.08rem;
    line-height: 1.78;
    padding-left: 14px;
    padding-right: 4px;
  }

  .pauline {
    margin-top: 18px;
    padding: 16px 14px;
  }

  .commentary {
    margin-top: 18px;
    padding: 16px 14px 0;
  }

  .scholia,
  .framework-grid,
  .background-summary-grid {
    grid-template-columns: 1fr;
  }

  .scholia {
    padding: 0;
  }

  .unit-study-panel {
    margin-bottom: 28px;
  }

  .note-box {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 18px 14px 20px;
  }

  .note-box:first-child {
    border-top: 0;
  }
}

@page {
  margin: 17mm 14mm;
}

@media print {
  html {
    scroll-behavior: auto;
  }

  body.study-page {
    color: #000;
    font-size: 10.8pt;
    line-height: 1.55;
  }

  .study-top-actions,
  .study-sidebar,
  .anchor-top,
  .skip-link {
    display: none;
  }

  .study-masthead {
    border-bottom: 2px solid #000;
    padding: 0 0 12mm;
  }

  .study-title-row,
  .study-layout,
  .verse-card {
    display: block;
  }

  .study-masthead h1 {
    font-size: 34pt;
  }

  .study-layout {
    max-width: none;
    padding: 10mm 0 0;
  }

  .section-intro,
  .synthesis,
  .verse-card,
  .framework-card,
  .note-box,
  .background-section,
  .background-figure {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .scripture,
  .pauline,
  .scholia {
    border-color: #777;
  }
}

