/* AI Hub Brand — green, black, yellow, white */
:root {
  --dc-green: #007853;
  --code-black: #242d39;
  --rubber-feathers: #e5bf21;
  --cursor: #f0f8f3;
  --white: #ffffff;
  --black: #000000;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Open Sans', Segoe UI, Roboto, Arial, sans-serif;
  color: var(--code-black);
  background: linear-gradient(150deg, var(--cursor), #ffffff);
}

.brand-topbar {
  height: 28px;
  background: linear-gradient(
    to right,
    var(--dc-green) 0% 40%,
    var(--code-black) 40% 72%,
    var(--rubber-feathers) 72% 100%
  );
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 1.5rem;
}
.topbar-ext-link {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}
.topbar-ext-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* ── Program tabs ────────────────────────────────────── */
.program-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e5e7eb;
  margin: -2rem -2rem 0;
  padding: 0 2rem;
  background: #f8fafc;
}
.program-tab {
  padding: 0.85rem 1.4rem;
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.program-tab:hover { color: var(--code-black); }
.program-tab-active {
  color: var(--code-black);
  border-bottom-color: var(--dc-green);
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 2rem auto;
  background: var(--white);
  padding: 2rem;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(36, 45, 57, 0.08);
  border: 1px solid #ecf0f2;
  overflow: hidden;
}
.flow-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
}

.flow-sidebar {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem;
  background: #f8fafc;
  height: fit-content;
}

.flow-sidebar-title {
  margin: 0 0 0.75rem 0;
  font-weight: 700;
}

.flow-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  color: #4b5563;
  font-size: 0.95rem;
}

.flow-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: 0.8rem;
  background: white;
}

.flow-step-current {
  color: var(--code-black);
  font-weight: 700;
}

.flow-step-current .flow-step-number {
  background: var(--dc-green);
  border-color: var(--dc-green);
  color: white;
}

.flow-step-completed .flow-step-number {
  background: color-mix(in srgb, var(--dc-green) 15%, white);
  border-color: color-mix(in srgb, var(--dc-green) 35%, white);
  color: var(--dc-green);
}

@media (max-width: 900px) {
  .flow-layout {
    grid-template-columns: 1fr;
  }
}

h1, h2, h3 {
  color: var(--code-black);
  margin-top: 0;
}

h1, h2, h3 {
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
}

h2 { border-left: 6px solid var(--dc-green); padding-left: 0.75rem; margin-top: 1.75rem; }

a { color: var(--dc-green); }

.btn {
  display: inline-block;
  border: none;
  border-radius: 8px;
  padding: 0.72rem 1.1rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  font-family: inherit;
  vertical-align: middle;
  text-decoration: none;
  cursor: pointer;
  background: var(--dc-green);
  color: var(--white);
}

.btn:hover { filter: brightness(0.95); }

.btn-secondary {
  background: var(--code-black);
}

form p { margin: 0 0 1rem 0; }
input:not([type="checkbox"]):not([type="radio"]), textarea, select {
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid #ced8dd;
  border-radius: 8px;
  padding: 0.62rem 0.7rem;
  font: inherit;
}
input[type="checkbox"],
input[type="radio"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  padding: 0;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--dc-green);
}
label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]) {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  line-height: 1.5;
  font-weight: normal;
}

/* Django CheckboxSelectMultiple / RadioSelect list */
form ul {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
}
form ul li {
  margin-bottom: 0.35rem;
}
form ul li:last-child { margin-bottom: 0; }
.helptext {
  display: block;
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.3rem;
}
textarea {
  min-height: 120px;
  max-height: 320px;
  resize: vertical;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid color-mix(in srgb, var(--dc-green) 35%, white);
  border-color: var(--dc-green);
}

.hint {
  color: #4b5563;
  font-size: 0.95rem;
}

.alert {
  background: color-mix(in srgb, var(--dc-green) 10%, white);
  border-left: 5px solid var(--dc-green);
  padding: 1rem;
  border-radius: 8px;
}

.duck-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--rubber-feathers) 25%, white);
  color: #5d4100;
  margin-bottom: 1rem;
}

.duck-emoji { font-size: 1.2rem; }

