﻿.guided-header { gap: 20px; }
.guided-header .brand { display: inline-flex; min-height: 44px; align-items: center; padding: 8px; }
.guided-header nav { display: flex; flex-wrap: wrap; gap: 8px; }
.guided-header nav a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px; }
.guided-language { display: flex; align-items: center; gap: 8px; }
.guided-division-main { width: min(920px, calc(100% - 32px)); margin: 28px auto 64px; }
.guided-eyebrow { margin: 0; color: #315b7b; font-weight: 800; letter-spacing: .04em; }
.guided-division-main h1 { margin: 6px 0 8px; font-size: clamp(30px, 5vw, 44px); }
.guided-lead { max-width: 680px; color: #3c5368; font-size: 18px; }
.guided-problem-panel, .guided-strategy-panel, .guided-work-panel, .guided-unavailable { margin: 22px 0; padding: clamp(16px, 3vw, 26px); border: 1px solid #d8e5ef; border-radius: 20px; background: #fff; box-shadow: 0 6px 24px #183b5810; }
.guided-problem-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; }
.guided-problem-controls label { display: grid; gap: 6px; font-weight: 700; }
.guided-problem-controls input, .guided-problem-controls select, .guided-answer-row input { min-height: 48px; width: 150px; padding: 8px 12px; border: 2px solid #91abc0; border-radius: 10px; font: inherit; font-size: 20px; }
.guided-problem-controls select { width: 145px; }
.division-symbol { padding-bottom: 8px; font-size: 28px; font-weight: 800; }
.guided-help, .guided-stage-intro { color: #435b70; }
.guided-error { color: #8a1e16; font-weight: 700; }
.guided-strategies { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.guided-strategy { min-height: 74px; padding: 13px 15px; border: 2px solid #b7c9d7; border-radius: 14px; background: #f8fbfd; color: #18364d; text-align: left; font: inherit; cursor: pointer; }
.guided-strategy[aria-pressed="true"] { border-color: #176b87; background: #e8f7fa; box-shadow: 0 0 0 2px #176b8720; }
.guided-strategy strong, .guided-strategy span { display: block; }
.guided-strategy span { margin-top: 4px; color: #435b70; font-size: 14px; }
.guided-progress-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.guided-progress-row p { margin: 0; font-weight: 700; }
.guided-progress-row progress { width: min(270px, 48%); height: 14px; accent-color: #1d718b; }
.guided-work-panel h2 { margin-top: 12px; }
.guided-visual { margin: 16px 0; }
.guided-attempt { padding: 18px; border-radius: 16px; background: #f2f8fc; }
.guided-attempt label { display: block; margin-bottom: 9px; font-size: 19px; font-weight: 750; }
.guided-answer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.guided-answer-row input { width: 190px; background: white; }
.guided-feedback { min-height: 1.5em; margin-bottom: 4px; font-weight: 700; }
.guided-feedback.is-correct { color: #175c39; }
.guided-feedback.is-incorrect { color: #783b05; }
.guided-hint-button, .guided-secondary { min-height: 46px; padding: 9px 15px; border: 2px solid #7894aa; border-radius: 12px; background: #fff; color: #193b56; font: inherit; font-weight: 700; cursor: pointer; }
.guided-hint-copy { margin: 10px 0 0; padding: 11px 13px; border-left: 4px solid #bd7a14; background: #fff8e7; }
.guided-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.guided-actions .button, .guided-answer-row .button { min-height: 48px; padding: 10px 18px; font-size: 17px; cursor: pointer; }
.guided-step-review { display: grid; gap: 7px; padding-left: 25px; }
.guided-step-review li { padding: 10px 12px; border-radius: 10px; background: #eef7ee; }
.division-array-visual { overflow-x: auto; padding: 12px; border: 1px solid #cad9e3; border-radius: 15px; background: #f8fbfd; }
.division-array-grid { display: grid; gap: 6px; width: max-content; min-width: 100%; }
.division-array-row { display: flex; min-height: 28px; align-items: center; gap: 5px; padding: 4px; border: 1px dashed #7a9bb0; border-radius: 10px; }
.division-array-dot { width: 12px; height: 12px; flex: 0 0 12px; border-radius: 50%; background: #2a7391; }
.division-array-status { margin: 10px 0; font-weight: 700; }
.division-array-deal { min-height: 46px; padding: 8px 14px; border: 2px solid #356b83; border-radius: 12px; background: #e8f5fa; color: #173c52; font: inherit; font-weight: 750; cursor: pointer; }
.division-array-deal:disabled { background: #eef2f5; color: #455967; cursor: default; }
.division-array-remainder { margin: 8px 0 0; font-weight: 700; }
.division-reverse-array-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 4px 0 14px; }
.division-reverse-array-controls .division-array-deal { min-width: 48px; padding: 6px 12px; font-size: 24px; }
.division-reverse-array-count { min-width: 120px; text-align: center; }
.division-reverse-array-grid { width: 100%; min-width: 0; }
.division-reverse-array .division-array-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(12px, 1fr)); justify-items: stretch; }
.division-array-bundle { display: grid; min-width: 12px; min-height: 18px; place-items: center; border: 1px solid #24627c; border-radius: 4px; background: #2a7391; color: #fff; font-size: 11px; font-weight: 800; }
.division-array-bundle.is-empty { border-style: dashed; background: #fff; color: #173c52; }
.division-array-bundle.has-open-spaces { background: linear-gradient(90deg,#2a7391 0 50%,#fff 50%); color: #fff; text-shadow: 0 1px 2px #173c52; }
.division-group-size-visual { padding: 16px; border: 1px solid #cad9e3; border-radius: 15px; background: #f8fbfd; }
.division-group-size-visual p { margin: 8px 0 0; font-weight: 700; }
.division-area-model, .division-long-visual { padding: 16px; border: 1px solid #cad9e3; border-radius: 15px; background: #f8fbfd; }
.division-area-equation { margin: 0 0 12px; font-size: 1.2rem; font-weight: 800; }
.division-area-bar { display: flex; width: 100%; min-height: 84px; overflow: hidden; border: 2px solid #245d78; border-radius: 8px; }
.division-area-part { display: grid; min-width: 0; place-items: center; padding: 8px; border-right: 2px solid #245d78; background: #d7eef6; text-align: center; font-weight: 800; }
.division-area-part:nth-child(even) { background: #f8dca4; }
.division-area-part:last-child { border-right: 0; }
.division-area-caption { margin: 12px 0 0; font-weight: 700; }
.division-long-work { display: grid; width: max-content; max-width: 100%; grid-template-columns: auto max-content; grid-template-rows: auto auto; align-items: end; margin: 6px 0 12px; font-family: ui-monospace, monospace; }
.division-long-quotient { grid-column: 2; grid-row: 1; min-width: 100%; padding: 4px 8px; text-align: right; border-bottom: 2px solid #245d78; font-size: 1.3rem; letter-spacing: .16em; }
.division-long-divisor { grid-column: 1; grid-row: 2; align-self: stretch; padding: 6px 8px 6px 0; font-size: 1.4rem; }
.division-long-dividend { grid-column: 2; grid-row: 2; min-width: max-content; padding: 6px 8px; border-left: 2px solid #245d78; font-size: 1.4rem; letter-spacing: .16em; }
.division-long-steps { margin: 12px 0; padding-left: 28px; }
.division-long-steps li { margin: 6px 0; }
.division-long-check { margin: 10px 0 0; font-weight: 800; }
.division-strategy-dialog { max-width: min(32rem, calc(100vw - 32px)); padding: 20px; border: 2px solid #356b83; border-radius: 14px; color: #173c52; }
.division-strategy-dialog::backdrop { background: rgb(12 32 44 / 55%); }
.division-strategy-dialog button { min-height: 44px; margin: 6px; padding: 8px 12px; font: inherit; }
.guided-unavailable { border-left: 6px solid #427a9c; }
.guided-division-main button:focus-visible, .guided-division-main input:focus-visible, .guided-division-main select:focus-visible, .guided-header a:focus-visible { outline: 3px solid #a65c00; outline-offset: 3px; }
@media (max-width: 600px) {
  .guided-header { align-items: flex-start; flex-wrap: wrap; }
  .guided-header nav { order: 3; width: 100%; }
  .guided-language { margin-left: auto; }
  .guided-problem-controls { align-items: stretch; gap: 10px; }
  .guided-problem-controls label { flex: 1 1 130px; }
  .guided-problem-controls input, .guided-problem-controls select { width: 100%; }
  .division-symbol { align-self: end; padding-bottom: 10px; }
  .guided-progress-row { align-items: flex-start; flex-direction: column; }
  .guided-progress-row progress { width: 100%; }
  .guided-answer-row input { flex: 1 1 135px; width: auto; }
  .guided-answer-row .button { flex: 1 1 150px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
/* Shared header, primary-button and screen-reader styles for guided pages that do not load seo.css (body.guided-shell). */
.guided-shell .site-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; padding: 12px max(16px, calc((100% - 1040px) / 2)); background: #fff; border-bottom: 1px solid #dce6f0; }
.guided-shell .site-header .brand { color: #173d69; font-size: 20px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.guided-shell .site-header nav { gap: 4px 16px; }
.guided-shell .guided-language select { min-height: 44px; padding: 6px 10px; border: 2px solid #91abc0; border-radius: 10px; background: #fff; font: inherit; }
.guided-shell .button { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border: 0; border-radius: 12px; background: #1d6f5a; color: #fff; font: inherit; font-weight: 800; box-shadow: 0 6px 16px rgb(29 111 90 / 22%); cursor: pointer; }
.guided-shell .button:hover:not(:disabled) { background: #175a49; }
.guided-shell .guided-secondary { background: #fff; }
.guided-shell .visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.guided-shell .button:disabled { opacity: .55; cursor: not-allowed; }
.guided-shell .guided-strategy-button { min-height: 74px; padding: 13px 15px; border: 2px solid #b7c9d7; border-radius: 14px; background: #f8fbfd; color: #18364d; font: inherit; cursor: pointer; }
.guided-shell .guided-strategy-button[aria-pressed="true"] { border-color: #176b87; background: #e8f7fa; box-shadow: 0 0 0 2px #176b8720; }
.guided-shell .guided-strategy-button:focus-visible { outline: 3px solid #a65c00; outline-offset: 3px; }
