/* Shared homepage type and spacing. Component illustrations retain their own scale. */
.tg-home-page {
  --home-font-body: THICCCBOI, Arial, sans-serif;
  --home-font-heading: "Space Grotesk", THICCCBOI, sans-serif;
  --home-title-size: clamp(30px, 2.8vw, 44px);
  --home-hero-size: clamp(44px, 4.5vw, 64px);
  --home-body-size: 16px;
  --home-lead-size: 18px;
  --home-section-space: clamp(28px, 3vw, 44px);
  --home-content-gap: 24px;
  --home-gutter: 32px;
  font-family: var(--home-font-body);
  font-size: var(--home-body-size);
  line-height: 1.6;
}

.tg-home-page :is(.tgvg, .tgm, .tgwatch, .tgsubjects) {
  font-family: var(--home-font-body);
}

.tg-home-page :is(.tgvg, .tgm, .tgwatch, .tgsubjects) :is(h1, h2, h3, h4),
.tg-home-page .tg-founder :is(h2, h3),
.tg-home-page .tg-institutions h2,
.tg-home-page .tg-marketing-footer :is(h2, .tg-footer-wordmark) {
  font-family: var(--home-font-heading);
  font-weight: 700;
}

/* Align section edges independently of the theme's changing Bootstrap containers. */
.tg-home-page :is(.tgvg__container, .tgm__container, .tgwatch__inner),
.tg-home-page :is(.tgsubjects, .tg-founder, .tg-institutions, .tg-marketing-footer) > .container {
  width: min(calc(100% - var(--home-gutter) * 2), 1280px);
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 0;
}

.tg-home-page main > :is(.tgvg, .tgwatch, .tgm-flow, .tgm-formats, .tgm-trust) {
  padding-block: var(--home-section-space);
  padding-inline: 0;
}

.tg-home-page :is(.tgsubjects, .tg-founder) > .tg-home-section,
.tg-home-page .tg-institutions__container {
  padding-block: var(--home-section-space);
}

.tg-home-page .tg-marketing-footer > .container {
  /* The template's shared Bootstrap padding utilities are !important. */
  padding-block: var(--home-section-space) !important;
}