.errorlist { color: #b91c1c; }

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ── Form section layout ─────────────────────────────── */
.form-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}
.form-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dc-navy);
  margin: 0 0 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #f3f4f6;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.5rem;
  row-gap: 0;
  margin-bottom: 1.25rem;
}
.form-row-2 .form-field {
  margin-bottom: 0;
}
@media (max-width: 640px) {
  .form-row-2 { grid-template-columns: 1fr; }
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.form-field:last-child { margin-bottom: 0; }
.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
}
/* Cancel the global input margin-top inside .form-field since gap handles it */
.form-field input:not([type="checkbox"]):not([type="radio"]),
.form-field textarea,
.form-field select {
  margin-top: 0;
}
.form-label-block {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.4rem;
}
.required-star {
  color: #dc2626;
  margin-left: 2px;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: normal;
  cursor: pointer;
  line-height: 1.5;
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 3rem 2rem 2.75rem;
  margin: -2rem -2rem 2.5rem;
  background: var(--code-black);
  border-radius: 14px 14px 0 0;
  color: white;
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: none;
  padding: 0;
  margin-bottom: 0.75rem;
  color: white;
  position: relative;
}
.hero-tagline {
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--rubber-feathers);
  margin: 0 auto 0.6rem;
  max-width: 600px;
  position: relative;
}
.hero-subtitle {
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  max-width: 620px;
  margin: 0 auto 1.75rem;
  line-height: 1.7;
  position: relative;
}
.cta-group-center { justify-content: center; }

/* ── Badges ──────────────────────────────────────────── */
.badge-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 1.75rem;
  position: relative;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.badge-dark {
  background: rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.22);
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
  flex-shrink: 0;
}

/* ── Ghost button (hero) ─────────────────────────────── */
.btn-ghost-white {
  background: transparent;
  border: 2px solid var(--dc-green);
  color: white;
  padding: calc(0.72rem - 2px) calc(1.1rem - 2px);
}
.btn-ghost-white:hover { background: rgba(0,120,83,0.18); filter: none; }

/* ── Hero: suppress negative top margin when program-tabs sit above it ── */
.container:has(.program-tabs) .hero {
  margin-top: 0;
}

/* ── Hero CTA prefix chevron ─────────────────────────── */
.btn-hero::before {
  content: '> ';
  font-family: 'Fira Code', monospace;
  opacity: 0.75;
  font-size: 0.9em;
}

/* ── Callout boxes ───────────────────────────────────── */
.callout {
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.callout-warning {
  background: color-mix(in srgb, var(--rubber-feathers) 18%, white);
  border-left: 5px solid var(--rubber-feathers);
}
.callout-info {
  background: color-mix(in srgb, var(--dc-green) 8%, white);
  border-left: 5px solid var(--dc-green);
}
.callout-title {
  font-weight: 700;
  margin: 0 0 0.4rem;
}
.callout p { margin: 0; }

/* ── Program Snapshot band ───────────────────────────── */
.snapshot-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem 1rem;
  margin: 2rem 0;
}
.snapshot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}
.snapshot-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--code-black);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.snapshot-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #374151;
  line-height: 1.3;
}
.snapshot-value {
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.35;
}

/* ── Engagement cards ────────────────────────────────── */
.engagement-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.25rem 0 1rem;
}
.engagement-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: white;
}
.engagement-card-head {
  padding: 0.85rem 1.25rem;
  color: white;
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.engagement-card-head.navy { background: var(--code-black); }
.engagement-card-head.green { background: var(--dc-green); }
.engagement-card-body { padding: 1.1rem 1.25rem 1.25rem; }
.engagement-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}
.engagement-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.engagement-meta-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.engagement-meta-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--code-black);
}
.engagement-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  color: #374151;
}
.engagement-list li { margin-bottom: 0.3rem; }

@media (max-width: 700px) {
  .engagement-cards { grid-template-columns: 1fr; }
  .engagement-meta   { grid-template-columns: 1fr 1fr; }
}

/* ── Stream section heading ──────────────────────────── */
.section-centered {
  text-align: center;
  margin-bottom: 1.25rem;
}
.section-centered h2 {
  border: none;
  padding: 0;
  display: inline-block;
}
.section-centered p {
  color: #4b5563;
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
}

/* ── Stream cards ────────────────────────────────────── */
.stream-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 0 0 2rem;
}
.stream-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: white;
}
/* header variant used in What to Expect page (old flat style) */
.stream-card h3 {
  margin: 0 0 0.5rem;
  color: var(--dc-green);
  font-size: 1rem;
}
.stream-card ul {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  color: var(--code-black);
}
.stream-card li { margin-bottom: 0.3rem; }
/* icon-card variant used on landing */
.stream-card-head {
  padding: 0.85rem 1.25rem;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}
