.nd-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.nd-container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.nd-stack > * + * { margin-top: var(--space-4); }
.nd-stack-lg > * + * { margin-top: var(--space-8); }
.nd-text-center { text-align: center; }
.nd-text-balance { text-wrap: balance; }
.nd-fs-xs { font-size: var(--fs-xs); }
.nd-fs-sm { font-size: var(--fs-sm); }
.nd-fs-base { font-size: var(--fs-base); }
.nd-fs-lg { font-size: var(--fs-lg); }
.nd-fs-xl { font-size: var(--fs-xl); }
.nd-fs-2xl { font-size: var(--fs-2xl); }
.nd-fs-3xl { font-size: var(--fs-3xl); }
.nd-fs-4xl { font-size: var(--fs-4xl); }
.nd-fs-5xl { font-size: var(--fs-5xl); }
.nd-fs-6xl { font-size: var(--fs-6xl); }
.nd-fs-7xl { font-size: var(--fs-7xl); }
.nd-btn-primary {
  display: inline-block;
  background-color: var(--color-accent);
  color: #0B0F14;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 500;
}
.nd-btn-primary:hover {
  background-color: var(--color-accent-hover);
  color: #0B0F14;
}
.nd-btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 500;
}
.nd-btn-secondary:hover {
  background-color: transparent;
  color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}
.nd-section {
  width: 100%;
  padding: var(--space-16) 0;
}
.nd-section-lg {
  width: 100%;
  padding: var(--space-24) 0;
}
.nd-icon {
  width: 48px;
  height: 48px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nd-faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) 0;
}
.nd-faq-item summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none; /* modern replacement */
  position: relative;
  padding-right: var(--space-8);
}
.nd-faq-item summary::-webkit-details-marker {
  display: none;
}
.nd-faq-item summary::after {
  content: "▼";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}
.nd-faq-item[open] summary::after {
  content: "▲";
}
.nd-faq-item p {
  margin-top: var(--space-4);
  color: var(--color-text-secondary);
}
.nd-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
@media (max-width: 768px) {
  .nd-grid-3 {
    grid-template-columns: 1fr;
  }
}
/* Brief 03 — Homepage utilities additions */
.nd-formula-callout {
  font-family: var(--font-mono);
  font-size: var(--fs-xl);
  color: var(--color-accent);
  text-align: center;
  letter-spacing: 0.02em;
}

.nd-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
@media (max-width: 768px) {
  .nd-grid-3 { grid-template-columns: 1fr; }
}

.nd-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.nd-card-featured { 
  border-color: var(--color-accent); 
}

.nd-card-locked { 
  opacity: 0.6; 
}
.nd-card-locked h3 { 
  color: var(--color-text-secondary); 
}

.nd-faq dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-lg);
  color: var(--color-text-primary);
  margin-top: var(--space-8);
  margin-bottom: var(--space-2);
}
.nd-faq dd {
  color: var(--color-text-secondary);
  margin-left: 0;
  line-height: var(--lh-relaxed);
}
.nd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.nd-table th {
  text-align: left;
  font-weight: 600;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}
.nd-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  vertical-align: top;
}

/* Text colour helpers */
.nd-text-primary   { color: var(--color-text-primary); }
.nd-text-secondary { color: var(--color-text-secondary); }
.nd-text-muted     { color: var(--color-text-muted); }
.nd-text-accent    { color: var(--color-accent); }

/* Button size modifier */
.nd-btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-sm);
}

/* Site header */
.nd-site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nd-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}
.nd-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.nd-logo-img {
  display: block;
  height: 28px;
  width: auto;
}

/* Site footer */
.nd-site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: var(--space-8) 0;
}
.nd-footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.nd-footer-copy {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  text-align: center;
  margin: 0;
}
.nd-footer-copy a {
  color: var(--color-text-secondary);
  text-decoration: none;
}
.nd-footer-copy a:hover {
  color: var(--color-text-primary);
}

