/* ---------------------------------------------------------------------------
   Additions beyond the design mocks.
   base.css and page-*.css are generated from the mocks — keep edits here so a
   regeneration never overwrites them.
   -------------------------------------------------------------------------- */

/* --- Featured images -------------------------------------------------------
   The mocks only ever show empty placeholders, so these rules cover the case
   where a real image exists. */
.media-placeholder.has-image,
.lh-visual.has-image,
.avatar-placeholder.has-image {
  border-style: solid;
  border-color: transparent;
  padding: 0;
  overflow: hidden;
}
.media-placeholder img,
.lh-visual img,
.avatar-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-placeholder.has-image img { border-radius: 20px; }
.avatar-placeholder.has-image img { border-radius: inherit; }

/* Empty placeholder: the bare dashed box reads as a broken image, so it gets
   the same tinted wash the Learning Hub cards use. */
.media-placeholder:not(.has-image) {
  background:
    radial-gradient(circle at 30% 25%, rgba(122,0,198,0.22), transparent 65%),
    var(--surface);
}
.media-placeholder:not(.has-image) svg { opacity: 0.35; }

/* --- Pagination ------------------------------------------------------------
   Not in the mocks; built from the same tokens as .btn / .filter-pill. */
.agi-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 56px;
}
.agi-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.agi-pagination .page-numbers:hover { border-color: var(--border-strong); color: var(--text); }
.agi-pagination .page-numbers.current {
  background: var(--purple-soft);
  color: #c583f2;
  border-color: rgba(122,0,198,0.55);
}
.agi-pagination .page-numbers.dots {
  border-color: transparent;
  background: none;
  min-width: 24px;
  padding: 0;
}
.agi-pagination .page-numbers.prev,
.agi-pagination .page-numbers.next { font-weight: 600; }

/* --- Empty states ---------------------------------------------------------- */
.agi-empty {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.95rem;
  padding: 48px 0;
}

/* --- Simple pages ----------------------------------------------------------
   Pages with no design of their own (Privacy Policy, Terms, anything the client
   adds later). base.css carries no hero padding, so it is set here. */
.simple-head {
  position: relative;
  padding: 168px 0 56px;
  overflow: hidden;
}
@media (max-width: 860px) { .simple-head { padding: 140px 0 40px; } }

.simple-head h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 820px;
  text-wrap: balance;
}
.simple-head .simple-meta {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-top: 14px;
}

.simple-body { max-width: 720px; padding-bottom: 96px; }
.simple-body h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 44px 0 14px;
}
.simple-body h2:first-child { margin-top: 0; }
.simple-body h3 { font-size: 1.1rem; font-weight: 600; margin: 32px 0 10px; }
.simple-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 20px;
}
.simple-body ul, .simple-body ol { margin: 0 0 20px; padding-left: 22px; color: var(--text-muted); }
.simple-body li { margin-bottom: 8px; line-height: 1.7; }
.simple-body a { color: var(--purple-light, #c583f2); text-decoration: underline; }
.simple-body strong { color: var(--text); }

/* Visual slots that can carry a real image instead of the design's mark. */
.tech-showcase-visual.has-image,
.hero-visual.has-image,
.page-hero-visual.has-image,
.wide-visual.has-image,
.labs-visual.has-image {
  padding: 0;
  overflow: hidden;
}
.tech-showcase-visual.has-image img,
.hero-visual.has-image img,
.page-hero-visual.has-image img,
.wide-visual.has-image img,
.labs-visual.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* Contact details behave the same on both pages: the link picks up the accent
   on hover, the surrounding text does not. */
.info-value a {
  color: inherit;
  transition: color 0.15s ease;
}
.info-value a:hover { color: var(--cyan); }