.stream-card-head.navy { background: var(--code-black); }
.stream-card-head.green { background: var(--dc-green); }
.stream-card-body { padding: 1.25rem 1rem; }
.stream-icons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.stream-icon { text-align: center; width: 5.5rem; }
.stream-icon-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--dc-green) 13%, white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.45rem;
  font-size: 1.3rem;
}
.stream-icon-circle-img {
  background: none;
  border: none;
  padding: 0;
}
.stream-icon-circle-img img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  display: block;
}
.stream-icon-circle.green-bg {
  background: color-mix(in srgb, var(--rubber-feathers) 22%, white);
}
.stream-icon-label {
  font-size: 0.76rem;
  line-height: 1.3;
  color: var(--code-black);
}

/* ── Who grid ────────────────────────────────────────── */
.who-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1rem 0 1.25rem;
}
.who-item {
  border: 1px solid #e5e7eb;
  border-top: 3px solid var(--dc-green);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  background: #f8fafc;
}
.who-item-header {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #e5e7eb;
}
.who-title {
  font-weight: 700;
  margin: 0;
  font-size: 0.93rem;
  color: var(--code-black);
  line-height: 1.4;
}
.who-item ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: #4b5563;
}
.who-item li { margin-bottom: 0.2rem; }

/* ── Scope grid ──────────────────────────────────────── */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0 1.25rem;
}
.scope-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  background: #f8fafc;
}
.scope-title {
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--dc-green);
  margin: 0 0 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #e5e7eb;
}
.scope-item ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.6;
}
.scope-item li {
  margin-bottom: 0.35rem;
}
.scope-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 4px;
  letter-spacing: 0.03em;
}
.scope-tag-navy  { background: #242d39; color: #fff; }
.scope-tag-green { background: #007853; color: #fff; }

.scope-item p:last-child {
  margin: 0;
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .who-grid   { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .who-grid   { grid-template-columns: 1fr; }
  .scope-grid { grid-template-columns: 1fr; }
}

/* ── Step flow (fallback / vertical) ─────────────────── */
.step-flow {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin: 1.5rem 0;
}
.step-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--dc-green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 0.1rem;
}
.step-body h4 { margin: 0 0 0.2rem; font-size: 0.97rem; }
.step-body p  { margin: 0; color: #4b5563; font-size: 0.92rem; line-height: 1.5; }

/* ── Phase timeline (horizontal, What to Expect) ─────── */
.phase-timeline { margin: 1.75rem 0 0.5rem; }

/* connector track */
.phase-track {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  padding: 0 2.5rem;
  margin-bottom: 1.25rem;
}
.phase-track::before {
  content: '';
  position: absolute;
  top: 1.15rem;
  left: calc(2.5rem + 1.15rem);
  right: calc(2.5rem + 1.15rem);
  height: 2px;
  background: #d1d5db;
  z-index: 0;
}
.phase-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  position: relative;
  z-index: 1;
  flex: 1;
}
.phase-node-circle {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  border: 3px solid white;
  box-shadow: 0 0 0 2px currentColor;
}
.phase-node-label {
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--code-black);
  text-align: center;
  line-height: 1.2;
}

/* phase cards grid */
.phase-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
  margin: 0 0 1.5rem;
}
.phase-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.1rem 0.9rem 1.1rem;
  background: white;
  border-top: 4px solid;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.phase-card-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  margin: 0 auto 0.3rem;
  flex-shrink: 0;
}
.phase-card-title {
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  color: var(--code-black);
  margin: 0;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.phase-card-duration {
  text-align: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: #4b5563;
  margin: 0;
}
.phase-card ul {
  margin: 0.25rem 0 0;
  padding-left: 1rem;
  font-size: 0.82rem;
  color: #4b5563;
  line-height: 1.45;
}
.phase-card li { margin-bottom: 0.2rem; }
.phase-card .phase-sub {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--code-black);
  margin: 0.4rem 0 0.1rem;
}

