/* N Brown AIS Documentation Site — Custom Styles
   Built on Bootstrap 5, following NBUX design principles */

/* ── NBUX Base Palette ── */
:root {
  --nb-black: #252525;
  --nb-white: #f8f8f8;
  --nb-grey-100: #f2f2f2;
  --nb-grey-200: #e0e0e0;
  --nb-grey-300: #b0b0b0;
  --nb-grey-400: #6e6e6e;
  --nb-success: #2e7d32;
  --nb-info: #1565c0;
  --nb-warning: #f9a825;
  --nb-alert: #c62828;
  --nb-highlight: #0d47a1;
  /* Elevation shadows (NBUX: 1px–16px soft shadow) */
  --shadow-1: 0 1px 3px rgba(0,0,0,.12);
  --shadow-2: 0 2px 6px rgba(0,0,0,.12);
  --shadow-3: 0 4px 10px rgba(0,0,0,.12);
  --shadow-4: 0 8px 16px rgba(0,0,0,.10);
}

/* ── Typography (NBUX scale) ── */
html { font-size: 16px; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--nb-black);
  background: var(--nb-white);
  line-height: 1.5;
}
h1 { font-size: 2rem; line-height: 2.5rem; font-weight: 700; }
h2 { font-size: 1.625rem; line-height: 2rem; font-weight: 700; }
h3 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
p, li, td, th { font-size: 1rem; line-height: 1.5rem; }
small, .text-sm { font-size: .75rem; line-height: 1rem; }

/* ── Navbar ── */
.navbar {
  background: var(--nb-black);
  box-shadow: var(--shadow-2);
}
.navbar-brand { font-weight: 700; letter-spacing: .02em; }
.navbar .nav-link { color: rgba(255,255,255,.85); }
.navbar .nav-link:hover,
.navbar .nav-link.active { color: #fff; }

/* ── Cards / Tiles ── */
.tile {
  border: none;
  border-radius: 4px;
  box-shadow: var(--shadow-2);
  transition: box-shadow .2s ease, transform .15s ease;
  background: #fff;
}
.tile:hover {
  box-shadow: var(--shadow-4);
  transform: translateY(-2px);
}
.tile .card-body { padding: 1.5rem; }
.tile .tile-icon {
  font-size: 2rem;
  color: var(--nb-highlight);
  margin-bottom: .75rem;
}
.tile .card-title { font-weight: 600; color: var(--nb-black); }
.tile .card-text { color: var(--nb-grey-400); }

/* ── AIS Checklist ── */
.ais-section { margin-bottom: 2rem; }
.ais-section-header {
  background: var(--nb-grey-100);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-1);
  transition: background .15s;
}
.ais-section-header:hover { background: var(--nb-grey-200); }
.ais-section-header h2 { margin: 0; font-size: 1.25rem; }

.ais-question {
  border-left: 4px solid var(--nb-grey-200);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: 0 4px 4px 0;
  background: #fff;
  box-shadow: var(--shadow-1);
}
.ais-question.status-met { border-left-color: var(--nb-success); }
.ais-question.status-not-met { border-left-color: var(--nb-alert); }
.ais-question.status-na { border-left-color: var(--nb-grey-300); }

.ais-question-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  cursor: pointer;
  margin-bottom: 0;
}
.ais-question-header .badge-status {
  flex-shrink: 0;
  font-size: .75rem;
  padding: .25rem .6rem;
  border-radius: 2px;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-met { background: var(--nb-success); color: #fff; }
.badge-not-met { background: var(--nb-alert); color: #fff; }
.badge-na { background: var(--nb-grey-300); color: #fff; }

.ais-question-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  flex: 1;
}
.ais-question-header .chevron {
  transition: transform .2s;
  color: var(--nb-grey-400);
}
.ais-question-header[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.ais-answer { padding-top: .75rem; }
.ais-answer table { font-size: .875rem; }
.ais-answer pre {
  background: var(--nb-grey-100);
  border-radius: 4px;
  padding: .75rem 1rem;
  font-size: .8125rem;
  overflow-x: auto;
}

/* ── Scorecard ── */
.scorecard {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.scorecard-item {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 1rem;
  border-radius: 4px;
  box-shadow: var(--shadow-1);
  background: #fff;
}
.scorecard-item .count {
  font-size: 2rem;
  font-weight: 700;
  display: block;
}
.scorecard-item .label {
  font-size: .75rem;
  text-transform: uppercase;
  color: var(--nb-grey-400);
  font-weight: 600;
}

/* ── Follow-up banner ── */
.followup-banner {
  background: #fff3e0;
  border-left: 4px solid var(--nb-warning);
  padding: .75rem 1rem;
  border-radius: 0 4px 4px 0;
  margin-bottom: .5rem;
  font-size: .875rem;
}

/* ── Footer ── */
footer {
  background: var(--nb-grey-100);
  color: var(--nb-grey-400);
  font-size: .75rem;
  padding: 1.5rem 0;
}

/* ── Breadcrumb ── */
.breadcrumb { font-size: .875rem; background: transparent; padding: 0; margin-bottom: 1.5rem; }

/* ── Responsive ── */
@media (max-width: 767px) {
  h1 { font-size: 1.5rem; }
  .scorecard { flex-direction: column; }
}
