/* Persodia repository page overrides v1.4.3 */
:root {
  --midnight: #0C223F;
  --teal: #1A7A8A;
  --text: #233142;
  --border: rgba(12, 34, 63, 0.10);
  --surface: transparent;
  --pad: 40px;
  --max: 780px;
  --item-title-weight: 800;
}

body.persodia-template-repository .p-wrap {
  max-width: calc(var(--max) + var(--pad) * 2);
  padding: 52px var(--pad) 72px;
}
body.persodia-template-repository .p-page-header { margin-bottom: 32px; }
body.persodia-template-repository .p-page-title {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--midnight);
  margin: 0 0 8px;
  line-height: 1.3;
}
body.persodia-template-repository .p-page-body p,
body.persodia-template-repository .p-page-body li {
  font-size: 0.96rem;
  line-height: 1.75;
}
body.persodia-template-repository .p-page-intro {
  font-size: 1rem;
  line-height: 1.72;
  font-weight: 600;
}
body.persodia-template-repository .p-filters {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
body.persodia-template-repository .p-filter-btn {
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  opacity: .72;
  background: none;
  border: none;
  padding: 9px 14px 11px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
body.persodia-template-repository .p-filter-btn:first-child { padding-left: 0; }
body.persodia-template-repository .p-filter-btn.active {
  color: var(--midnight);
  opacity: 1;
  border-bottom-color: var(--teal);
}
body.persodia-template-repository .p-repository-count {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  margin: 0 0 20px;
}
body.persodia-template-repository .p-repository-list { display: block; }
body.persodia-template-repository .p-item-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0 20px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  background: transparent;
}
body.persodia-template-repository .p-item-card:last-child { border-bottom: 1px solid var(--border); }
body.persodia-template-repository .p-item-thumb {
  display: block;
  width: 92px;
  aspect-ratio: 210 / 297;
  overflow: hidden;
  border-radius: 3px;
  background: var(--p-placeholder, transparent);
}
body.persodia-template-repository .p-item-thumb img,
body.persodia-template-repository .p-item-thumb-placeholder { width:100%; height:100%; display:block; }
body.persodia-template-repository .p-item-thumb img {
  object-fit: contain;
  object-position: center top;
}
body.persodia-template-repository .p-item-main { min-width: 0; }
body.persodia-template-repository .p-item-eyebrow { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
body.persodia-template-repository .p-pill {
  display:inline-block; padding:4px 7px; border-radius:2px; font-size:9px; font-weight:700;
  line-height:1; letter-spacing:.10em; text-transform:uppercase;
}
body.persodia-template-repository .p-pill-type { background: var(--midnight); color:#fff; }
body.persodia-template-repository .p-pill-status { background: rgba(12,34,63,.08); color: var(--midnight); }
body.persodia-template-repository .p-pill-new { background: var(--teal); color:#fff; }
body.persodia-template-repository .p-item-title,
body.persodia-template-repository .p-item-title a {
  margin: 0 0 9px;
  color: var(--midnight);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.38;
  font-size: .97rem;
  font-weight: var(--item-title-weight);
}
body.persodia-template-repository .p-item-title a:hover { color: var(--teal); }
.p-item-card.is-unpublished .p-item-title,
.p-item-card.is-unpublished .p-item-title-text {
  color: var(--midnight);
}
.p-item-card.is-unpublished .p-item-thumb,
.p-item-card.is-unpublished .p-item-title-text {
  cursor: default;
}

body.persodia-template-repository .p-item-intro {
  font-size: .96rem;
  line-height: 1.72;
  font-weight: 600;
  margin: 0 0 10px;
}
body.persodia-template-repository .p-item-meta-end {
  display:flex; align-items:baseline; gap:6px; flex-wrap:wrap; font-size:12px;
}
body.persodia-template-repository .p-repository-invite {
  margin-top: 24px; padding-top:24px; border-top:1px solid var(--border);
}
body.persodia-template-repository .p-repository-invite p { margin:0; line-height:1.75; }
body.persodia-template-repository .p-repository-invite a, body.persodia-template-repository .p-page-body a { color: var(--teal); }
@media (max-width: 900px) {
  :root { --pad: 28px; --max: 760px; }
}
@media (max-width: 640px) {
  :root { --pad: 18px; }
  body.persodia-template-repository .p-wrap { padding-top: 34px; padding-bottom: 52px; }
  body.persodia-template-repository .p-item-card {
    grid-template-columns: 72px 1fr; gap:0 16px; padding:18px 0;
  }
  body.persodia-template-repository .p-item-thumb { width:72px; }
  body.persodia-template-repository .p-item-title,
  body.persodia-template-repository .p-item-title a { font-size:.94rem; }
}
