/* Agentic Engineering Level Page */

.level-hero {
  padding-bottom: 90px;
}

.level-hero .left-content h1 {
  max-width: 720px;
}

.level-hero .level-hero-lead {
  max-width: 720px;
  font-size: 17px;
}

.level-stack {
  position: relative;
  width: min(100%, 440px);
  margin: 20px 0 0 auto;
  padding: 12px 54px 12px 0;
}

.level-stack-item {
  display: flex;
  align-items: center;
  min-height: 54px;
  margin: 8px auto 0;
  padding: 8px 18px;
  border: 1px solid rgba(42, 42, 42, 0.1);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 9px 22px rgba(42, 42, 42, 0.08);
  color: #2a2a2a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.level-stack-item:hover,
.level-stack-item:focus-visible {
  border-color: rgba(46, 108, 189, 0.5);
  box-shadow: 0 12px 26px rgba(42, 42, 42, 0.13);
  color: #2a2a2a;
  transform: translateY(-2px);
}

.level-stack-item:focus-visible {
  outline: 2px solid #fd6a54;
  outline-offset: 3px;
}

.level-stack-item strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  height: 34px;
  margin-right: 14px;
  border-radius: 50%;
  background: #2e6cbd;
  color: #fff;
  font-size: 17px;
}

.level-stack-item span {
  font-size: 14px;
  font-weight: 600;
}

.level-stack-5 {
  width: 64%;
  border-top: 3px solid #fd6a54;
}

.level-stack-5 strong {
  background: #fd6a54;
}

.level-stack-4 { width: 73%; }
.level-stack-3 { width: 82%; }
.level-stack-2 { width: 91%; }
.level-stack-1 { width: 100%; }

.level-stack-axis {
  position: absolute;
  top: 12px;
  right: 0;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8d99af;
}

.level-stack-axis span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.level-stack-axis i {
  margin-top: 8px;
  color: #fd6a54;
  font-size: 24px;
}

.level-section {
  padding: 100px 0;
  scroll-margin-top: 90px;
}

.level-section .section-heading {
  margin-bottom: 28px;
}

.level-section .section-heading .line-dec {
  margin: 0;
}

.level-summary {
  padding-top: 110px;
}

.level-intro,
.level-summary-note {
  max-width: 940px;
  font-size: 16px;
}

.level-table-wrap {
  margin: 32px 0;
  overflow-x: auto;
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(42, 42, 42, 0.07);
}

.level-table {
  width: 100%;
  min-width: 790px;
  border-collapse: collapse;
}

.level-table th,
.level-table td {
  padding: 19px 22px;
  border-bottom: 1px solid #e7e7e7;
  vertical-align: middle;
  text-align: left;
  line-height: 1.6;
}

.level-table thead th {
  background: #2a2a2a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.level-table thead th:first-child {
  width: 150px;
}

.level-table tbody th {
  white-space: nowrap;
  color: #2a2a2a;
  font-weight: 700;
}

.level-table tbody tr:last-child th,
.level-table tbody tr:last-child td {
  border-bottom: 0;
}

.level-table tbody tr:nth-child(even) {
  background: #f8fbff;
}

.level-table-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  border-radius: 50%;
  background: #2e6cbd;
  color: #fff;
  font-size: 13px;
}

.level-summary-note {
  padding-left: 20px;
  border-left: 3px solid #fd6a54;
}

.level-detail {
  border-top: 1px solid #efefef;
}

.level-band {
  background: #f8fbff;
}

.level-marker {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 170px;
  padding-left: 22px;
  border-left: 3px solid #fd6a54;
}

.level-marker span {
  color: #8d99af;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.level-marker strong {
  color: #2e6cbd;
  font-size: 68px;
  font-weight: 700;
  line-height: 1;
}

.level-marker small {
  margin-top: 8px;
  color: #2a2a2a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.level-copy {
  max-width: 840px;
}

.level-copy h2 {
  margin-bottom: 28px;
  color: #2a2a2a;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
}

.level-copy h3 {
  margin: 30px 0 12px;
  color: #2a2a2a;
  font-size: 18px;
  font-weight: 700;
}

.level-copy p {
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.85;
}

.level-copy ul,
.level-copy ol {
  margin: 0 0 28px;
  padding-left: 0;
  list-style: none;
}

.level-copy li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 28px;
  line-height: 1.7;
}

.level-copy ul li::before {
  content: '\f00c';
  position: absolute;
  top: 1px;
  left: 0;
  color: #2e6cbd;
  font-family: FontAwesome;
  font-size: 12px;
}

.level-copy ol {
  counter-reset: level-steps;
}

.level-copy ol li {
  counter-increment: level-steps;
}