/* per-phase accent colours */
.phase-1 { border-top-color: var(--rubber-feathers); color: var(--rubber-feathers); }
.phase-2 { border-top-color: var(--code-black); color: var(--code-black); }
.phase-3 { border-top-color: var(--dc-green); color: var(--dc-green); }
.phase-4 { border-top-color: var(--dc-green); color: var(--dc-green); }
.phase-5 { border-top-color: #9ca3af; color: #9ca3af; }

/* overall timeline summary box */
.timeline-summary {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 0 0 1.5rem;
}
.timeline-summary h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  border: none;
  padding: 0;
}
.timeline-summary ul {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
  font-size: 0.9rem;
}
.timeline-summary li { margin-bottom: 0.25rem; }
.timeline-summary .hint { margin: 0; font-size: 0.85rem; font-style: italic; }

/* step-duration badge inside h4 */
.step-duration {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
  margin-left: 0.5rem;
  font-family: 'Open Sans', sans-serif;
}

/* section divider */
.section-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2rem 0;
}

/* faq items */
.faq-item { margin-bottom: 1rem; }
.faq-q { font-weight: 700; margin: 0 0 0.2rem; color: var(--code-black); }
.faq-a { margin: 0; color: #4b5563; font-size: 0.93rem; }

@media (max-width: 900px) {
  .phase-cards { grid-template-columns: repeat(3, 1fr); }
  .phase-track { display: none; }
}
@media (max-width: 600px) {
  .phase-cards { grid-template-columns: 1fr 1fr; }
}

/* ── Screening assessment ────────────────────────────── */
.screening-stage {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  background: #f8fafc;
}
.screening-stage-header {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}
.screening-stage-number {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--code-black);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}
.screening-stage-title {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--code-black);
  margin: 0 0 0.2rem;
}
.screening-stage-desc {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
}
.screening-question {
  margin-bottom: 1.1rem;
}
.screening-question:last-child { margin-bottom: 0; }
.screening-q-label {
  display: block;
  font-weight: 600;
  font-size: 0.93rem;
  margin-bottom: 0.5rem;
  color: var(--code-black);
}
.screening-radio-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.screening-radio-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font-size: 0.88rem;
  transition: border-color 0.12s, background 0.12s;
}
.screening-radio-option:has(input:checked) {
  border-color: var(--dc-green);
  background: color-mix(in srgb, var(--dc-green) 8%, white);
}
.screening-radio-option input[type="radio"] {
  width: auto;
  margin: 0;
  accent-color: var(--dc-green);
}

/* ── Summary table (confirmation page) ──────────────── */
.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.summary-table th,
.summary-table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}
.summary-table th {
  width: 9rem;
  font-weight: 700;
  color: #6b7280;
  white-space: nowrap;
  background: #f8fafc;
}
.summary-table tr:last-child th,
.summary-table tr:last-child td { border-bottom: none; }

/* ── Intake status strip ─────────────────────────────── */
.intake-status-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: color-mix(in srgb, var(--code-black) 92%, white);
  border-radius: 10px;
  padding: 0.65rem 1.25rem;
  margin-bottom: 1.75rem;
  position: relative;
}
.intake-status-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
}
.intake-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dc-green);
  flex-shrink: 0;
}
.intake-status-dot.closed { background: #ef4444; }
.intake-status-label { font-weight: 700; color: white; }

/* ── FAQ ─────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid #e5e7eb;
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--code-black);
  gap: 1rem;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--dc-green);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-a {
  color: #4b5563;
  font-size: 0.93rem;
  line-height: 1.55;
  margin: 0 0 0.9rem;
  padding-right: 1.5rem;
}

/* ── Section divider ─────────────────────────────────── */
.section-divider { border: none; border-top: 1px solid #e5e7eb; margin: 2rem 0; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 700px) {
  .stream-cards        { grid-template-columns: 1fr; }
  .snapshot-band       { grid-template-columns: 1fr 1fr; }
  .hero                { margin: -2rem -2rem 2rem; padding: 2.25rem 1.25rem 2rem; }
  .hero h1             { font-size: 1.5rem; }
  .dash-stats          { grid-template-columns: repeat(4, 1fr); }
  .dash-detail-grid    { grid-template-columns: 1fr; }
}

/* ── Readiness Assessment Wizard ────────────────────────── */
.ra-stage-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.75rem;
}
.ra-stage-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.ra-stage-btn:hover { background: #f3f4f6; color: #374151; }
.ra-stage-btn.active {
  background: var(--dc-green);
  color: #fff;
  border-color: var(--dc-green);
}
.ra-stage-btn.ra-stage-btn-done:not(.active) {
  background: #f0fdf6;
  border-color: #86efac;
  color: #166534;
}
.ra-stage-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}
.ra-stage-btn:not(.active) .ra-stage-num {
  background: #e5e7eb;
  color: #6b7280;
}

