html,
body {
  margin: 0;
  padding: 0;
  font-size: 18px;
  font-family: var(--sl-font-sans);
}

.report-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 40px;
  box-sizing: border-box;
}

.content {
  max-width: 800px;
  width: 80%;
  margin: auto;
  padding: 10%;
}

p {
  text-align: justify;
  font-size: 1.1rem;
}

.video-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin-top: 20px;
}

/* 2 videos side-by-side filling full width */
.video-row.two-up .video-box {
  flex: 1;                /* each takes equal width */
  max-width: 100%;        /* remove limiting */
  text-align: center;
}

/* 1 full-width video */
.video-row.single .video-box {
  width: 100%;
  text-align: center;
}

/* Video sizing — fill available width, maintain aspect ratio */
.video-box video {
  width: 100%;
  height: auto;           /* keeps aspect ratio */
  border-radius: 8px;
}

/* Subtitle styling */
.video-box sub {
  display: block;
  margin-top: 8px;
  font-style: italic;
  font-size: 0.9rem;
  text-align: center;
}

/* Equal column widths for the design-improvement table */
#design-improvement .gridjs-table {
  table-layout: fixed !important;
  width: 100% !important;
}

#design-improvement .gridjs-th,
#design-improvement .gridjs-td {
  width: 50% !important;           /* you only have 2 columns in this table */
  white-space: normal !important;
  word-wrap: break-word;
}

/* Row colours – apply to TD, not TR */
#design-improvement .gridjs-tbody .gridjs-tr:nth-child(1) .gridjs-td {
  background: #cfe2ff !important;  /* blue */
}

#design-improvement .gridjs-tbody .gridjs-tr:nth-child(2) .gridjs-td {
  background: #d1e7dd !important;  /* green */
}

#design-improvement .gridjs-tbody .gridjs-tr:nth-child(3) .gridjs-td {
  background: #f8d7da !important;  /* red */
}

#design-improvement .gridjs-tbody .gridjs-tr:nth-child(4) .gridjs-td {
  background: #e2d9f3 !important;  /* purple */
}

#design-improvement .gridjs-tbody .gridjs-tr:nth-child(5) .gridjs-td {
  background: #e2e3e5 !important;  /* grey */
}

/* Team Member Cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 32px 0;
}

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

.team-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #fafafa;
}

.team-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 4px;
}

.team-card-info {
  min-width: 0;
}

.team-card-info h3 {
  margin: 0 0 2px;
  font-size: 1rem;
}

.team-dept {
  font-size: 0.8rem;
  color: #888;
  display: block;
  margin-bottom: 8px;
}

.team-contrib {
  font-size: 0.82rem;
  margin: 0;
  color: #555;
  text-align: left;
  line-height: 1.5;
}

.team-contrib ul {
  margin: 4px 0 0;
  padding-left: 18px;
  list-style: disc;
}

.team-contrib li {
  font-size: 0.82rem;
  margin-bottom: 2px;
  text-align: left;
}

.contrib-label {
  font-weight: 600;
  color: #333;
  display: block;
  margin-bottom: 2px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Conceptual Design Navigation Grid */
.section-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.section-nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  background: #fafafa;
}

.section-nav-card:hover {
  border-color: var(--sl-color-primary-600, #3b82f6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.section-nav-card h3 {
  margin: 12px 0 4px;
  font-size: 1rem;
}

.section-nav-card p {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
  text-align: center;
}

/* Interim Report Section */
.interim-report-section {
  text-align: center;
  padding: 40px 0;
}

.interim-report-section p {
  text-align: center;
}

/* Back button on sub-pages */
.back-btn {
  text-decoration: none;
  display: inline-block;
  margin-bottom: 10px;
}

/* ── Section-fragment styles (exact copy from pages/introduction.html) ── */

/* Inline quote highlight */
.block-quote {
  border-left: 4px solid #1565c0;
  padding: 12px 20px;
  margin: 1.5rem 0;
  background: #f0f4ff;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #1e3a5f;
}

/* Callout box */
.callout {
  background: #e3f2fd;
  border: 1px solid #90caf9;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 1.5rem 0;
}

.callout strong {
  display: block;
  margin-bottom: 6px;
  color: #0d47a1;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Shared report table */
.report-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 8px;
}

.report-table caption {
  text-align: center;
  font-style: italic;
  margin-bottom: 8px;
  color: #555;
  font-size: 0.92rem;
}

.report-table thead tr {
  background: #f8f9fa;
}

.report-table th,
.report-table td {
  padding: 10px 14px;
  border: 1px solid #ccc;
  text-align: left;
  font-size: 0.95rem;
  vertical-align: top;
}

.report-table th { font-weight: 600; }

.report-table td.center { text-align: center; }

.check { color: #2e7d32; font-weight: bold; }
.cross  { color: #c62828; }

/* Sub-figure caption */
sub.fig-caption {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-style: italic;
  font-size: 0.9rem;
  color: #555;
}

/* Journey swim-lane wrapper */
.swim-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
}

/* Pie chart centring + size cap */
.chart-wrap {
  display: flex;
  justify-content: center;
  margin: 20px 0 0;
}

.chart-wrap canvas {
  max-width: 380px;
  max-height: 380px;
}

/* Design consideration row colours */
.dc-row-1 td { background: #cfe2ff; }
.dc-row-2 td { background: #d1e7dd; }
.dc-row-3 td { background: #f8d7da; }
.dc-row-4 td { background: #e2e3e5; }
.dc-row-5 td { background: #e2d9f3; }

/* h3/h4 colours for injected sections */
#section-introduction h3,
#section-problem-clarification h3,
#section-design-methodology h3,
#section-final-design h3 { color: #1565c0; margin-top: 2rem; }

#section-introduction h4,
#section-problem-clarification h4,
#section-design-methodology h4,
#section-final-design h4 { color: #37474f; margin-top: 1.5rem; }


