.river-investigation {
  color: var(--ink, #203747);
  font-variant-numeric: tabular-nums lining-nums;
}

.river-investigation .river-page {
  min-width: 0;
}

.river-investigation h2,
.river-investigation h3,
.river-investigation h4,
.river-investigation p,
.river-investigation ol,
.river-investigation ul,
.river-investigation dl,
.river-investigation figure {
  margin-top: 0;
}

.river-investigation .protocol-opening {
  margin: 0 0 0.1in;
  padding: 0.04in 0.04in 0.09in 0.14in;
  border-left: 0.035in solid #55506a;
}

.river-investigation .protocol-opening h2 {
  margin: 0 0 0.07in;
  color: #423b55;
  font-size: 0.205in;
  line-height: 1.18;
}

.river-investigation .protocol-opening p {
  margin: 0;
  font-size: 0.15in;
  line-height: 1.4;
}

.river-investigation .protocol-card {
  margin: 0;
  padding: 0.14in 0.18in 0.14in 0.21in;
  background: linear-gradient(90deg, #f3ede1 0, #fffdf6 76%);
  border: 1px solid #d5c58f;
  border-left: 0.04in solid #947347;
  box-shadow: none;
}

.river-investigation .protocol-list {
  margin: 0;
  padding-left: 0.25in;
  counter-reset: protocol-step;
}

.river-investigation .protocol-list li {
  position: relative;
  padding-left: 0.025in;
  font-size: 0.144in;
  line-height: 1.36;
}

.river-investigation .protocol-list li::marker {
  color: #55506a;
  font-weight: 800;
}

.river-investigation .protocol-list li + li {
  margin-top: 0.065in;
}

.river-investigation .constant-level-rule {
  display: flex;
  min-height: 0.18in;
  align-items: center;
  margin: 0.21in 0 0;
  padding-inline: 0.12in;
}

.river-investigation .constant-level-rule span {
  display: block;
  width: 100%;
  border-top: 2px solid #638a9d;
  box-shadow: 0 0.045in 0 -0.035in #d4a847;
}

.river-investigation .constant-level-rule--ending {
  margin-top: 0.13in;
}

.river-investigation .river-cycle-figure {
  min-height: 2in;
  margin: 0 0 0.12in;
  padding: 0.065in 0.08in 0.07in;
  background: #f5faf9;
  border: 1px solid #a9a6b0;
  border-top: 0.035in solid #55506a;
  break-inside: avoid;
}

.river-investigation .river-cycle-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.river-investigation .river-cycle-figure figcaption {
  margin: 0.035in 0.04in 0;
  color: #40545e;
  font-size:0.136in;
  line-height: 1.28;
  text-align: center;
}

.river-investigation .observation-band {
  margin: 0.11in 0 0.08in;
  padding: 0.08in 0.12in 0.09in 0.15in;
  background: linear-gradient(90deg, #f0edf3 0, #faf9fb 74%);
  border: 0;
  border-left: 0.04in solid #55506a;
  box-shadow: none;
}

.river-investigation .observation-band h2 {
  display: flex;
  align-items: baseline;
  gap: 0.09in;
  margin: 0 0 0.045in;
  color: #423b55;
  font-size: 0.185in;
  line-height: 1.18;
}

.river-investigation .observation-band h2 span {
  flex: 0 0 auto;
  padding: 0.027in 0.075in 0.025in;
  color: #ffffff;
  background: #55506a;
  border-radius: 0.03in;
  font-size:0.125in;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.05;
}

.river-investigation .observation-band p,
.river-investigation .observation-band ul {
  margin: 0;
  font-size: 0.144in;
  font-weight: 560;
  line-height: 1.36;
}

.river-investigation .observation-band p + p {
  margin-top: 0.055in;
}

.river-investigation .observation-band ul {
  margin-top: 0.04in;
  padding-left: 0.24in;
}

.river-investigation .observation-band li + li {
  margin-top: 0.025in;
}

.river-investigation .response-panel {
  min-width: 0;
  background: #fffdf7;
  border: 1px solid #cbbf9e;
  box-shadow: inset 0 0 0 1px #ffffff;
}

.river-investigation .field-record-region {
  min-height: 4.15in;
  break-inside: avoid;
}

.river-investigation .field-record-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.132in;
  line-height: 1.24;
}

.river-investigation .field-record-table .observation-column {
  width: 42%;
}

.river-investigation .field-record-table .amount-column {
  width: 29%;
}

.river-investigation .field-record-table th,
.river-investigation .field-record-table td {
  padding: 0.075in 0.085in;
  border: 1px solid #9fb5b8;
  vertical-align: middle;
}

.river-investigation .field-record-table thead th {
  color: #263d55;
  background: #e7e7ea;
  font-weight: 800;
  text-align: center;
}

.river-investigation .field-record-table thead span {
  display: block;
  white-space: nowrap;
}

.river-investigation .field-record-table tbody th {
  color: #314854;
  background: #f4f7f4;
  font-weight: 700;
  text-align: left;
}

.river-investigation .field-record-table tbody td {
  background: #ffffff;
  text-align: center;
}

.river-investigation .field-record-table .given-row td {
  color: #243c50;
  background: #f0f4f2;
  font-weight: 800;
}

.river-investigation .field-record-table tr {
  break-inside: avoid;
}

.river-investigation .entry-space {
  display: flex;
  min-height: 0.42in;
  align-items: center;
  justify-content: center;
}

.river-investigation .pattern-response {
  padding: 0.11in 0.14in 0.13in;
}

.river-investigation .pattern-response p {
  margin: 0 0 0.045in;
  color: #304853;
  font-size: 0.132in;
  line-height: 1.3;
}

.river-investigation .writing-lines {
  min-width: 0;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 0.32in, #aabcc0 0.32in, #aabcc0 0.33in);
  background-position: 0 0;
}

.river-investigation .writing-lines--pattern {
  min-height: 0.96in;
}

.river-investigation .optional-workspace {
  min-height: 1.45in;
  margin: 0 0 0.11in;
  padding: 0.1in 0.13in 0.12in;
  border-color: #b9c7c3;
  border-style: dashed;
  background: #fbfdfb;
}

.river-investigation .optional-workspace h3,
.river-investigation .threshold-proof > h3 {
  margin: 0;
  color: #40545e;
  font-size: 0.132in;
  line-height: 1.2;
}

.river-investigation .open-work-area {
  min-height: 1.02in;
  padding: 0.09in 0.04in 0;
}

.river-investigation .threshold-proof {
  min-height: 4.65in;
  padding: 0.11in 0.12in 0.13in;
  border-top: 0.035in solid #55506a;
  break-inside: avoid;
}

.river-investigation .threshold-proof > h3 {
  margin-bottom: 0.075in;
  color: #283f68;
  font-size: 0.165in;
}

.river-investigation .boundary-records {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.11in;
}

.river-investigation .boundary-card {
  min-width: 0;
  padding: 0;
  background: #ffffff;
  border: 1px solid #9eb4ba;
  break-inside: avoid;
}

.river-investigation .boundary-card h4 {
  min-height: 0.47in;
  margin: 0;
  padding: 0.075in 0.09in;
  color: #ffffff;
  background: #555967;
  font-size: 0.132in;
  line-height: 1.22;
}

.river-investigation .proof-fields {
  margin: 0;
  padding: 0.04in 0.09in 0.08in;
}

.river-investigation .proof-fields > div {
  display: grid;
  grid-template-columns: minmax(1.05in, 0.9fr) minmax(0, 1.1fr);
  gap: 0.07in;
  align-items: end;
  min-height: 0.43in;
  padding: 0.045in 0;
  border-bottom: 1px solid #dde5e4;
}

.river-investigation .proof-fields > div:last-child {
  border-bottom: 0;
}

.river-investigation .proof-fields dt,
.river-investigation .proof-fields dd {
  margin: 0;
  font-size:0.125in;
  line-height: 1.23;
}

.river-investigation .proof-fields dt {
  color: #40545e;
  font-weight: 750;
}

.river-investigation .proof-fields dd {
  min-width: 0;
  min-height: 0.24in;
  padding: 0 0.03in 0.015in;
  border-bottom: 1.5px solid #657d85;
}

.river-investigation .proof-fields .comparison-field {
  display: block;
  min-height: 1.08in;
}

.river-investigation .comparison-field dt {
  margin-bottom: 0.035in;
}

.river-investigation .comparison-field dd {
  min-height: 0.64in;
}

.river-investigation .short-field,
.river-investigation .long-field,
.river-investigation .comparison-space {
  display: block;
  min-width: 0;
}

.river-investigation .earliest-bell-field {
  margin-top: 0.1in;
  padding: 0.095in 0.11in 0.1in;
  background: #f3f7f6;
  border-left: 0.035in solid #947347;
}

.river-investigation .earliest-bell-field p {
  margin: 0 0 0.04in;
  font-size: 0.126in;
  line-height: 1.25;
}

.river-investigation .writing-lines--earliest {
  min-height: 1.06in;
}

.river-investigation .prose-response {
  padding: 0.13in 0.17in 0.15in;
}

.river-investigation .finite-bell-response {
  min-height: 1.65in;
  margin-bottom: 0.15in;
}

.river-investigation .river-interpretation-response {
  min-height: 2.55in;
}

.river-investigation .writing-lines--finite {
  min-height: 1.35in;
}

.river-investigation .writing-lines--interpretation {
  min-height: 2.22in;
}

.river-investigation .student-entry,
.river-investigation .student-response {
  color: #245d79;
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-weight: 600;
}

.river-investigation .student-entry {
  font-size: 0.136in;
  line-height: 1.28;
}

.river-investigation .student-response {
  margin: 0;
  font-size: 0.137in;
  line-height: 0.32in;
}

.river-investigation .scratch-response {
  line-height: 0.31in;
}

.river-investigation .completed-writing {
  background-color: rgba(255, 255, 255, 0.38);
}

.river-answer-key {
  color: var(--ink, #203747);
  font-size: 0.93rem;
  line-height: 1.38;
  font-variant-numeric: tabular-nums lining-nums;
}

.river-answer-key .key-section {
  margin: 0 0 0.14in;
}

.river-answer-key .key-section > :last-child {
  margin-bottom: 0;
}

.river-answer-key h2 {
  margin: 0 0 0.055in;
  padding: 0 0 0.035in 0.09in;
  color: #304a72;
  border-bottom: 1px solid #afc3c7;
  border-left: 0.035in solid #947347;
  font-size: 0.165in;
  line-height: 1.18;
}

.river-answer-key p,
.river-answer-key ul {
  margin: 0 0 0.07in;
}

.river-answer-key ul {
  padding-left: 0.23in;
}

.river-answer-key li + li {
  margin-top: 0.035in;
}

.river-answer-key .key-table {
  width: 100%;
  margin: 0 0 0.08in;
  border-collapse: collapse;
  table-layout: fixed;
  font-size:0.125in;
  line-height: 1.22;
}

.river-answer-key .key-table th,
.river-answer-key .key-table td {
  padding: 0.045in 0.06in;
  border: 1px solid #9fb5b8;
  vertical-align: middle;
}

.river-answer-key .key-table thead th {
  color: #253d54;
  background: #e7efef;
  text-align: center;
}

.river-answer-key .key-table thead span {
  display: block;
}

.river-answer-key .key-table tbody th {
  background: #f5f8f5;
  text-align: left;
}

.river-answer-key .key-table tbody td {
  text-align: center;
}

.river-answer-key .key-table tr {
  break-inside: avoid;
}

.river-answer-key .key-model-response,
.river-answer-key .key-threshold-equivalence {
  padding: 0.075in 0.095in;
  background: #f1f7f6;
  border-left: 0.035in solid #5f8c91;
  break-inside: avoid;
}

.river-answer-key blockquote.key-model-response {
  margin: 0 0 0.07in;
}

.river-answer-key .rubric-introduction {
  padding: 0.08in 0.1in;
  background: #fff6e2;
  border: 1px solid #d5c28a;
}

.river-answer-key .rubric-card {
  margin-bottom: 0.08in;
  padding: 0.05in 0.1in;
  background: #fbfcf9;
  border: 1px solid #c9d7d6;
  break-inside: avoid;
}

.river-answer-key .math-expression {
  white-space: nowrap;
}

/* Moorhaunt: midnight water, field records, and a disputed wooden sign. */
[data-worksheet][data-problem-id="59"] .problem { padding-top:0.08in; }
.river-investigation .midnight-hero { margin: 0 0 0.075in; border-bottom: 0.045in solid #947347; }
.river-investigation .midnight-hero img { display:block; width:100%; height:2.77in; object-fit:cover; object-position:50% 52%; }
.river-investigation .midnight-opening h2 { color:#423b55; margin:0 0 0.045in; font-size:0.19in; line-height:1.12; }
.river-investigation .midnight-opening p { font-size:0.143in; line-height:1.27; margin:0 0 0.04in; }
.river-investigation .curse-law { margin:0.05in 0; padding:0.055in 0.12in; border-left:0.035in solid #55506a; background:#f0edf3; }
.river-investigation .curse-law p { margin:0; font-size:0.14in; line-height:1.31; }
.river-investigation .midnight-procedure { border-top:1px solid #b0a6a0; padding-top:0.055in; }
.river-investigation .midnight-procedure h3 { margin:0; color:#645035; font-size:0.155in; line-height:1.15; }
.river-investigation .midnight-procedure .rule-intro { margin:0.01in 0 0.04in; color:#555562; font-size:0.125in; }
.river-investigation .midnight-procedure ol { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:1fr 1fr; gap:0.05in 0.17in; }
.river-investigation .midnight-procedure li { border-top:1px solid #ded6c9; padding:0.035in 0.02in 0; font-size:0.138in; line-height:1.30; }
.river-investigation .midnight-procedure li strong { color:#645035; }
.river-investigation .midnight-procedure .rule-tail { margin:0.04in 0 0; font-size:0.128in; line-height:1.25; }
.river-investigation .exact-model-rules { margin-top:0.05in; padding:0.045in 0; border-top:1px solid #8ba5ad; border-bottom:1px solid #8ba5ad; }
.river-investigation .exact-model-rules p { margin:0; font-size:0.14in; line-height:1.30; }
.river-investigation .exact-model-rules p + p { margin-top:0.025in; }
.river-investigation .exact-model-rules strong { color:#344c64; }
.river-investigation .recorded-bell-reference { margin:0 0 0.09in; padding:0.055in 0.13in; border-bottom:1px solid #8ba5ad; color:#344c64; font-size:0.14in; line-height:1.30; }
.river-investigation .observation-band { border-radius:0 0.055in 0.055in 0; }
.river-investigation .river-cycle-figure { background:#f7f5f8; }
.river-investigation .response-panel { background:#fffefa; border-color:#b9b1b4; }
.river-investigation .pattern-response p strong { color:#423b55; }
.river-investigation .writing-lines { background-image:repeating-linear-gradient(to bottom, transparent 0, transparent calc(0.30in - 1px), #d2ced3 calc(0.30in - 1px), #d2ced3 0.30in); background-size:100% 0.30in; }
.river-investigation .proposed-sign { margin:0.08in 0; padding:0.07in 0.13in; border:1px solid #947347; border-left:0.055in solid #947347; background:#f4eedf; color:#493d31; }
.river-investigation .proposed-sign p { font-family:Georgia,serif; font-size:0.177in; font-weight:bold; line-height:1.25; }
.river-investigation .sign-response { margin-bottom:0.1in; }
.river-investigation .sign-response h3, .river-investigation .field-note-response h3 { font-size:0.125in; margin:0 0 0.03in; color:#645035; font-weight:700; }
.river-investigation .writing-lines--sign { min-height:0.46in; }
.river-investigation .writing-lines--interpretation { min-height:1.63in; }
.river-answer-key { color:#283542; font-size:0.88rem; line-height:1.32; }
.river-answer-key .proposed-sign { margin:0.08in 0; padding:0.08in 0.12in; background:#f2edf3; border-left:3px solid #947347; }
.river-answer-key .key-section { break-inside:avoid; }
.river-answer-key mj-math { font-size:inherit; }
.river-answer-key .key-section.rubric-card > ul { margin:0 0 0.05in; padding:0 0.04in 0 0.21in; border:0; border-radius:0; background:transparent; box-shadow:none; }
.river-answer-key .rubric-card { padding:0.065in 0.1in; }
