.ap-skill-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.ap-skill-detail .ap-title {
  margin-bottom: var(--space-sm);
}

.ap-skill-detail .ap-lede {
  max-width: 100%;
  color: var(--muted);
  margin: 0 0 var(--space-lg);
}

.skills-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.skills-card {
  border: 1px solid var(--soft-line);
  padding: var(--space-md);
}

.skills-card h2 {
  font-size: 1.05rem;
  margin: 0 0 var(--space-xs);
}

.skills-card p {
  margin: 0 0 var(--space-sm);
}

.skills-tags {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.skills-section {
  margin-top: var(--space-lg);
}

.skills-section > p {
  margin-bottom: var(--space-sm);
  color: var(--muted);
}

.skills-table {
  border-top: 1px solid var(--soft-line);
  margin-top: var(--space-sm);
}

.skills-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-sm);
  padding: 10px 0;
  border-bottom: 1px solid var(--soft-line);
}

.skills-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.skills-value {
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .skills-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ap-skill-detail {
    max-width: 92vw;
    padding: 0;
  }

  .skills-cards {
    grid-template-columns: 1fr;
  }

  .skills-row {
    grid-template-columns: 1fr;
  }
}
.skills-section + .skills-section {
  margin-top: var(--space-xl);
}

.skills-section h2 {
  margin: 0 0 var(--space-sm);
  font-size: 1.25rem;
}

.skills-value a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.skills-value a:hover,
.skills-value a:focus-visible {
  border-bottom-color: currentColor;
}

.skills-sep {
  color: var(--muted);
}
.skills-label a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.skills-label a:hover,
.skills-label a:focus-visible {
  border-bottom-color: currentColor;
}

.skills-tags a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.skills-tags a:hover,
.skills-tags a:focus-visible {
  border-bottom-color: currentColor;
}
.ap-skill-top-content {
  margin-bottom: var(--space-xl);
  max-width: 100%;
}

.skills-section h2 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.skills-section h2 a:hover,
.skills-section h2 a:focus-visible {
  border-bottom-color: currentColor;
}

.ap-skill-top-content h2 {
  margin-top: var(--space-sm);
}

.ap-skill-top-content > h2:first-of-type {
  margin-top: 0;
}

/* Systems page block (for custom HTML in WP editor) */
.system-page {
  margin-top: var(--space-md);
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.system-page h2 {
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 32px 0 12px;
  padding-top: 0;
  border-top: 0;
}

.system-page h3 {
  font-size: 1.05rem;
  line-height: 1.4;
  margin: 20px 0 6px;
}

.system-page p {
  margin: 0 0 10px;
  color: #202020;
  max-width: 100%;
}

.system-page > header,
.system-page > section {
  position: relative;
}

/* Section spacing without dividers */
.system-page > section {
  margin-top: 28px;
}

.system-page > section:first-of-type {
  margin-top: 16px;
}

/* Hero lead styling */
.system-page .system-hero h1 {
  margin: 0 0 10px;
  font-size: 2.05rem;
  line-height: 1.15;
}

.system-page .system-hero p {
  font-size: 1.02rem;
  color: #2a2a2a;
  max-width: 70ch;
}

/* Overview block */
.system-page .system-intro {
  padding: 16px;
  border: 1px solid var(--soft-line);
  background: #fff;
}

/* Framework cards */
.system-page .delivery-tracks {
  display: block;
  border: 1px solid var(--soft-line);
  padding: 16px;
  background: #fff;
  margin-top: 16px;
}

.system-page .delivery-tracks h3 {
  margin-top: 0;
}

.system-page .delivery-tracks p strong {
  display: block;
  margin: 12px 0 4px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Governance block */
.system-page .system-governance {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  border-left: 0;
}

@media (max-width: 900px) {
  .system-page h2 {
    font-size: 1.25rem;
  }

  .system-page h3 {
    font-size: 1rem;
  }
}
