/* ===== NESTUA — content pages (guides, use cases, explainers) ===== */

.page-hero {
  padding: 150px 0 64px;
}

.page-hero .hero-content {
  max-width: 760px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
}

.page-hero .hero-sub {
  max-width: 640px;
  margin-bottom: 28px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin-bottom: 22px;
  font-size: 0.78rem;
  color: var(--slate-500);
}

.breadcrumbs li + li::before {
  content: '/';
  margin-right: 6px;
  color: var(--border);
}

.breadcrumbs a {
  color: var(--slate-500);
}

.breadcrumbs a:hover {
  color: var(--orange);
}

/* Article layout: body + sticky table of contents */
.article-section {
  background: var(--white);
  padding: 72px 0 96px;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 64px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 110px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 0.82rem;
}

.toc h2 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 12px;
}

.toc ol {
  list-style: none;
  display: grid;
  gap: 8px;
}

.toc a {
  color: var(--text-body);
}

.toc a:hover {
  color: var(--orange);
}

.prose {
  max-width: 760px;
  min-width: 0;
  overflow-wrap: break-word;
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.75;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--graphite-900);
  letter-spacing: -0.01em;
  margin-top: 2.4em;
  scroll-margin-top: 100px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--graphite-900);
  margin-top: 1.8em;
  scroll-margin-top: 100px;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose strong {
  color: var(--graphite-900);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 2px 6px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  color: var(--graphite-900);
  word-break: break-word;
}

.prose pre {
  padding: 18px 20px;
  background: var(--graphite-900);
  color: #e8ecee;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.84rem;
  line-height: 1.6;
}

.prose pre code {
  padding: 0;
  background: none;
  border: none;
  color: inherit;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: 8px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 1.55;
}

.prose th,
.prose td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.prose thead th {
  background: var(--surface);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-700);
  white-space: nowrap;
}

.prose tbody th {
  font-weight: 600;
  color: var(--graphite-900);
}

.prose tbody tr:last-child th,
.prose tbody tr:last-child td {
  border-bottom: none;
}

.prose td.us,
.prose th.us {
  background: var(--orange-subtle);
}

.callout {
  padding: 18px 22px;
  border-left: 3px solid var(--orange);
  background: var(--orange-subtle);
  border-radius: 0 8px 8px 0;
  font-size: 0.93rem;
}

.callout.warn {
  border-left-color: #c06030;
  background: rgba(192, 96, 48, 0.08);
}

.callout > * + * {
  margin-top: 0.6em;
}

.prose .key-points {
  list-style: none;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
}

.prose .key-points li {
  padding-left: 22px;
  position: relative;
}

.prose .key-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.prose .sources {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.prose .sources a {
  word-break: break-word;
}

/* Card grid of related / child pages */
.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.link-card {
  display: block;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-body);
  transition: border-color 0.2s, transform 0.2s;
}

.link-card:hover {
  border-color: var(--orange);
  color: var(--text-body);
  transform: translateY(-2px);
}

.link-card h3 {
  font-size: 1rem;
  color: var(--graphite-900);
  margin-bottom: 8px;
}

.link-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.link-card span {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange);
}

.related-section {
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  padding: 72px 0;
}

.page-cta {
  text-align: center;
}

.page-cta .section-desc {
  margin: 0 auto 28px;
}

/* Long FAQ answers on content pages must not clip */
.faq-item.open .faq-answer {
  max-height: 600px;
}

@media (max-width: 960px) {
  .article-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .toc {
    position: static;
    order: -1;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 120px 0 48px;
  }
  .article-section {
    padding: 48px 0 72px;
  }
}

/* ===== About: team ===== */
.team-list {
  display: grid;
  gap: 32px;
}

.team-member {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
}

.team-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  background: var(--surface-alt);
}

.team-bio h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
}

.team-role {
  margin: 4px 0 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange);
}

.team-bio p + p {
  margin-top: 14px;
}

.team-bio p:not(.team-role) {
  line-height: 1.75;
  color: var(--text-body);
}

@media (max-width: 768px) {
  .team-member {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }

  .team-photo {
    max-width: 200px;
  }
}
