.solution-page,
.solution-index {
  color: #173247;
  background: #f4f8fb;
}

.solution-hero,
.solution-index-hero {
  background: linear-gradient(135deg, #123f62 0%, #0e6f9f 100%);
  color: #fff;
}

.solution-hero-inner,
.solution-index-hero .container {
  padding-top: clamp(46px, 7vw, 86px);
  padding-bottom: clamp(46px, 7vw, 82px);
}

.solution-breadcrumb,
.solution-kickers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.solution-breadcrumb {
  margin-bottom: 22px;
  font-size: .84rem;
}

.solution-breadcrumb a {
  color: #d9f2ff;
  font-weight: 800;
  text-decoration: none;
}

.solution-breadcrumb span {
  color: #b8d8e9;
}

.solution-kickers span {
  padding: 6px 11px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  font-size: .76rem;
  font-weight: 900;
}

.solution-kickers .solution-evidence.is-confirmed {
  background: #e8f7ef;
  border-color: #e8f7ef;
  color: #16633d;
}

.solution-kickers .solution-evidence.is-restored {
  background: #fff3d8;
  border-color: #fff3d8;
  color: #7a4d00;
}

.solution-hero h1,
.solution-index-hero h1 {
  max-width: 900px;
  margin: 22px 0 14px;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.15;
  letter-spacing: -.04em;
  word-break: keep-all;
}

.solution-hero-inner > p,
.solution-index-hero .container > p {
  max-width: 820px;
  margin: 0;
  color: #dcebf3;
  font-size: 1.05rem;
  line-height: 1.75;
}

.solution-hero-meta,
.solution-index-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 820px;
  margin: 30px 0 0;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 16px;
  overflow: hidden;
}

.solution-hero-meta div,
.solution-index-stats div {
  padding: 14px 18px;
  border-right: 1px solid rgba(255,255,255,.2);
}

.solution-hero-meta div:last-child,
.solution-index-stats div:last-child {
  border-right: 0;
}

.solution-hero-meta dt,
.solution-index-stats dt {
  color: #bcd8e7;
  font-size: .72rem;
  font-weight: 800;
}

.solution-hero-meta dd,
.solution-index-stats dd {
  margin: 5px 0 0;
  color: #fff;
  font-weight: 900;
}

.solution-shell,
.solution-index-shell {
  padding-top: 34px;
  padding-bottom: 76px;
}

.solution-block {
  max-width: 900px;
  margin: 0 auto 24px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid #d8e4ec;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(28, 76, 108, .06);
}

.solution-section-label {
  margin: 0 0 7px;
  color: #0e77a8;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .05em;
}

.solution-block h2 {
  margin: 0 0 20px;
  color: #123b59;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.solution-prompt {
  margin: 0;
  padding: 22px;
  border-left: 5px solid #147eae;
  border-radius: 0 14px 14px 0;
  background: #f1f7fb;
  color: #17364c;
  font-size: 1.08rem;
  font-weight: 750;
  line-height: 1.78;
}

.solution-intent {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #fff8e8;
}

.solution-intent p,
.solution-step p,
.solution-mistakes p,
.solution-review-grid p,
.solution-evidence-block p {
  margin: 7px 0 0;
  line-height: 1.75;
}

.solution-model-answer {
  padding: 22px;
  border: 2px solid #9ec7db;
  border-radius: 16px;
  background: #f6fcff;
  color: #153b55;
  font-weight: 800;
  line-height: 1.85;
}

.solution-strategy {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding-left: 24px;
  color: #3d5668;
  line-height: 1.65;
}

.solution-steps {
  display: grid;
  gap: 14px;
}

.solution-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid #e0e9ef;
  border-radius: 15px;
}

.solution-step-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #126d9d;
  color: #fff;
  font-weight: 900;
}

.solution-step h3 {
  margin: 3px 0 0;
  color: #143c59;
  font-size: 1.04rem;
}