.tg-home-page .tgvg .tgvg__message h1 {
  font-size: var(--home-hero-size);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.tg-home-page .tgm .tgm__headline,
.tg-home-page .tgwatch h2,
.tg-home-page .tgsubjects .tgsubjects__title,
.tg-home-page .tg-founder .tg-founder__copy .display-4,
.tg-home-page .tg-institutions__heading h2 {
  margin: 0;
  font-size: var(--home-title-size);
  line-height: 1.18;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.tg-home-page :is(.tgm__section-header, .tgm-trust__header, .tgwatch__header, .tgsubjects__header, .tg-institutions__heading) {
  margin-bottom: var(--home-content-gap);
}

.tg-home-page :is(.tgvg__eyebrow, .tgm__eyebrow, .tgwatch__eyebrow, .tgsubjects__eyebrow),
.tg-home-page .tg-founder__copy .tg-eyebrow,
.tg-home-page .tg-institutions__heading .tg-eyebrow {
  margin: 0 0 8px;
  font-family: var(--home-font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
}

.tg-home-page .tgvg .tgvg__intro,
.tg-home-page .tgm .tgm__lead,
.tg-home-page .tgsubjects .tgsubjects__intro,
.tg-home-page .tg-founder__copy .lead {
  font-size: var(--home-lead-size);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: normal;
}

.tg-home-page .tgvg .tgvg__intro { margin: 20px 0; }
.tg-home-page .tgm .tgm__lead { margin-top: 12px; }
.tg-home-page .tgvg .tgvg__actions { gap: 16px 24px; margin-bottom: 24px; }
.tg-home-page .tgvg .tgvg__sources { gap: 16px; }
.tg-home-page .tgvg .tgvg__source { padding: 16px; }
.tg-home-page .tgvg .tgvg__source h3 { font-size: 16px; line-height: 1.35; margin-bottom: 8px; }
.tg-home-page .tgvg .tgvg__source p { font-size: 14px; line-height: 1.6; }

.tg-home-page .tgm .tgm-flow__step h3,
.tg-home-page .tgm .tgm-formats__card h3 {
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.tg-home-page .tgm .tgm-flow__step p,
.tg-home-page .tgm .tgm-formats__card p,
.tg-home-page .tg-founder__copy > p:not(.lead):not(.tg-eyebrow) {
  font-size: var(--home-body-size);
  line-height: 1.6;
}

.tg-home-page .tgm-flow__steps,
.tg-home-page .tgm-formats__grid { gap: 24px; }
.tg-home-page .tgm-trust__header { margin-bottom: 20px; }
.tg-home-page .tgm .tgm-trust__hint { margin: 8px 0 0; }
.tg-home-page .tgm-trust__diagram { margin: 0 auto 16px; }
.tg-home-page .tgm .tgm-trust__footnote { margin-top: 0; }
.tg-home-page .tgm .tgm-trust__item h3 { margin: 0; font-size: 17px; line-height: 1.4; letter-spacing: -.02em; }
.tg-home-page .tgm .tgm-formats__card h3 { margin: 16px 0 8px; }
.tg-home-page .tgm .tgm-flow__step h3 { margin: 16px 0 8px; }
.tg-home-page .tgm .tgm__small-note { margin-top: 24px; font-size: 14px; }
.tg-home-page .tgm-formats__other { margin-top: 24px; }
.tg-home-page .tgm-formats__other > span:first-child { font-size: 14px; }

.tg-home-page .tgsubjects__label { font-size: 16px; }
.tg-home-page .tgsubjects__footer { margin-top: 24px; }
.tg-home-page .tgsubjects__footer p { font-size: 14px; line-height: 1.6; }

.tg-home-page .tg-founder__layout { max-width: none; gap: 48px; }
.tg-home-page .tg-founder .tg-founder__copy .display-4 { margin-bottom: 24px; }
.tg-home-page .tg-founder__copy .lead { margin-bottom: 16px; }
.tg-home-page .tg-founder__copy > p:not(.lead):not(.tg-eyebrow) { margin: 0 0 24px; }
.tg-home-page .tg-founder__actions { font-size: 16px; }
.tg-home-page .tg-founder__portrait figcaption { gap: 4px; padding: 16px; }
.tg-home-page .tg-founder__portrait figcaption span { font-size: 13px; line-height: 1.5; }

/* Match the video library to the homepage's heading, body and secondary type. */
.tg-home-page .tgwatch__intro {font-size:var(--home-lead-size);line-height:1.6;max-width:380px;}
.tg-home-page .tgwatch h3 { font-size: 20px; line-height: 1.35; }
.tg-home-page .tgwatch__chapter-copy strong,
.tg-home-page .tgwatch__play-copy strong {font-size:16px;line-height:1.4;}
.tg-home-page .tgwatch__chapter-copy strong {font-family:var(--home-font-heading);}
.tg-home-page .tgwatch__chapter-copy strong,
.tg-home-page .tgwatch__play-copy strong { font-weight: 700; }
.tg-home-page .tgwatch__film-details p,
.tg-home-page .tgwatch__panel-intro p,
.tg-home-page .tgwatch__forthcoming p {font-size:var(--home-body-size);line-height:1.6;}
.tg-home-page .tgwatch__panel-intro h4,
.tg-home-page .tgwatch__forthcoming h4 {font-size:16px;line-height:1.4;}
.tg-home-page .tgwatch__chapter-copy small,
.tg-home-page .tgwatch__play-copy small,
.tg-home-page .tgwatch__playlist-footer,
.tg-home-page .tgwatch__playlist-footer a {font-size:14px;line-height:1.5;}
.tg-home-page .tgwatch__tab {font-size:14px;line-height:1.4;min-height:44px;white-space:normal;}
.tg-home-page .tgwatch__chapter {min-height:72px;}
.tg-home-page .tgwatch__playlist { padding: 24px 16px; }
.tg-home-page .tgwatch__film-channel,
.tg-home-page .tgwatch__film-mode,
.tg-home-page .tgwatch__back,
.tg-home-page .tgwatch__now-label,
.tg-home-page .tgwatch__runtime,
.tg-home-page .tgwatch__library-label,
.tg-home-page .tgwatch__group-label,
.tg-home-page .tgwatch__chapter-time,
.tg-home-page .tgwatch__forthcoming-badge,
.tg-home-page .tgwatch__soon-badge {font-size:12px;line-height:1.4;}
.tg-home-page .tgwatch__chapter-num {font-family:var(--home-font-body);font-size:14px;font-weight:700;}
.tg-home-page .tgwatch__unavailable p {font-size:var(--home-body-size);line-height:1.6;}
.tg-home-page .tgwatch__unavailable small {font-size:14px;line-height:1.5;}
.tg-home-page .tgwatch__chapter-group:last-child,
.tg-home-page .tgwatch__forthcoming-list {margin-bottom:18px;}

.tg-home-page .btn,
.tg-home-page .tgvg .tgvg__actions .btn,
.tg-home-page .tgvg .tgvg__demo-link {
  font-family: var(--home-font-body);
  font-size: 16px;
  line-height: 1.5;
}
.tg-home-page .btn { min-height: 48px; }
.tg-home-page .tg-site-nav .nav-link { font-size: 16px; }
.tg-home-page .tg-marketing-footer { font-size: 16px; line-height: 1.6; }
.tg-home-page .tg-marketing-footer .widget-title { font-size: 18px; }
.tg-home-page .tg-marketing-footer .tg-footer-wordmark { font-size: 24px; }

.tg-home-page #tg-marketing-preferences {
  max-width: calc(100% - 32px);
  min-height: 44px;
  padding: 10px 12px;
  font: 700 13px/1.4 var(--home-font-body);
}

@media (max-width: 780px) {
  .tg-home-page { --home-gutter: 18px; --home-content-gap: 20px; }
  .tg-home-page .tg-founder__layout { gap: 24px; }
  .tg-home-page .tgwatch__playlist { padding: 20px 12px; }
  .tg-home-page .tgwatch__unavailable {padding:20px;gap:10px;}
  .tg-home-page .tgwatch__coming-icon {display:none;}
}
@media (max-width:480px) {
  .tg-home-page .tgwatch__unavailable {padding:12px;gap:8px;}
  .tg-home-page .tgwatch__tab[data-tgwatch-tab="start"] {flex-grow:.95;}
  .tg-home-page .tgwatch__tab[data-tgwatch-tab="d2l"] {flex-grow:1.25;}
  .tg-home-page .tgwatch__tab[data-tgwatch-tab="blackboard"] {flex-grow:1.2;}
}

/* Arabic reading order also applies to the lower-page illustrative content. */
html[lang="ar"] .tg-home-page :is(.tgm, .tgwatch, .tgwatch__chapter, .tgwatch__play-copy, .tgm-trust__node, .tgm-flow__source, .tgm-flow__paper-row, .tgm-flow__draft) { text-align:start; }
html[lang="ar"] .tg-home-page :is(.tgwatch__film-mode, .tgwatch__back) { margin-left:0; margin-inline-start:auto; text-align:start; }
html[lang="ar"] .tg-home-page .tgwatch__back span { padding-left:0; padding-inline-start:4px; }
html[lang="ar"] .tg-home-page .tgwatch__play { left:auto; inset-inline-start:20px; }
html[lang="ar"] .tg-home-page .tgm-flow__art { height:auto; min-height:180px; padding:20px; }
html[lang="ar"] .tg-home-page :is(.tgm-flow__source, .tgm-flow__draft > span, .tgm-flow__review > span:last-child) { font-size:14px; line-height:1.6; }
html[lang="ar"] .tg-home-page .tgm-flow__paper-row { font-size:16px; line-height:1.6; }
html[lang="ar"] .tg-home-page .tgm-flow__review strong { font-size:16px; line-height:1.6; }
html[lang="ar"] .tg-home-page :is(.tgm-formats__format-tag, .tgm-formats__file-preview--sheet span) { font-size:14px; line-height:1.5; }
html[lang="ar"] .tg-home-page .tgm-formats__card-top { height:auto; min-height:36px; flex-wrap:wrap; }
html[lang="ar"] .tg-home-page .tgm-formats__file-preview--code { direction:ltr; unicode-bidi:isolate; text-align:left; }
html[lang="ar"] .tg-home-page :is(.tgwatch__chapter-arrow, .tgwatch__playlist-footer a > span, .tgm__link-arrow) { display:inline-block; transform:scaleX(-1); }
html[lang="ar"] .tg-home-page .tgwatch__library-label { font-size:15px; line-height:1.6; }
html[lang="ar"] .tg-home-page .tgm .tgm-trust__website span { font-size:14px; line-height:1.5; }
html[lang="ar"] .tg-home-page .tgm-trust__tooltip { font-size:15px; line-height:1.6; }
html[lang="ar"] .tg-home-page .tgm .tgm-trust__footnote { font-size:16px; line-height:1.75; }
@media (min-width:1001px) {
  html[lang="ar"] .tg-home-page .tgm-trust__diagram { grid-template-rows:repeat(3,minmax(160px,auto)); }
  html[lang="ar"] .tg-home-page .tgm-trust__node { height:auto; min-height:160px; }
}
