.compare-page [hidden] {
  display: none !important;
}
.compare-view #header {
  background: #173a34;
}
.compare-view #header #nav li a {
  color: #d5e5df;
}
.compare-view #header #nav li.on a {
  color: #fff;
}
.compare-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 132px 24px 96px;
  color: #173a34;
  font-family: inherit;
}
.compare-heading {
  margin-bottom: 34px;
}
.compare-heading h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 10px 0 14px;
}
.compare-heading > p:last-child {
  font-size: 18px;
  color: #526b65;
}
.compare-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #3d8a73;
  margin: 0;
}
.compare-hero {
  background: linear-gradient(135deg, #e7f3e7, #f6f2e8 72%);
  border: 1px solid #d6e7d9;
  border-radius: 28px;
  padding: clamp(24px, 4vw, 52px);
  box-shadow: 0 20px 55px #173a3414;
  margin-bottom: 38px;
}
.compare-hero-main {
  max-width: 760px;
}
.compare-hero-symbol {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: #235c4b;
  color: #fff;
  font-size: 34px;
  margin-bottom: 24px;
}
.compare-hero h2 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 12px 0 16px;
}
.compare-hero-main > p:last-child {
  font-size: 17px;
  line-height: 1.75;
  color: #4b665f;
}
.compare-hero-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}
.compare-hero-steps article {
  background: #ffffffb5;
  border: 1px solid #d9e6db;
  border-radius: 18px;
  padding: 22px;
}
.compare-hero-steps span {
  font-size: 12px;
  font-weight: 800;
  color: #3d8a73;
}
.compare-hero-steps h3 {
  margin: 10px 0 8px;
  font-size: 18px;
}
.compare-hero-steps p {
  margin: 0;
  color: #557069;
  line-height: 1.65;
}
.compare-hero-note {
  margin: 24px 0 0;
  color: #557069;
  font-size: 13px;
  line-height: 1.6;
}
.compare-picker,
.compare-results {
  background: #fff;
  border: 1px solid #e0e9e3;
  border-radius: 24px;
  padding: 30px;
  margin-bottom: 26px;
  box-shadow: 0 10px 28px #173a340b;
}
.compare-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.compare-section-heading h2 {
  font-size: 26px;
  margin: 7px 0 0;
  letter-spacing: -0.025em;
}
.compare-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.compare-select-card {
  border: 1px solid #dfe9e3;
  border-radius: 18px;
  background: #fbfdfb;
  padding: 24px;
  min-width: 0;
}
.compare-select-card label {
  display: block;
  font-weight: 700;
  margin-bottom: 14px;
}
.compare-select-card input[type='search'],
.compare-select-card input[type='file'] {
  box-sizing: border-box;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #bfd5c9;
  border-radius: 10px;
  background: #fff;
  color: #173a34;
  font: inherit;
}
.compare-select-card input:focus {
  outline: 3px solid #a5d9c2;
  outline-offset: 2px;
}
.compare-upload-card {
  background: #f4f8f4;
}
.compare-upload-card > p {
  color: #526b65;
}
.compare-hint {
  color: #60766f;
  font-size: 14px;
  line-height: 1.6;
}
.compare-catalog {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  max-height: 320px;
  overflow: auto;
}
.compare-catalog li + li {
  border-top: 1px solid #e5eee8;
}
.compare-catalog button {
  display: block;
  width: 100%;
  padding: 12px 4px;
  text-align: left;
  border: 0;
  background: transparent;
  color: #173a34;
  cursor: pointer;
}
.compare-catalog button:hover,
.compare-catalog button:focus {
  background: #eaf4eb;
}
.compare-catalog strong,
.compare-catalog small {
  display: block;
}
.compare-catalog small {
  color: #60766f;
  margin-top: 3px;
}
.compare-selected {
  background: #eff8f1;
  border-radius: 16px;
  padding: 20px;
  font-weight: 700;
}
.compare-expanded-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-weight: 700;
}
.compare-picker button,
.compare-result-list a {
  cursor: pointer;
}
.compare-result-list > li > button {
  border: 1px solid #9cc6b3;
  border-radius: 8px;
  padding: 8px 12px;
  background: #fff;
  color: #235c4b;
  font: inherit;
  cursor: pointer;
}
.compare-result-list details {
  margin-top: 12px;
}
.compare-result-list summary {
  color: #176b53;
  font-weight: 700;
  cursor: pointer;
}
.compare-result-list iframe {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 380px;
  margin-top: 12px;
  border: 1px solid #d9e6db;
  border-radius: 12px;
}
.compare-section-heading button {
  border: 1px solid #9cc6b3;
  background: #fff;
  border-radius: 10px;
  padding: 10px 15px;
  color: #235c4b;
  font: inherit;
  font-weight: 700;
}
.compare-progress {
  display: flex;
  gap: 18px;
  align-items: center;
  background: #eaf4ef;
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 24px;
}
.compare-progress h2 {
  margin: 0 0 5px;
  font-size: 20px;
}
.compare-progress p {
  margin: 0;
  color: #526b65;
}
.compare-spinner {
  width: 27px;
  height: 27px;
  border: 3px solid #c4ddd0;
  border-top-color: #2d7b60;
  border-radius: 50%;
  animation: compare-spin 1s linear infinite;
  flex: none;
}
@keyframes compare-spin {
  to {
    transform: rotate(360deg);
  }
}
.compare-error {
  padding: 16px 20px;
  border-radius: 12px;
  background: #fff0ed;
  color: #a13022;
}
.compare-result-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.compare-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 12px;
}
.compare-score-sheet {
  margin: 22px 0;
  padding: 20px;
  border: 1px solid #d9e6db;
  border-radius: 16px;
  background: #f8fbf8;
}
.compare-score-sheet h3 {
  margin: 0 0 8px;
}
.compare-score-ribbon {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 34px;
  min-width: 760px;
  border-radius: 8px;
  background: #e8eee9;
  overflow: hidden;
}
.compare-score-ribbon button {
  position: absolute;
  top: 0;
  height: 34px;
  padding: 0 4px;
  overflow: hidden;
  border: 0;
  color: #173a34;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.compare-score-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.compare-score-controls button {
  border: 1px solid #9cc6b3;
  border-radius: 8px;
  padding: 8px 12px;
  background: #fff;
  color: #235c4b;
  cursor: pointer;
}
.compare-score-controls button:disabled {
  opacity: 0.5;
  cursor: default;
}
.compare-score-image-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: 10px;
}
.compare-score-image-wrap img {
  display: block;
  width: 100%;
  min-width: 760px;
}
.compare-tabs button {
  border: 1px solid #bfd5c9;
  border-radius: 10px;
  padding: 10px 14px;
  background: #fff;
  color: #235c4b;
  font: inherit;
  cursor: pointer;
}
.compare-tabs button[aria-selected='true'] {
  background: #235c4b;
  color: #fff;
}
.compare-result-list li {
  border-top: 1px solid #e2ebe5;
  padding: 20px 0;
}
.compare-result-list .compare-phrase-label {
  color: #235c4b;
  font-size: 18px;
  font-weight: 800;
  background: #eff8f1;
  padding: 12px;
  border-radius: 10px;
}
.compare-result-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.compare-result-top h3 {
  margin: 0;
  font-size: 20px;
}
.compare-result-top p {
  margin: 5px 0;
  color: #60766f;
}
.compare-score {
  font-size: 22px;
  font-weight: 800;
  color: #267956;
  white-space: nowrap;
}
.compare-evidence {
  margin: 14px 0 0;
  padding-left: 20px;
  color: #4d675e;
}
.compare-evidence li {
  border: 0;
  padding: 4px 0;
}
.compare-result-list a {
  color: #176b53;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 760px) {
  .compare-view #header {
    height: 64px;
  }
  .compare-view #header > .inner {
    padding: 0 12px;
  }
  .compare-view #nav {
    overflow-x: auto;
    padding-left: 14px;
    padding-right: 0;
  }
  .compare-view #nav ul {
    width: max-content;
  }
  .compare-view #nav li a {
    white-space: nowrap;
    font-size: 14px;
  }
  .compare-view #header .right_menu,
  .compare-view #header .search_wrap {
    display: none;
  }
  .compare-page {
    padding: 100px 16px 70px;
  }
  .compare-hero-steps,
  .compare-inputs {
    grid-template-columns: 1fr;
  }
  .compare-hero,
  .compare-picker,
  .compare-results {
    border-radius: 18px;
  }
  .compare-picker,
  .compare-results {
    padding: 20px;
  }
  .compare-result-top {
    display: block;
  }
  .compare-score {
    display: block;
    margin-top: 10px;
  }
}