.solution-formula {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #152f43;
  color: #eefaff;
  overflow-wrap: anywhere;
}

.solution-formula code {
  color: inherit;
  white-space: pre-wrap;
}

.solution-step-result {
  color: #0d6642;
}

.solution-scoring-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.solution-scoring-grid div {
  padding: 16px;
  border-radius: 14px;
  background: #edf7fc;
}

.solution-scoring-grid dt {
  color: #0a5d86;
  font-weight: 900;
}

.solution-scoring-grid dd {
  margin: 7px 0 0;
  color: #425d70;
  line-height: 1.6;
}

.solution-mistakes,
.solution-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.solution-mistakes article,
.solution-review-grid > div {
  padding: 18px;
  border-radius: 14px;
  background: #fff5f1;
}

.solution-review-grid > div {
  background: #f2f8fb;
}

.solution-caution {
  padding: 16px;
  border-radius: 12px;
  background: #fff8e9;
}

.solution-sources,
.solution-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.solution-sources a,
.solution-tools a {
  padding: 10px 13px;
  border-radius: 10px;
  background: #edf7fc;
  color: #0c6897;
  font-weight: 850;
  text-decoration: none;
}

.solution-tools,
.solution-pagination {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
}

.solution-tools {
  padding: 20px;
  border: 1px solid #d8e4ec;
  border-radius: 16px;
  background: #fff;
}

.solution-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.solution-pagination a {
  display: flex;
  min-height: 96px;
  padding: 16px;
  border: 1px solid #d3e0e8;
  border-radius: 14px;
  background: #fff;
  color: #123b59;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
}

.solution-pagination a:last-child {
  text-align: right;
}

.solution-pagination span {
  color: #658092;
  font-size: .76rem;
}

.solution-pagination strong {
  margin-top: 5px;
  line-height: 1.45;
}

.solution-index-hero .eyebrow {
  margin: 0;
  color: #ffd28b;
  font-weight: 900;
}

.solution-index-workbook {
  display: inline-flex;
  margin-top: 24px;
  padding: 12px 16px;
  border-radius: 11px;
  background: #fff;
  color: #0e628f;
  font-weight: 900;
  text-decoration: none;
}

.solution-index-jump {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid #d8e4ec;
  border-radius: 16px;
  background: #fff;
}

.solution-index-jump a {
  display: grid;
  min-height: 38px;
  place-items: center;
  border: 1px solid #cbdce8;
  border-radius: 9px;
  color: #14658f;
  font-weight: 850;
  text-decoration: none;
}

.solution-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.solution-index-grid article {
  scroll-margin-top: 24px;
  padding: 22px;
  border: 1px solid #d8e4ec;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(28, 76, 108, .05);
}

.solution-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.solution-card-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #edf5f9;
  color: #3a6077;
  font-size: .7rem;
  font-weight: 850;
}

.solution-index-grid h2 {
  margin: 14px 0 8px;
  font-size: 1.12rem;
  line-height: 1.45;
}

.solution-index-grid h2 a,
.solution-card-link {
  color: #123f60;
  text-decoration: none;
}

.solution-index-grid p {
  margin: 0;
  color: #526a7b;
  line-height: 1.65;
}

.solution-card-link {
  display: inline-flex;
  margin-top: 14px;
  color: #0c6f9f;
  font-weight: 900;
}

@media (max-width: 760px) {
  .solution-hero-meta,
  .solution-index-stats,
  .solution-scoring-grid,
  .solution-mistakes,
  .solution-review-grid,
  .solution-pagination,
  .solution-index-grid {
    grid-template-columns: 1fr;
  }

  .solution-hero-meta div,
  .solution-index-stats div {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.2);
  }

  .solution-hero-meta div:last-child,
  .solution-index-stats div:last-child {
    border-bottom: 0;
  }

  .solution-index-jump {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .solution-pagination a:last-child {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .solution-step {
    grid-template-columns: 1fr;
  }
}
