/* One self-contained teaching snapshot for the schools hero. */
.teaching-grade5 [data-slot='page-body'] .rounded-xl.border.bg-card {
  padding: 26px 24px !important;
  zoom: 1 !important;
  background: #fff !important;
}
.grade5-layout {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 22px;
  min-height: 0;
  color: #182131;
  font-family: inherit;
}
.grade5-layout * {
  box-sizing: border-box;
}
.grade5-layout .g5-context {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
  color: #776f64;
  font-size: 12px;
  line-height: 1.4;
}
.g5-context svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.g5-context .g5-slash {
  color: #c9bfae;
}
.g5-context strong {
  font-weight: 600;
  color: #52575f;
}
.grade5-layout .g5-heading h2 {
  margin: 0;
  font-family: inherit;
  font-size: 29px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: #182131;
}
.grade5-layout .g5-heading p {
  margin: 9px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: #606775;
  text-wrap: pretty;
}
.grade5-layout .g5-visual {
  flex: 1;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  gap: 8px;
}
.g5-visual svg {
  display: block;
  width: 100%;
  height: 248px;
  max-height: 100%;
  flex-shrink: 1;
  min-height: 0;
  color: #182131;
  overflow: visible;
}
.g5-visual text {
  font-family: inherit;
  fill: currentColor;
}
.g5-visual .g5-num {
  font-size: 64px;
  font-weight: 700;
  fill: #d35400;
}
.g5-visual .g5-den {
  font-size: 64px;
  font-weight: 700;
}
.g5-visual .g5-label {
  font-size: 15px;
  font-weight: 500;
  fill: #606775;
}
.g5-visual .g5-orange {
  fill: #b94a00;
}
.g5-visual figcaption {
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: #677080;
  margin: 0;
}
.g5-visual figcaption strong {
  color: #182131;
  font-weight: 600;
}
.grade5-layout .g5-check {
  background: #fcf4e9;
  border-radius: 15px;
  padding: 17px 20px 12px;
  flex: none;
}
.g5-eyebrow {
  display: block;
  color: #bd4900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 10.5px;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 7px;
}
.g5-check h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  color: #182131;
}
.g5-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 13px;
}
.g5-answer-fraction {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  color: #182131;
}
.g5-answer-fraction input {
  width: 55px;
  height: 42px;
  padding: 4px 6px;
  border: 2px solid #ddd2c2;
  border-radius: 10px;
  background: #fff;
  text-align: center;
  color: #182131;
  font-family: inherit;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}
.g5-answer-fraction strong {
  font-size: 26px;
  font-weight: 600;
}
.g5-check button {
  border: 0;
  border-radius: 10px;
  background: #d35400;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  min-height: 42px;
  padding: 10px 16px;
  cursor: pointer;
}
.g5-check button:hover {
  background: #bd4b00;
}
.g5-check button:focus-visible,
.g5-check input:focus-visible {
  outline: 3px solid #b14a12 !important;
  outline-offset: 3px;
}
#g5-check-feedback {
  min-height: 18px;
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #80522e;
}