.ra-stage-hidden { display: none !important; }

.ra-stage-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}
.ra-stage-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 0.4rem;
}
.ra-stage-title {
  margin: 0.25rem 0 0.3rem;
  font-size: 1.05rem;
  color: var(--code-black);
}
.ra-stage-desc {
  margin: 0;
  font-size: 0.88rem;
  color: #6b7280;
}

.ra-question {
  margin-bottom: 1.75rem;
  padding: 1.1rem 1.2rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  transition: border-color 0.15s;
}
.ra-question-error {
  border-color: #f97316;
  background: #fff7ed;
}
.ra-question-hidden { display: none !important; }

.ra-q-label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--code-black);
  margin: 0 0 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.45;
}
.ra-q-num {
  display: inline-block;
  background: var(--dc-green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  letter-spacing: 0.03em;
}
.ra-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ra-option {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
  font-weight: normal;
}
.ra-option:hover { border-color: var(--dc-green); background: #f0fdf6; }
.ra-option input[type="radio"] { margin-top: 2px; flex-shrink: 0; }
.ra-option input[type="radio"]:checked ~ .ra-option-score,
.ra-option:has(input:checked) {
  border-color: var(--dc-green);
  background: #f0fdf6;
}
.ra-option-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.ra-option:has(input:checked) .ra-option-score {
  background: var(--dc-green);
  color: #fff;
}
.ra-option-text {
  font-size: 0.88rem;
  color: #374151;
  line-height: 1.5;
}

.ra-branch-note {
  margin: 0.75rem 0 0;
  font-size: 0.83rem;
  color: #6b7280;
  padding: 0.5rem 0.75rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
}

.ra-stage-nav-btns {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* ── Dashboard Detail Tabs ───────────────────────────────── */
.dd-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 1.5rem;
}
.dd-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: color 0.15s, border-color 0.15s;
}
.dd-tab:hover { color: #374151; }
.dd-tab.active {
  color: var(--dc-green);
  border-bottom-color: var(--dc-green);
}

/* ── Assessment Answer Cards ─────────────────────────────── */
.dd-stage-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin: 0 0 0.6rem;
}
.dd-answer {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.6rem;
  background: #f8fafc;
}
.dd-answer-skipped {
  background: #f9fafb;
  opacity: 0.6;
}
.dd-answer-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.dd-answer-qnum {
  display: inline-block;
  background: var(--dc-green);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.dd-answer-score {
  font-size: 0.8rem;
  font-weight: 700;
  color: #374151;
  background: #e5e7eb;
  padding: 1px 8px;
  border-radius: 4px;
}
.dd-answer-na {
  font-size: 0.78rem;
  color: #9ca3af;
  font-style: italic;
}
.dd-answer-question {
  margin: 0 0 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.45;
}
.dd-answer-text {
  margin: 0;
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.5;
}

/* ── Internal Dashboard ──────────────────────────────────── */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.dash-stat {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.9rem 0.75rem;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: border-color 0.15s;
}
.dash-stat:hover { border-color: var(--dc-green); }
.dash-stat-active {
  border-color: var(--dc-green);
  background: color-mix(in srgb, var(--dc-green) 8%, white);
}
.dash-stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--code-black);
  line-height: 1;
}
.dash-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* dash table */
.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.dash-table th {
  background: #f8fafc;
  border-bottom: 2px solid #e5e7eb;
  padding: 0.6rem 0.85rem;
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  font-weight: 700;
}
.dash-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}
.dash-table tr:hover td { background: #f8fafc; }

/* review status badges */
.dash-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: white;
  white-space: nowrap;
}
.dash-badge-new            { background: #6b7280; }
.dash-badge-under_review   { background: var(--dc-green); }
.dash-badge-shortlisted    { background: #92400e; color: white; background: var(--rubber-feathers); color: var(--code-black); }
.dash-badge-scoping        { background: #0369a1; }
.dash-badge-accepted       { background: #16a34a; }
.dash-badge-not_proceeding { background: #dc2626; }
.dash-badge-on_hold        { background: #9ca3af; }

/* detail grid */
.dash-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.dash-section {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  background: #f8fafc;
}
.dash-section h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  border: none;
  padding: 0;
  color: var(--dc-green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
