/* Grandwin: educational figures and arithmetic tool, checked 7 October 2026. */
.grandwin-page :is(figure.gw-oct, .gw-oct-figure) {
  margin: 28px 0;
  padding: 16px;
  border: 1px solid #d4e1ee;
  border-radius: 12px;
  background: #f5f9fd;
  min-width: 0;
  scroll-margin-top: 96px;
}
.grandwin-page :is(figure.gw-oct, .gw-oct-figure) h3 {
  margin: 0 0 16px;
  font-size: 21px;
}
.grandwin-page :is(figure.gw-oct, .gw-oct-figure) picture {
  display: block;
  width: 100%;
  min-width: 0;
}
.grandwin-page :is(figure.gw-oct, .gw-oct-figure) img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--gw-desktop-ratio);
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}
.grandwin-page :is(figure.gw-oct, .gw-oct-figure) figcaption {
  margin-top: 14px;
  color: #31435b;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.grandwin-page .gw-oct-tool {
  margin: 24px 0;
  padding: 22px;
  border: 1px solid #a9c4de;
  border-radius: 12px;
  background: #f2f7fc;
  scroll-margin-top: 96px;
}
.grandwin-page .gw-oct-tool label {
  display: block;
  margin-bottom: 8px;
  font-weight: 750;
}
.grandwin-page .gw-oct-tool input {
  display: block;
  width: 100%;
  max-width: 360px;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #738ca6;
  border-radius: 6px;
  background: #fff;
  color: #10233f;
  font: inherit;
}
.grandwin-page .gw-oct-tool input[aria-invalid="true"] {
  border-color: #9a293e;
}
.grandwin-page .gw-oct-tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.grandwin-page .gw-oct-tool button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #0966c3;
  border-radius: 6px;
  background: #fff;
  color: #0966c3;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.grandwin-page .gw-oct-tool button[type="submit"] {
  background: #0966c3;
  color: #fff;
}
.grandwin-page [data-gw-turnover-result] {
  padding: 14px;
  border-left: 4px solid #0966c3;
  background: #fff;
  color: #10233f;
  font-weight: 650;
}
.grandwin-page .gw-oct-tool input:focus-visible {
  outline: 3px solid #0966c3;
  outline-offset: 3px;
}
.grandwin-page :is(.gw-sidebar-offer, .gw-end-cta, .article-actions) {
  text-align: center;
}
.grandwin-page .article-actions {
  justify-content: center;
}
.grandwin-page :is(.gw-sidebar-offer, .gw-end-cta) .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  text-align: center;
  white-space: normal;
}
@media (max-width: 600px) {
  .grandwin-page :is(figure.gw-oct, .gw-oct-figure) {
    padding: 10px;
    margin-inline: -6px;
  }
  .grandwin-page :is(figure.gw-oct, .gw-oct-figure) img {
    aspect-ratio: var(--gw-mobile-ratio);
  }
  .grandwin-page .gw-oct-tool {
    padding: 16px;
  }
  .grandwin-page .gw-oct-tool-actions button {
    flex: 1 1 140px;
  }
}
