/* Atom — components.css
   Secondary component styles: SVG diagrams, tech-page specifics, etc.
*/

/* ============================================================
   SVG Diagram containers
   ============================================================ */
.atm-svg-diagram {
  width: 100%;
  max-width: 520px;
}

.atm-svg-diagram--full {
  max-width: 100%;
}

/* ============================================================
   Section intro block utility
   ============================================================ */
.atm-section-intro {
  max-width: 640px;
}

.atm-section-intro--center {
  margin: 0 auto;
  text-align: center;
}

/* ============================================================
   Tech sub-page detail sections
   ============================================================ */
.atm-tech-detail {
  padding: var(--atm-section-pad) 0;
}

.atm-tech-detail--alt {
  background: var(--atm-bg-dark-alt);
}

.atm-tech-detail__inner {
  max-width: var(--atm-max-w);
  margin: 0 auto;
  padding: 0 var(--atm-gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.atm-tech-detail--reverse .atm-tech-detail__inner {
  direction: rtl;
}

.atm-tech-detail--reverse .atm-tech-detail__inner > * {
  direction: ltr;
}

.atm-tech-detail__eyebrow {
  color: var(--atm-amber);
  margin-bottom: 12px;
}

.atm-tech-detail__title {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  color: var(--atm-fg-dark-pri);
  margin-bottom: 16px;
}

.atm-tech-detail__text {
  color: var(--atm-fg-dark-sec);
  line-height: 1.75;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.atm-tech-detail__bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.atm-tech-detail__bullet {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--atm-fg-dark-sec);
  line-height: 1.6;
}

.atm-tech-detail__bullet::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: var(--atm-amber);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

/* ============================================================
   Application page detail
   ============================================================ */
.atm-app-detail-hero {
  background: var(--atm-bg-light);
  padding-top: 128px;
  padding-bottom: var(--atm-section-pad);
}

.atm-app-detail-image-wrap {
  margin-top: 48px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--atm-border-light);
}

.atm-app-detail-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   Tab navigation (technology/index.html capability tabs)
   ============================================================ */
.atm-tabs {
  display: flex;
  gap: 2px;
  background: var(--atm-border-dark);
  margin-top: 48px;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
}

.atm-tab {
  flex: 1;
  padding: 16px 24px;
  background: var(--atm-bg-dark-panel);
  color: var(--atm-fg-dark-sec);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background var(--atm-trans), color var(--atm-trans);
  text-align: center;
  font-family: var(--atm-font-body);
  text-decoration: none;
  display: block;
}

.atm-tab:hover {
  background: var(--atm-bg-dark-alt);
  color: var(--atm-fg-dark-pri);
}

.atm-tab--active {
  background: var(--atm-bg-dark-alt);
  color: var(--atm-amber);
}

/* ============================================================
   Company page values strip
   ============================================================ */
.atm-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.atm-value {
  padding: 28px;
  border: 1px solid var(--atm-border-light);
  border-radius: 4px;
  background: var(--atm-bg-white);
}

.atm-value__number {
  font-family: var(--atm-font-mono);
  font-size: 1.5rem;
  color: var(--atm-amber-aa);
  margin-bottom: 12px;
}

.atm-value__title {
  font-family: var(--atm-font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--atm-fg-light-pri);
  margin-bottom: 8px;
}

.atm-value__text {
  font-size: 0.875rem;
  color: var(--atm-fg-light-sec);
  line-height: 1.65;
}

/* ============================================================
   Full team grid page
   ============================================================ */
.atm-team-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

/* ============================================================
   Inline code / spec callout
   ============================================================ */
.atm-spec-callout {
  background: var(--atm-bg-dark-panel);
  border: 1px solid var(--atm-border-dark);
  border-left: 3px solid var(--atm-amber);
  padding: 20px 24px;
  border-radius: 0 4px 4px 0;
  font-family: var(--atm-font-mono);
  font-size: 0.85rem;
  color: var(--atm-fg-dark-sec);
  line-height: 1.6;
  margin: 24px 0;
}

.atm-spec-callout__key {
  color: var(--atm-amber);
  margin-right: 8px;
}

/* ============================================================
   Page section — standalone simple (for safety, about, etc)
   ============================================================ */
.atm-content-section {
  padding: var(--atm-section-pad) var(--atm-gutter);
}

.atm-content-section__inner {
  max-width: var(--atm-max-w);
  margin: 0 auto;
}

/* ============================================================
   Responsive extras
   ============================================================ */
@media (max-width: 1024px) {
  .atm-tech-detail__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .atm-tech-detail--reverse .atm-tech-detail__inner {
    direction: ltr;
  }

  .atm-values {
    grid-template-columns: 1fr 1fr;
  }

  .atm-team-full-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .atm-values {
    grid-template-columns: 1fr;
  }

  .atm-team-full-grid {
    grid-template-columns: 1fr 1fr;
  }

  .atm-tabs {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .atm-team-full-grid {
    grid-template-columns: 1fr;
  }
}
