* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: #f3f6fb;
  color: #172638;
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
}
.comparison-shell { max-width: 1400px; margin: 0 auto; padding: 24px clamp(14px, 3vw, 40px) 40px; }
.comparison-intro { padding: clamp(24px, 4vw, 52px) 0 24px; }
.comparison-query { margin: 0 0 6px; font-size: .92rem; color: #475975; }
.comparison-intro h1 { margin: 0 0 20px; font-size: clamp(30px, 5vw, 54px); line-height: 1.08; letter-spacing: -.035em; }
.comparison-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.comparison-nav a, .comparison-footer a {
  padding: 8px 13px;
  border-radius: 8px;
  background: white;
  border: 1px solid #d7e0ed;
  color: #214db8;
  font-weight: 600;
  text-decoration: none;
}
.comparison-nav a:hover, .comparison-footer a:hover { background: #e7efff; }
main a { color: #214db8; text-underline-offset: 3px; }
.comparison-grid, .comparison-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.comparison-panel, .comparison-code, .comparison-section, .comparison-changes {
  min-width: 0;
  border: 1px solid #d7e0ed;
  background: white;
  border-radius: 15px;
}
.comparison-panel--after { border-color: #9bcab5; }
.comparison-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}
.comparison-panel-head h2, .comparison-panel-head h3, .comparison-panel-head p { margin: 0; }
.comparison-panel-head h2 { font-size: 1.22rem; }
.comparison-panel-head p { color: #53647b; font-size: .85rem; }
.comparison-panel-head a { font-size: .86rem; text-align: right; font-weight: 600; }
.comparison-panel--after .comparison-panel-head { background: #e5f4eb; border-radius: 14px 14px 0 0; }
.comparison-panel iframe { display: block; width: 100%; height: 525px; border: 0; border-top: 1px solid #d7e0ed; border-radius: 0 0 14px 14px; }
.comparison-changes, .comparison-section { margin-top: 18px; padding: clamp(14px, 2.5vw, 25px); }
.comparison-changes h2, .comparison-section h2 { margin: 0 0 8px; font-size: clamp(20px, 3vw, 26px); }
.comparison-changes ul, .comparison-section p { margin: 0; }
.comparison-changes ul { padding-inline-start: 22px; }
.comparison-changes li + li { margin-top: 4px; }
.comparison-tables { margin-top: 14px; }
.comparison-tables table { width: 100%; border-collapse: collapse; font-size: .9rem; align-self: start; }
.comparison-tables caption { text-align: left; font-weight: 700; padding-bottom: 6px; }
.comparison-tables th, .comparison-tables td { border-bottom: 1px solid #e0e7f1; padding: 7px; text-align: left; }
.comparison-tables thead { background: #f3f6fb; }
.comparison-tables tbody td:nth-child(3) { color: #225a42; font-weight: 650; }
.comparison-detail { margin-top: 14px; }
.comparison-detail summary { cursor: pointer; color: #214db8; font-weight: 650; }
.comparison-sources { padding-left: 22px; overflow-wrap: anywhere; }
.comparison-code pre, .comparison-diff {
  margin: 0;
  padding: 14px;
  max-height: 335px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f6f8fc;
  color: #172638;
  font-size: .82rem;
}
.comparison-code pre { border-radius: 0 0 14px 14px; }
.comparison-diff { margin-top: 10px; border-radius: 8px; }
.comparison-added { color: #20553a; background: #e0f2e8; }
.comparison-removed { color: #8b2929; background: #fde9e9; }
.comparison-footer { padding-top: 25px; }
@media (max-width: 740px) {
  .comparison-grid, .comparison-tables { grid-template-columns: 1fr; }
  .comparison-panel iframe { height: 415px; }
  .comparison-tables th, .comparison-tables td { padding: 5px; }
}
