.ollendorff-page .ollendorff-tab { color: #756e61; white-space: nowrap; }
.ollendorff-page .novel-title { padding: calc(59px - 1mm) 0; }
.ollendorff-page .novel-title .room-eyebrow { margin: 0 0 16px; }
.ollendorff-page .novel-title h1 { margin-bottom: 6px; }
.ollendorff-page .lesson-italian-title { font-size: 25px; color: #4a453b; margin: 0; }
.ollendorff-page .ollendorff-reading-hint { font-size: 17px; color: #777165; margin: 22px 0 0; text-align: center; }
.ollendorff-page .lesson-stream { overflow-anchor: none; outline: none; }
.ollendorff-jump { margin: 0; }
.ollendorff-page .ocr-table { display: table; width: 100%; border-collapse: collapse; }
.ollendorff-page .ocr-table::before { content: none; }
.ollendorff-page .ocr-table td { vertical-align: top; padding: 3px 12px; min-width: 100px; }
.ollendorff-page .ocr-table td + td { border-left: 1px solid #b3a88f; }
.ocr-table-scroll { overflow-x: auto; margin: 16px 0; }
.ocr-lesson, .ocr-supplement { font-size: 21px; line-height: 1.6; }
.ocr-supplement { margin: 28px 0; }
.ocr-supplement summary { cursor: pointer; }
.ocr-pairing-note { font-size: 17px; color: #756e61; }
.ocr-key-gap { font-size: 18px; border-left: 2px solid #b3a88f; padding-left: 12px; }
.ollendorff-page .exercise-sentence .editorial-answer-note { font-size: 14px; color: #756e61; margin: 2px 0; }
.ollendorff-page .lesson-sheet { max-width: 760px; margin: 0 auto; padding: 0 0 70px; }

/* The printed page's parallel columns, ruled at the centre. */
.ollendorff-page .lesson-table {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 30px;
  align-items: baseline;
  font-size: 21px;
  line-height: 1.6;
}
.ollendorff-page .lesson-table::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #b3a88f;
}
.ollendorff-page .lesson-table > p,
.ollendorff-page .lesson-cell { margin: 0; padding: 3px 0; }
.ollendorff-page .reviewed-lesson .lesson-table > p { overflow-wrap: anywhere; }
.ollendorff-page .lesson-table > :nth-child(even) { padding-left: 26px; }
.ollendorff-page .lesson-vocab { padding-left: 4%; }
.ollendorff-page .lesson-vocab > :nth-child(even) { font-weight: 600; }
.ollendorff-page .lesson-table > .lesson-phrase-word:nth-child(odd),
.ollendorff-page .lesson-cell .lesson-phrase-word { text-align: center; }
.ollendorff-page .lesson-possessive { font-size: .68em; }
.ollendorff-page .lesson-cell p { margin: 0; }
.ollendorff-page .brace-group { display: flex; align-items: center; gap: 12px; }
.ollendorff-page .brace-glyph {
  align-self: stretch;
  display: flex;
  align-items: center;
  font-size: 3.1em;
  line-height: 1;
  transform: scaleX(.62);
  transform-origin: center;
  font-weight: 400;
  color: #3f3a31;
}
.ollendorff-page .brace-lines p { margin: 0; }
.ollendorff-page .brace-small { margin-right: .38em; }
.ollendorff-page .brace-indent { padding-left: 1.05em; }

.ollendorff-page .lesson-rule {
  width: 118px;
  border-top: 1px solid #8d8471;
  margin: 40px auto;
}

/* The printed observations and footnotes beneath the tables. */
.ollendorff-page .lesson-obs,
.ollendorff-page .lesson-footnotes {
  max-width: 700px;
  margin: 30px auto 0;
  font-size: 18px;
  line-height: 1.55;
  color: #4a453b;
}
.ollendorff-page .lesson-footnotes { font-size: 15px; color: #5d574b; margin-top: 34px; }
.ollendorff-page .lesson-footnotes p { margin: 0; }
.ollendorff-page .lesson-obs strong { font-weight: 600; }
.ollendorff-page .lesson-footnotes sup { font-size: .72em; }

/* The printed declension blocks and their small-caps headings. */
.ollendorff-page .lesson-subheading {
  font-size: 19px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  font-weight: 400;
  color: #4a453b;
  margin: 46px 0 6px;
}
.ollendorff-page .lesson-subheading-minor { font-size: 16px; margin: 18px 0 14px; }
.ollendorff-page .lesson-subheading-italian {
  text-align: center;
  font-size: 21px;
  color: #4a453b;
  margin: 0 0 4px;
}
.ollendorff-page .lesson-declension-grid {
  max-width: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 44px;
  font-size: 21px;
  line-height: 1.75;
}
.ollendorff-page .lesson-declension-column p { margin: 0; }
.ollendorff-page .lesson-declension-case {
  display: inline-block;
  width: 3.2em;
  font-style: italic;
  font-size: .88em;
}
.ollendorff-page .lesson-declension-wide { max-width: 720px; }
.ollendorff-page .lesson-declension-head {
  font-size: 17px;
  letter-spacing: .12em;
  margin: 0 0 8px;
}
.ollendorff-page .lesson-subheading-note {
  text-align: center;
  font-size: 18px;
  color: #4a453b;
  margin: 0 0 26px;
}
.ollendorff-page .lesson-subheading-tight { margin-top: 40px; }
.ollendorff-page .brace-glyph-close { transform: scaleX(.62); }
.ollendorff-page .lesson-stray {
  font-size: .72em;
  vertical-align: .32em;
  color: #8d8471;
  margin-left: 1px;
}

/* The four-column singulare/plurale tables of the exceptions. */
.ollendorff-page .lesson-quad {
  position: relative;
  max-width: 700px;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 34px;
  font-size: 21px;
  line-height: 1.6;
}
.ollendorff-page .lesson-quad::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #b3a88f;
}
.ollendorff-page .lesson-quad-head,
.ollendorff-page .lesson-quad-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 18px;
  align-items: baseline;
}
.ollendorff-page .lesson-quad-head p,
.ollendorff-page .lesson-quad-row p { margin: 0; padding: 3px 0; }
.ollendorff-page .lesson-quad-head p { text-align: center; font-size: .92em; }
.ollendorff-page .lesson-quad-row p:nth-child(2) { padding-left: 18px; }
/* The three-column numeral tables of the fourteenth lesson. */
.ollendorff-page .lesson-triple {
  max-width: 740px;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.1fr;
  column-gap: 22px;
  align-items: baseline;
  font-size: 20px;
  line-height: 1.55;
}
.ollendorff-page .lesson-triple p { margin: 0; padding: 2px 0; }
.ollendorff-page .lesson-triple .lesson-triple-head { text-align: center; font-size: .92em; font-style: italic; }
.ollendorff-page .lesson-triple > :nth-child(3n+2), .ollendorff-page .lesson-triple > :nth-child(3n) { padding-left: 10px; }
.ollendorff-page .lesson-quad-mascolino {
  max-width: 700px;
  margin: 30px auto 0;
  text-align: center;
  font-size: 18px;
  letter-spacing: .1em;
  color: #4a453b;
}
.ollendorff-page .lesson-footnote-table {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 34px;
  margin: 8px 0 0 2em;
  font-size: 15px;
  line-height: 1.6;
}
.ollendorff-page .lesson-footnote-table p { margin: 0; padding: 2px 0; }

.ollendorff-page .lesson-heading,
.ollendorff-page .exercise-number { text-align: center; font-weight: 400; color: #4a453b; }
.ollendorff-page .lesson-heading {
  font-size: 24px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 30px;
}
.ollendorff-page .exercise-head {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 22px;
}
.ollendorff-page .exercise-head .exercise-number { margin: 0; }
.ollendorff-page .exercise-number { font-size: 23px; margin: 0 0 22px; }
.ollendorff-page .exercise-text,
.ollendorff-page .key-text {
  max-width: 700px;
  margin: 0 auto 34px;
  font-size: 21px;
  line-height: 1.65;
  text-align: justify;
  hyphens: auto;
  overflow-wrap: break-word;
  text-indent: 1.15em;
}
.ollendorff-page .lesson-exercises { margin-top: 0; }
.ollendorff-page .lesson-reference { margin-top: 40px; }
.ollendorff-page .lesson-reference > summary {
  padding: 22px 26px;
  border-radius: 6px;
  background: #405b4c;
  color: #fffdf9;
  font-size: clamp(23px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}
.ollendorff-page .lesson-reference > summary:hover { background: #334d3f; }
.ollendorff-page .lesson-reference > summary:focus-visible { outline: 3px solid #a66b08; outline-offset: 4px; }
.ollendorff-page .lesson-reference-content { padding-top: 12px; }
.ollendorff-page .vocabulary-warning {
  margin: 32px 0;
  padding: 18px 22px;
  border: 1px solid #d4b56c;
  border-left: 4px solid #a66b08;
  border-radius: 6px;
  background: #fff6df;
  color: #4a3b22;
  font-size: 18px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.ollendorff-page .vocabulary-warning[hidden] { display: none; }
.ollendorff-page .vocabulary-warning h3 { margin: 0 0 10px; font-size: 20px; font-weight: 600; }
.ollendorff-page .vocabulary-warning-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3em;
  height: 1.3em;
  margin-right: 5px;
  border-radius: 50%;
  background: #a66b08;
  color: #fff;
  font-weight: 700;
}
.ollendorff-page .vocabulary-warning-intro { margin: 0 0 12px; }
.ollendorff-page .vocabulary-warning ul { margin: 0; padding-left: 1.2em; }
.ollendorff-page .vocabulary-warning li + li { margin-top: 12px; }
.ollendorff-page .vocabulary-source-method { margin: 0 0 14px; font-size: 16px; line-height: 1.45; }
.ollendorff-page .vocabulary-source-checks { margin-top: 6px; font-size: 16px; line-height: 1.45; }
.ollendorff-page .vocabulary-source-checks .vocabulary-source-check { margin: 3px 0 0; text-indent: 0; }
.ollendorff-page .exercise-sentence-list { max-width: 700px; margin: 0 auto 34px; padding-left: 1.8em; font-size: 21px; line-height: 1.65; }
.ollendorff-page .exercise-sentence { padding: 16px 0 18px 8px; border-bottom: 1px solid #ded7c9; overflow-wrap: break-word; }
.ollendorff-page .exercise-sentence:first-child { padding-top: 0; }
.ollendorff-page .exercise-sentence:last-child { border-bottom: 0; }
.ollendorff-page .exercise-sentence::marker { font-size: .75em; color: #756e61; }
.ollendorff-page .exercise-sentence p { margin: 0 0 6px; }
.ollendorff-page .exercise-sentence .answer { display: block; text-align: left; }
.ollendorff-page .lesson-exercises .ollendorff-reading-hint { margin: 6px 0 24px; }

.ollendorff-page .lesson-exercise + .lesson-exercise { margin-top: 14px; }
.ollendorff-page .exercise-navigation { margin-bottom: 22px; }
.ollendorff-page .exercise-navigation[hidden],
.ollendorff-page .lesson-exercise[hidden] { display: none; }
.ollendorff-page .exercise-progress { text-align: center; font-size: 16px; color: #756e61; margin: 0 0 14px; }
.ollendorff-page .exercise-navigation-bottom { margin: 18px 0 0; }
.ollendorff-page .exercise-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ollendorff-page .exercise-controls .exercise-progress { margin: 0; }
.ollendorff-page .exercise-controls button { flex-shrink: 0; }
.ollendorff-page .exercise-controls button { border: 1px solid #b3a88f; border-radius: 4px; background: transparent; padding: 8px 12px; font: inherit; font-size: 16px; color: #4a453b; cursor: pointer; }
.ollendorff-page .exercise-controls button:disabled { opacity: .4; cursor: default; }
.ollendorff-page .exercise-controls button:focus-visible { outline-offset: 3px; }
.ollendorff-page .lesson-selector { display: flex; align-items: center; gap: 6px; font-size: 16px; color: #756e61; }
.ollendorff-page .lesson-selector select { min-height: 36px; max-width: 100%; border: 1px solid #b3a88f; border-radius: 4px; padding: 4px 6px; background: transparent; font: inherit; color: #4a453b; }
.ollendorff-page .lesson-selector select:focus-visible { outline-offset: 3px; }
.ollendorff-page .novel-navigation { flex-wrap: wrap; gap: 12px; }
.ollendorff-page .exercise-container { position: relative; }
.ollendorff-page .exercise-container > .exercise-progress { padding: 0 38px; line-height: 24px; }
.ollendorff-page .exercise-container.is-navigable { border: 1px solid #b3a88f; border-radius: 6px; padding: 22px 18px 0; }
.ollendorff-page .exercise-container .lesson-exercise { margin-top: 0; }

/* Per-exercise Show all/Hide all toggle and the Finished badge. */
.ollendorff-page .exercise-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  margin: 0;
  padding: 3px 6px;
  background: none;
  font: inherit;
  font-size: 15px;
  color: #756e61;
  cursor: pointer;
}
.ollendorff-page .exercise-toggle:hover { color: #4a453b; }
.ollendorff-page .exercise-toggle:focus-visible { outline-offset: 3px; border-radius: 2px; }
.ollendorff-page .exercise-finished {
  display: inline-block;
  padding: 2px 10px 3px;
  border: 1px solid #8d8471;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #4a453b;
  white-space: nowrap;
}
.ollendorff-page .exercise-finished[hidden] { display: none; }

/* Masked Italian answers: one click reveals, another hides. */
.ollendorff-page .answer {
  border: 0;
  margin: 0;
  padding: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-indent: 0;
}
.ollendorff-page .answer:focus-visible { outline-offset: 3px; border-radius: 2px; }
.ollendorff-page .answer-text {
  filter: blur(6px);
  opacity: .55;
  text-decoration: underline dotted;
  text-decoration-color: rgb(130 118 87 / 45%);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  transition: filter .18s ease, opacity .18s ease;
}
.ollendorff-page .answer:hover .answer-text { text-decoration-color: rgb(130 118 87 / 75%); }
.ollendorff-page .answer[aria-pressed="true"] .answer-text {
  filter: none;
  opacity: 1;
  text-decoration: none;
}
.ollendorff-page .answer-dash { text-indent: 0; }

/* The printed page's tall brace followed by the wording both forms share. */
.ollendorff-page .brace-stack p { white-space: nowrap; }
.ollendorff-page .brace-tail { flex: 1 1 auto; }

/* End-of-page movement between lessons. */
.ollendorff-page .lesson-pager {
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 0 70px;
  display: flex;
  gap: 24px;
  font-size: 19px;
}
.ollendorff-page .lesson-pager-prev { margin-right: auto; }
.ollendorff-page .lesson-pager-next { margin-left: auto; }
.ollendorff-page .lesson-pager-link { color: #756e61; }
.ollendorff-page .lesson-pager-link:hover { color: #4a453b; }

@media (max-width: 600px) {
  .ollendorff-page .novel-title { padding: calc(40px - 1mm) 0; }
  .ollendorff-page .exercise-sentence-list { font-size: 19px; }
  .ollendorff-page .lesson-table { font-size: 18px; column-gap: 18px; }
  .ollendorff-page .lesson-table > :nth-child(even) { padding-left: 16px; }
  .ollendorff-page .lesson-vocab { padding-left: 4%; }
  .ollendorff-page .exercise-text, .ollendorff-page .key-text { font-size: 19px; }
}

@media print {
  .ollendorff-page .lesson-exercise[hidden] { display: block; }
  .ollendorff-page .exercise-navigation { display: none; }
  .ollendorff-page .exercise-container.is-navigable { border: 0; padding: 0; }
  .ollendorff-page .answer-text { filter: none; opacity: 1; text-decoration: none; }
  .ollendorff-page .novel-navigation, .ollendorff-page .ollendorff-reading-hint,
  .ollendorff-page .lesson-pager, .ollendorff-page .exercise-toggle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ollendorff-page .answer-text { transition: none; }
}
