.mbti-detailed-main {
  background: #f7f9fc;
  color: #182338;
}

.mbti-detailed-hero {
  background: #15324b;
  color: #ffffff;
  padding: 3.5rem 0 3.75rem;
}

.mbti-detailed-hero .breadcrumb,
.mbti-detailed-hero .breadcrumb a {
  color: #d9e9f5;
}

.mbti-detailed-hero .breadcrumb a:hover {
  color: #ffffff;
}

.hero-grid {
  align-items: end;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  margin-top: 2.25rem;
}

.eyebrow,
.tool-kicker {
  color: #77d3c8;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.mbti-detailed-hero h1 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.25;
  margin: .75rem 0 1rem;
}

.hero-lead {
  color: #eaf4f8;
  font-size: 1.08rem;
  line-height: 1.95;
  margin-bottom: 1.4rem;
  max-width: 760px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.1rem;
}

.hero-points span {
  color: #e7f3f1;
  font-size: .95rem;
}

.hero-points i {
  color: #77d3c8;
  margin-right: .4rem;
}

.hero-note {
  background: #214965;
  border: 1px solid #416981;
  border-radius: 8px;
  color: #eef8fb;
  padding: 1.3rem 1.4rem;
}

.hero-note p {
  line-height: 1.8;
  margin: 0;
}

.hero-note-label {
  color: #77d3c8;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: .5rem !important;
}

.tool-section {
  background: #ffffff;
  padding: 3rem 0 2rem;
}

.tool-intro {
  margin: 0 auto 1.5rem;
  max-width: 850px;
  text-align: center;
}

.tool-intro h2,
.copy-section h2,
.quick-answer h2 {
  color: #183f5a;
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  line-height: 1.4;
}

.tool-intro p,
.copy-section > p,
.quick-answer > p {
  color: #4e6074;
  line-height: 1.9;
}

.tool-grid {
  align-items: start;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
}

.question-panel,
.result-panel {
  border: 1px solid #d9e5ec;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(24, 63, 90, .08);
}

.question-panel {
  background: #ffffff;
  padding: 1.35rem;
}

.tool-head-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.tool-head-row .btn {
  white-space: nowrap;
}

.tool-count {
  color: #65768a;
  font-size: .9rem;
  margin: .3rem 0 0;
}

.progress {
  background: #e8eff4;
  height: 8px;
}

.progress-bar {
  background: #167c80;
  transition: width .2s ease;
}

.question-item {
  border: 1px solid #e1e9ef;
  border-radius: 8px;
  margin: 0 0 .8rem;
  padding: 1rem;
}

.question-item legend {
  color: #1d3348;
  float: none;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.65;
  margin-bottom: .75rem;
  width: auto;
}

.question-item legend span {
  align-items: center;
  background: #e6f4f2;
  border-radius: 50%;
  color: #167c80;
  display: inline-flex;
  font-size: .78rem;
  height: 30px;
  justify-content: center;
  margin-right: .55rem;
  width: 30px;
}

.answer-options {
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(3, 1fr);
}

.answer-option {
  color: #3b5064;
  cursor: pointer;
  display: block;
  font-size: .88rem;
  line-height: 1.35;
  text-align: center;
}

.answer-option input {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.answer-option span {
  background: #f4f7f9;
  border: 1px solid #d7e2e9;
  border-radius: 6px;
  display: block;
  min-height: 48px;
  padding: .7rem .35rem;
}

.answer-option input:checked + span {
  background: #e4f5f3;
  border-color: #167c80;
  color: #0a5b5e;
  font-weight: 700;
}

.answer-option input:focus-visible + span {
  outline: 3px solid rgba(22, 124, 128, .28);
  outline-offset: 2px;
}

.tool-error {
  background: #fff3f1;
  border: 1px solid #efb2a8;
  border-radius: 6px;
  color: #9e2d22;
  line-height: 1.6;
  margin: 1rem 0;
  padding: .75rem .9rem;
}

.question-panel .btn-primary {
  background: #167c80;
  border-color: #167c80;
}

.question-panel .btn-primary:hover,
.question-panel .btn-primary:focus-visible {
  background: #0f6266;
  border-color: #0f6266;
}

.question-panel .btn-primary i {
  margin-right: .45rem;
}

.result-panel {
  background: #15324b;
  color: #ffffff;
  min-height: 520px;
  padding: 1rem;
  position: sticky;
  top: 1rem;
}

.result-card {
  border: 1px solid #416981;
  border-radius: 8px;
  color: #eef8fb;
  min-height: 488px;
  padding: 1.45rem;
}

.result-eyebrow {
  color: #77d3c8;
  font-size: .85rem;
  font-weight: 700;
}

.result-card h2 {
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1.5;
  margin: .6rem 0 .65rem;
}

.result-card p {
  color: #d9e9f5;
  line-height: 1.8;
}

.result-type {
  color: #77d3c8;
  font-size: 2.55rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 1rem 0;
}

.axis-bars {
  border-top: 1px solid #416981;
  padding-top: .9rem;
}

.axis-bar-row {
  margin-bottom: .8rem;
}

.axis-bar-head {
  color: #eaf4f8;
  display: flex;
  font-size: .88rem;
  justify-content: space-between;
  margin-bottom: .3rem;
}

.axis-bar {
  background: #2b536c;
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
}

.axis-bar span {
  background: #77d3c8;
  border-radius: inherit;
  display: block;
  height: 100%;
}

.result-advice {
  margin-top: 1rem;
}

.result-advice h3 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: .35rem;
}

