/* V16 - unified project-detail layouts */
.detail-section .feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.detail-section .feature-grid .feature {
  min-height: 215px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
}
.detail-section .feature-grid .feature h3 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.detail-section .feature-grid .feature p {
  line-height: 1.75;
  margin: 0;
}
.v6-module-grid {
  align-items: stretch;
}
.v6-module-grid .v6-module-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
}
.v6-module-grid .v6-module-card p {
  line-height: 1.8;
  margin: 0;
}
.v16-extra {
  margin-top: 20px;
}
.v16-extra .v6-module-card {
  min-height: 265px;
}
.v16-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.v16-preview {
  border-radius: 24px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.2));
  background: rgba(255, 255, 255, 0.055);
  padding: 22px;
  min-height: 225px;
}
.v16-preview h3 {
  margin: 4px 0 10px;
  font-size: 1.08rem;
}
.v16-preview p {
  line-height: 1.65;
  font-size: 0.94rem;
}
.v16-preview .v16-preview-note {
  font-size: 0.75rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.v16-mock {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
}
.v16-mock span {
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.13);
  padding: 8px 12px;
  font-size: 0.83rem;
}
.v16-narrative {
  line-height: 1.75;
  max-width: 90ch;
}
.v16-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.v16-step {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  padding: 23px;
}
.v16-step strong {
  display: block;
  margin-bottom: 10px;
}
.v16-step p {
  line-height: 1.75;
  margin: 0;
}
.v16-source {
  font-size: 0.82rem;
  opacity: 0.8;
}
.v16-unified .code-card,
.v16-unified .v7-code-explainer .code-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 15px;
}
.v16-unified .code-card .code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.09);
}
.v16-unified .code-card pre {
  background: #071729;
  color: #d8eaff;
  overflow: auto;
  white-space: pre;
  tab-size: 4;
  padding: 24px;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.65;
}
.v16-unified .code-card pre code {
  color: inherit;
}
.v16-unified .v7-code-explainer {
  margin-top: 20px;
}
.v16-unified .v7-code-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.v16-unified .v7-code-heading span {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  font-size: 0.8rem;
}
.v16-school-classic .v5-detail-main {
  max-width: none;
}
.v16-school-classic .v5-detail-section {
  margin-bottom: 20px;
}
.v16-school-classic .v5-detail-feature {
  min-height: 190px;
  padding: 25px;
}
.v16-school-classic .v5-detail-feature p {
  line-height: 1.75;
}
.v16-standard-section {
  margin: 38px auto;
  max-width: 1250px;
}
.v16-standard-section .v16-standard-inner {
  border-radius: 22px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.045);
}
.v16-standard-section h2 {
  font-size: clamp(1.55rem, 2.1vw, 2.25rem);
  margin: 10px 0 14px;
}
.v16-standard-section p {
  line-height: 1.8;
}
.v16-legacy-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 22px;
}
.v16-legacy-nav a {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  font-size: 0.85rem;
}
.v16-seedling-page .container {
  max-width: 1450px;
}
.v16-seedling-page .v7-seedling-hero {
  border-radius: 25px;
}
.v16-seedling-page .detail-section {
  margin-top: 38px;
}
.v16-seedling-page .v7-seedling-hero p {
  line-height: 1.8;
}
.v16-seedling-page .v6-module-grid .v6-module-card {
  min-height: 265px;
}
.v16-intro {
  line-height: 1.8;
  max-width: 90ch;
}
@media (max-width: 850px) {
  .detail-section .feature-grid,
  .v16-preview-grid,
  .v16-steps {
    grid-template-columns: 1fr;
  }
  .v6-module-grid {
    grid-template-columns: 1fr;
  }
  .v6-module-grid .v6-module-card,
  .detail-section .feature-grid .feature {
    min-height: auto;
  }
}

/* Explicit language identification and fuller engineering explanations */
.v16-unified .code-head .v16-language {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.v16-unified #deep-dive .v6-module-grid .v6-module-card {
  min-height: 350px;
}
.v16-source-note {
  font-size: 0.85rem;
  line-height: 1.7;
  opacity: 0.8;
  margin-top: 14px;
}
.v16-unified .code-card pre code {
  font-family:
    ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}
