/* Terra Learning: page shell and Tutor LMS adjustments. Loaded after site.css. */



body.terra-theme {
  font-family: Outfit, sans-serif;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Generic page shell for WordPress pages (privacy, certificate verification, etc.) */
.page-shell {
  padding: 56px 6vw 88px;
  background: var(--sand);
  min-height: calc(100vh - 160px);
}
.page-shell > .page-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px clamp(20px, 4vw, 44px);
  background: var(--paper);
  border: 1px solid var(--line);
}
.page-shell h1.page-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.page-shell .entry-content { line-height: 1.6; font-size: 1.05rem; }
.page-shell .entry-content img { max-width: 100%; height: auto; }

/* ---- Tutor LMS: type and colour ---- */
body.terra-theme .tutor-wrap,
body.terra-theme [class^="tutor-"],
body.terra-theme [class*=" tutor-"] {
  font-family: Outfit, sans-serif;
}
body.terra-theme {
  --tutor-color-primary: #121114;
  --tutor-color-primary-hover: #2a2a2e;
  --tutor-body-color: #121114;
}

/* Course page sits on the sand background like the catalog */
body.terra-theme.single-courses .tutor-wrap,
body.terra-theme.single-courses #tutor-single-course-wrapper {
  background: transparent;
}
body.terra-theme.single-courses .terra-main { background: var(--sand); padding: 40px 0 72px; }
body.terra-theme.single-courses .tutor-course-details-page {
  background: transparent;
}
body.terra-theme .tutor-course-details-title,
body.terra-theme .tutor-course-details-page h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
}
body.terra-theme .tutor-course-thumbnail img,
body.terra-theme .tutor-course-thumbnail .tutor-ratio img {
  object-fit: cover;
}

/* Black pill buttons, matching the Terra site */
body.terra-theme .tutor-btn.tutor-btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-weight: 650;
}
body.terra-theme .tutor-btn.tutor-btn-primary:hover,
body.terra-theme .tutor-btn.tutor-btn-primary:focus {
  background: #2a2a2e;
  border-color: #2a2a2e;
  color: #fff;
}
body.terra-theme .tutor-btn.tutor-btn-outline-primary {
  border-color: var(--ink);
  color: var(--ink);
  border-radius: 999px;
}
body.terra-theme .tutor-btn.tutor-btn-outline-primary:hover {
  background: var(--ink);
  color: #fff;
}

/* Curriculum accordion: quieter links */
body.terra-theme .tutor-accordion-item-header.is-active { color: var(--ink); }
body.terra-theme .tutor-course-content-list-item-title a { text-decoration: none; }
body.terra-theme .tutor-course-content-list-item-title a:hover { text-decoration: underline; }

/* Site footer spacing below Tutor content */
body.terra-theme .site-footer { margin-top: 0; }

/* Keep the footer at the bottom on short pages */
body.terra-theme { display: flex; flex-direction: column; min-height: 100vh; }
body.terra-theme > .terra-main { flex: 1 0 auto; display: flex; flex-direction: column; }
body.terra-theme > .terra-main > * { flex: 1 0 auto; }