.level-copy ol li::before {
  content: counter(level-steps);
  position: absolute;
  top: 2px;
  left: 0;
  color: #2e6cbd;
  font-size: 13px;
  font-weight: 700;
}

.level-copy blockquote {
  margin: 24px 0 30px;
  padding: 22px 26px;
  border-left: 3px solid #2e6cbd;
  background: #fff;
  box-shadow: 0 10px 24px rgba(42, 42, 42, 0.06);
  color: #2a2a2a;
  font-size: 17px;
  font-style: italic;
  line-height: 1.75;
}

.level-examples {
  margin-top: 28px;
  padding: 16px 20px;
  border-left: 3px solid #8d99af;
  background: rgba(141, 153, 175, 0.08);
}

.harness-note {
  display: flex;
  gap: 18px;
  margin-top: 34px;
  padding: 24px;
  border: 1px solid rgba(46, 108, 189, 0.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(42, 42, 42, 0.07);
}

.harness-note-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  height: 42px;
  border-radius: 50%;
  background: #2e6cbd;
  color: #fff;
}

.harness-note strong {
  display: block;
  margin: 2px 0 6px;
  color: #2a2a2a;
  font-size: 17px;
}

.harness-note p {
  margin: 0;
  line-height: 1.75;
}
.harness-note-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(46, 108, 189, 0.35);
  color: #2e6cbd;
  font-size: 12px;
  font-weight: 600;
}

.harness-note-link:hover {
  border-bottom-color: #fd6a54;
  color: #fd6a54;
}

.harness-note-link i {
  font-size: 11px;
}

.level-columns {
  columns: 2;
  column-gap: 42px;
}

.level-columns li {
  break-inside: avoid;
}

.level-process {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 24px 0 34px;
  padding: 20px;
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  background: #fff;
}

.level-process span {
  padding: 7px 10px;
  border-radius: 4px;
  background: #f5f5f5;
  color: #2a2a2a;
  font-size: 12px;
  font-weight: 600;
}

.level-process i {
  color: #fd6a54;
}

.harness-section {
  border-top: 1px solid #efefef;
  background: #2a2a2a;
  color: #fff;
}

.harness-section .section-heading h6,
.harness-section .section-heading h2,
.harness-section .section-heading h2 em {
  color: #fff;
}

.harness-section .section-heading .line-dec {
  background: #fd6a54;
}

.harness-section p {
  color: #fff;
  line-height: 1.85;
}

.harness-list-wrap {
  padding-left: 40px;
}

.harness-list-wrap h3 {
  margin-bottom: 22px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.harness-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.harness-list li {
  display: flex;
  align-items: flex-start;
  color: #fff;
  line-height: 1.55;
}

.harness-list i {
  margin: 5px 11px 0 0;
  color: #fd6a54;
  font-size: 11px;
}

.harness-conclusion {
  margin-top: 55px;
  padding: 28px 32px;
  border-left: 3px solid #fd6a54;
  background: rgba(255, 255, 255, 0.07);
}

.harness-conclusion p:last-child {
  margin-bottom: 0;
}

@media (max-width: 992px) {
  .level-hero {
    padding-top: 160px;
  }

  .level-stack {
    margin: 50px auto 0;
  }

  .level-marker {
    position: static;
    flex-direction: row;
    align-items: center;
    width: auto;
    margin-bottom: 30px;
    padding-left: 18px;
  }

  .level-marker span {
    margin-right: 8px;
  }

  .level-marker strong {
    margin-right: 14px;
    font-size: 48px;
  }

  .level-marker small {
    max-width: 180px;
    margin-top: 0;
  }

  .harness-list-wrap {
    margin-top: 38px;
    padding-left: 0;
  }
}

@media (max-width: 767px) {
  .level-hero {
    padding-bottom: 70px;
  }

  .level-stack {
    padding-right: 44px;
  }

  .level-stack-item {
    min-height: 50px;
    padding: 7px 12px;
  }

  .level-stack-item strong {
    flex-basis: 30px;
    height: 30px;
    margin-right: 9px;
    font-size: 14px;
  }

  .level-stack-item span {
    font-size: 11px;
  }

  .level-section,
  .level-summary {
    padding: 75px 0;
  }

  .level-copy h2 {
    font-size: 25px;
  }

  .level-columns {
    columns: 1;
  }

  .harness-note {
    gap: 13px;
    padding: 20px 16px;
  }

  .harness-note-icon {
    flex-basis: 36px;
    height: 36px;
  }

  .harness-list {
    grid-template-columns: 1fr;
  }

  .harness-conclusion {
    margin-top: 40px;
    padding: 22px 20px;
  }
}