.result-hint {
  color: #d9e9f5;
  font-size: .9rem;
}

.result-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.2rem;
}

.result-links .btn {
  color: #ffffff;
  border-color: #77d3c8;
}

.result-links .btn:hover,
.result-links .btn:focus-visible {
  background: #77d3c8;
  color: #15324b;
}

.tool-disclaimer {
  color: #667a8d;
  font-size: .86rem;
  line-height: 1.7;
  margin: 1.2rem auto 0;
  max-width: 900px;
  text-align: center;
}

.content-section {
  background: #f7f9fc;
  padding: 2rem 0 4rem;
}

.narrow-content {
  max-width: 960px;
}

.quick-answer,
.copy-section {
  margin-bottom: 2.7rem;
}

.quick-answer {
  background: #edf7f6;
  border-left: 4px solid #167c80;
  padding: 1.35rem 1.5rem;
}

.quick-answer h2 {
  font-size: 1.45rem;
  margin-top: 0;
}

.quick-answer ul,
.caution-section ul {
  color: #3f5367;
  line-height: 1.9;
  margin-bottom: 0;
}

.copy-section h2 {
  border-left: 4px solid #167c80;
  padding-left: .75rem;
}

.step-list {
  counter-reset: step;
  display: grid;
  gap: .85rem;
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
}

.step-list li {
  background: #ffffff;
  border: 1px solid #dbe6ed;
  border-radius: 8px;
  display: grid;
  gap: .35rem;
  grid-template-columns: 190px 1fr;
  padding: 1rem 1.1rem;
}

.step-list strong {
  color: #167c80;
}

.step-list span {
  color: #4e6074;
  line-height: 1.75;
}

.axis-table-wrap,
.table-responsive {
  margin: 1.25rem 0;
  overflow-x: auto;
}

.axis-table,
.comparison-table {
  background: #ffffff;
  border: 1px solid #dbe6ed;
  color: #30465b;
  min-width: 680px;
}

.axis-table th,
.comparison-table th {
  color: #183f5a;
  font-weight: 700;
}

.axis-table thead th,
.comparison-table thead th {
  background: #eaf2f5;
  border-bottom-color: #c9d9e2;
}

.axis-table td,
.axis-table th,
.comparison-table td,
.comparison-table th {
  line-height: 1.65;
  padding: .85rem;
  vertical-align: top;
}

.reading-grid,
.tip-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.reading-grid article,
.tip-list article {
  background: #ffffff;
  border: 1px solid #dbe6ed;
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
}

.reading-grid h3,
.tip-list h3 {
  color: #1b6270;
  font-size: 1.05rem;
  line-height: 1.5;
  margin-top: 0;
}

.reading-grid p,
.tip-list p {
  color: #4e6074;
  line-height: 1.8;
  margin-bottom: 0;
}

.caution-section {
  background: #fff8ef;
  border: 1px solid #f0d5aa;
  border-radius: 8px;
  padding: 1.25rem 1.35rem;
}

.caution-section h2 {
  border-left-color: #c47828;
}

.faq-section details {
  background: #ffffff;
  border: 1px solid #dbe6ed;
  border-radius: 8px;
  margin: .75rem 0;
  padding: .9rem 1rem;
}

.faq-section summary {
  color: #183f5a;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.6;
  padding-right: 1.5rem;
}

.faq-section details p {
  color: #4e6074;
  line-height: 1.8;
  margin: .75rem 0 .15rem;
}

.related-links {
  display: grid;
  gap: .7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.2rem;
}

.related-links a {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dbe6ed;
  border-radius: 8px;
  color: #183f5a;
  display: grid;
  gap: .2rem .8rem;
  grid-template-columns: 1fr auto;
  padding: .9rem 1rem;
  text-decoration: none;
}

.related-links a:hover,
.related-links a:focus-visible {
  border-color: #167c80;
  color: #0f6266;
}

.related-links span {
  font-weight: 700;
  grid-column: 1;
}

.related-links small {
  color: #65768a;
  grid-column: 1;
  line-height: 1.5;
}

.related-links i {
  color: #167c80;
  grid-column: 2;
  grid-row: 1 / span 2;
}

@media (max-width: 991.98px) {
  .hero-grid,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .result-panel {
    min-height: auto;
    position: static;
  }

  .result-card {
    min-height: auto;
  }
}

@media (max-width: 575.98px) {
  .mbti-detailed-hero {
    padding: 1.65rem 0 1.85rem;
  }

  .mbti-detailed-hero h1 {
    font-size: 1.78rem;
    line-height: 1.3;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero-grid {
    gap: 1rem;
    margin-top: 1.25rem;
  }

  .hero-note {
    padding: .95rem 1rem;
  }

  .tool-section {
    padding-top: 2.2rem;
  }

  .question-panel {
    padding: .9rem;
  }

  .question-item {
    padding: .8rem;
  }

  .answer-options {
    grid-template-columns: 1fr;
  }

  .answer-option {
    text-align: left;
  }

  .answer-option span {
    min-height: auto;
    padding: .65rem .75rem;
  }

  .step-list li,
  .reading-grid,
  .tip-list,
  .related-links {
    grid-template-columns: 1fr;
  }

  .step-list li {
    gap: .25rem;
  }
}
