/* Repository hub + single */

.repo-page,
.repo-single {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* Hub hero (World-style first screen) */
.repo-hero {
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 20px;
  background: linear-gradient(rgba(155,156,204,0.88), rgba(32,34,41,0.88));
  color: #fff;
  text-align: center;
}

.repo-hero-inner {
  max-width: 920px;
}

.repo-hero-title {
  margin: 0 0 14px;
  font-size: 48px;
  line-height: 1.15;
}

.repo-hero-text {
  margin: 0 auto;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.95;
}

.repo-container {
  max-width: 1120px;
  margin: 0 auto;
}

.repo-narrow {
  max-width: 820px;
  margin: 0 auto;
}

.repo-intro {
  padding: 26px 0 10px;
}

.repo-category {
  padding: 28px 0 56px 0;
  border-top: 1px solid var(--border);
}

.repo-category-title {
  position: relative;
  margin: 0 0 10px;
  text-align: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.repo-category-title:after {
  content: '';
  display: block;
  width: 100%;
  max-width: 250px;
  height: 3px;
  background: var(--navy);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
}
.repo-category-desc {
  margin: 0 auto 20px;
  text-align: center;
}

.repo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  max-width: 920px;
  margin: 0 auto;
}

.repo-grid-world {
  max-width: 920px;
  margin: 0 auto;
}

.repo-card {
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}

.repo-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 14px;
}

.repo-card-link-world {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.repo-card-media {
  background: #e9e9e9;
  border-radius: 2px;
  overflow: hidden;
}

.repo-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.repo-card-img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  margin-bottom: 10px;
  display: block;
}

.repo-card-link-world .repo-card-img {
  margin-bottom: 0;
  border-radius: 0;
}

.repo-card-title {
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 6px;
  color: var(--navy);
}

.repo-card-subtitle {
  margin: 0;
  color: #444;
  font-size: 14px;
}

.repo-card-cta {
  margin-top: 8px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: #111;
  font-weight: 700;
}

.repo-card-cta-text {
  text-decoration: none;
}

.repo-card-link-world:hover .repo-card-cta-arrow {
  transform: translateX(3px);
}

.repo-card-cta-arrow {
  transition: transform 120ms ease;
}

/* World-style "inline section headings" inside CMS blocks:
   Content often uses <strong>Data</strong>, <strong>Methodology</strong>, etc. */
.repo-cms strong {
  display: block;
  margin: 22px 0 8px;
  /* font-size: 22px; */
  /* line-height: 1.2; */
}

.repo-cms ul {
  margin: 10px 0 18px 22px;
}

.repo-cms li {
  margin: 6px 0;
}

/* Make inline links look like World (underlined) */
.repo-cms a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.repo-cms a:hover {
  text-decoration-thickness: 2px;
}

/* "See all" WYSIWYG is rendered as `.program-body` */
.repo-all .program-body a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.repo-all .program-body a:hover {
  text-decoration-thickness: 2px;
}

.repo-view-tabs {
  display: flex;
  margin: 28px auto;
  max-width: 420px;
  border-bottom: 1px solid var(--border);
}

.repo-view-tab {
  flex: 1;
  position: relative;
  padding: 14px 12px 16px;
  text-align: center;
  font-size: 15px;
  line-height: 1.3;
  color: #555;
  text-decoration: none;
  transition: color 0.15s ease;
}

.repo-view-tab:hover {
  color: var(--text, #222);
}

.repo-view-tab:focus-visible {
  color: var(--text, #222);
  outline: 2px solid var(--navy);
  outline-offset: 4px;
}

.repo-view-tab.is-active {
  color: var(--text, #222);
}

.repo-view-tab.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 100%;
  height: 3px;
  background: var(--navy);
}

.repo-empty {
  text-align: center;
  color: #666;
}

/* Single */
.repo-back {
  margin: 10px 0 18px;
}

.repo-back-link {
  color: var(--navy);
  text-decoration: none;
}

.repo-tags {
  margin: 0 0 10px;
}

.repo-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  background: #eef2ff;
  color: var(--navy);
  padding: 6px 10px;
  border-radius: 999px;
}

.repo-title {
  margin: 0 0 10px;
}

.repo-subtitle {
  margin: 0 0 18px;
  color: #444;
  font-weight: 600;
}

.repo-section {
  margin: 26px 0;
}

.repo-section-title {
  margin: 0 0 12px;
}

.repo-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.repo-columns.repo-columns-2 {
  grid-template-columns: 1fr 1fr;
}

.repo-section-image-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.repo-section-image-text.repo-img-text-right .repo-img-text-img {
  order: 2;
}

.repo-section-image-text img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
}

.repo-accordion summary {
  cursor: pointer;
  font-weight: 700;
  padding: 10px 0;
}

.repo-related {
  padding-top: 24px;
  /* border-top: 1px solid var(--border); */
}

.repo-acc-item {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.repo-acc-item summary {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 400;
}

@media (max-width: 760px) {
  .repo-hero {
    min-height: 320px;
    padding: 54px 18px;
  }
  .repo-hero-title {
    font-size: 34px;
  }
  .repo-grid {
    grid-template-columns: 1fr;
  }
  .repo-card-link-world {
    grid-template-columns: 1fr;
  }
  .repo-section-image-text {
    grid-template-columns: 1fr;
  }
  .repo-columns.repo-columns-2 {
    grid-template-columns: 1fr;
  }
}

