:root {
  color-scheme: light;
  --brand: #1f4e79;
  --accent: #2a7fba;
  --surface: #f7f9fc;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.navbar {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar .navbar-nav .nav-link,
.navbar .navbar-brand,
.navbar .navbar-toggler-icon {
  color: #f6f7fb !important;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus,
.navbar .navbar-brand:hover,
.navbar .navbar-brand:focus {
  color: #ffffff !important;
}

.hero {
  background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
  border: 1px solid #dce9f7;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 0.4rem;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.index-card {
  background: var(--surface);
  border: 1px solid #dfe7f2;
  border-radius: 0.8rem;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.index-card h3 {
  margin-top: 0;
}

.callout {
  margin: 1rem 0;
}

figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0.7rem;
  border: 1px solid #dfe7f2;
  margin: 1rem 0;
}

.logo-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 1.2rem 0 1.5rem;
  padding: 0.8rem 1rem;
  background: #fcfdff;
  border: 1px solid #e1e8f1;
  border-radius: 0.7rem;
}

.logo-bar img {
  max-height: 42px;
  width: auto;
}

.image-lightbox-link {
  display: block;
  margin: 1rem 0 1.25rem;
  text-align: center;
}

.image-lightbox-link img {
  display: block;
  width: auto;
  max-width: min(100%, 860px);
  max-height: min(56vh, 520px);
  height: auto;
  margin: 0 auto;
  border: 1px solid #dce4ee;
  border-radius: 0.75rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  cursor: zoom-in;
}

.site-footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e3e9f2;
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer-logos {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-footer-logos img {
  max-height: 40px;
  width: auto;
}

.table {
  overflow-x: auto;
}

.table-caption,
.quarto-table-caption {
  margin: 0.6rem 0 0.45rem;
  font-weight: 600;
  color: #234b6e;
}

.principal-elements-intro {
  margin: 1rem 0 1.1rem;
  color: #4b5563;
  font-size: 1rem;
}

.principal-elements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.1rem 0 1.3rem;
}

.principal-element-card {
  background: linear-gradient(145deg, #f7fbff 0%, #edf5ff 100%);
  border: 1px solid #dbe8f4;
  border-radius: 0.95rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 24px rgba(17, 35, 60, 0.06);
}

.principal-element-card h4 {
  margin: 0 0 0.45rem;
  color: #234b6e;
}

.principal-element-card p {
  margin: 0 0 0.55rem;
  color: #425466;
}

.principal-element-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #425466;
}

.principal-element-card li {
  margin-bottom: 0.3rem;
}

.upgrade-keypoints-table {
  margin: 1.1rem 0 1.4rem;
}

.upgrade-keypoints-table table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d0d7e2;
  background: #fff;
}

.upgrade-keypoints-table th,
.upgrade-keypoints-table td {
  border: 1px solid #d0d7e2;
  padding: 0.8rem 0.9rem;
  vertical-align: top;
}

.upgrade-keypoints-table thead th {
  background: #2f5f86;
  color: white;
  font-weight: 700;
  text-align: left;
}

.upgrade-keypoints-table tbody th {
  background: #f4f7fb;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.upgrade-keypoints-table tbody tr:nth-child(even) td,
.upgrade-keypoints-table tbody tr:nth-child(even) th {
  background: #fbfcfe;
}

.assessment-table-card {
  background: #f8fbff;
  border: 1px solid #dce7f2;
  border-radius: 0.9rem;
  padding: 1rem;
  margin: 1rem 0 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.assessment-matrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #d3dae3;
  overflow: hidden;
  table-layout: fixed;
}

.assessment-matrix th,
.assessment-matrix td {
  border: 1px solid #d3dae3;
  padding: 0.75rem;
  vertical-align: top;
}

.assessment-matrix thead th {
  background: #eef4ff;
  font-weight: 700;
  text-align: center;
  font-size: 0.96rem;
}

.assessment-matrix tbody th {
  min-width: 220px;
  background: #f8fbff;
  text-align: left;
  font-weight: 600;
  vertical-align: middle;
}

.assessment-cell {
  width: 100%;
  min-height: 3.6rem;
  border: 1px solid #c7d1de;
  border-radius: 0.55rem;
  background: #fff;
  color: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  text-align: left;
  padding: 0.75rem 0.8rem;
  line-height: 1.35;
}

.assessment-cell:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.assessment-cell .status-icon {
  display: inline-block;
  margin-right: 0.35rem;
  font-size: 1rem;
}

.assessment-cell.is-selected[data-status="clear"] {
  background: #dff5e6;
  border-color: #4f9e73;
  color: #17553a;
}

.assessment-cell.is-selected[data-status="partial"] {
  background: #fff2d8;
  border-color: #e0a93d;
  color: #7a4f00;
}

.assessment-cell.is-selected[data-status="unclear"] {
  background: #f7dede;
  border-color: #c96d6d;
  color: #7a2d2d;
}

.assessment-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.8rem;
}

.assessment-reset {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  background: var(--brand);
  color: white;
  cursor: pointer;
}

.assessment-summary {
  margin: 0;
  color: #5e6b7a;
  font-size: 0.95rem;
}

.assessment-score {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 0.7rem 0 0.2rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: #eef4ff;
  color: #2b3a4a;
  font-size: 0.95rem;
  border: 1px solid #dce7f2;
}

.assessment-score-label {
  font-weight: 600;
  color: #4e5f75;
}

.assessment-score-band {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

.assessment-score.strong {
  background: #e8f8ee;
  border-color: #bbdfc7;
}

.assessment-score.strong .assessment-score-band {
  background: #1f8a4c;
  color: #fff;
}

.assessment-score.developing {
  background: #fff7e8;
  border-color: #f0d49f;
}

.assessment-score.developing .assessment-score-band {
  background: #c78400;
  color: #fff;
}

.assessment-score.weak {
  background: #fbeeee;
  border-color: #f0c6c6;
}

.assessment-score.weak .assessment-score-band {
  background: #b74242;
  color: #fff;
}

body.lightbox-open {
  overflow: hidden;
}

#colife-image-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2147483647;
  padding: 1rem;
  overflow-y: auto;
}

#colife-image-lightbox.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

#colife-image-lightbox .lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 14, 24, 0.85);
}

#colife-image-lightbox .lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: min(94vw, 1200px);
  max-height: min(92vh, 900px);
  padding: 0.75rem;
  border-radius: 0.8rem;
  background: #fff;
  border: 1px solid #dfe7f0;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  margin: 0 auto;
}

#colife-image-lightbox .lightbox-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(84vh, 860px);
  object-fit: contain;
  border-radius: 0.5rem;
  border: 1px solid #dfe7f0;
  padding: 0.25rem;
  background: #fff;
  box-sizing: border-box;
}

#colife-image-lightbox .lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  border: 0;
  border-radius: 999px;
  width: 2.2rem;
  height: 2.2rem;
  background: rgba(255, 255, 255, 0.95);
  color: #18212f;
  cursor: pointer;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .hero {
    padding: 1rem;
  }
}
