:root {
  --grd-green-950: #06170f;
  --grd-green-900: #0b281a;
  --grd-green-800: #173a27;
  --grd-gold: #dfb44e;
  --grd-cream: #f4f0e6;
  --grd-white: #ffffff;
  --grd-ink: #172019;
  --grd-muted: #556057;
}

body.grd-page {
  margin: 0;
  background: var(--grd-cream);
  color: var(--grd-ink);
  font-family: Arial, Helvetica, sans-serif;
}

.grd-page figure {
  margin: 0;
}

.grd-page img {
  display: block;
  max-width: 100%;
}

.grd-shell {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.grd-panel {
  display: flex;
  align-items: center;
}

.grd-panel--cream {
  background: var(--grd-cream);
}

.grd-panel--white {
  background: var(--grd-white);
}

.grd-panel__inner {
  padding: 36px 0;
}

.grd-page .kh-section-title {
  font-size: clamp(2.45rem, 3.8vw, 4rem);
  line-height: 0.98;
}

.grd-page figcaption {
  color: var(--grd-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* Hero */

.grd-hero {
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
  background: var(--grd-green-950);
  color: var(--grd-white);
}

.grd-hero .kh-eyebrow {
  color: var(--kh-gold);
}

.grd-hero__image,
.grd-hero__overlay {
  position: absolute;
  inset: 0;
}

.grd-hero__image {
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.grd-hero__overlay {
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      rgba(6, 23, 15, 0.97) 0%,
      rgba(6, 23, 15, 0.88) 42%,
      rgba(6, 23, 15, 0.42) 68%,
      rgba(6, 23, 15, 0.14) 100%
    );
}

.grd-hero__content {
  padding: 44px 0;
}

.grd-hero .kh-page-title {
  max-width: 760px;
  color: var(--grd-white);
  font-size: clamp(3.4rem, 5vw, 5.4rem);
  line-height: 0.96;
}

.grd-hero__meta {
  margin: 20px 0 0;
  color: var(--grd-gold);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.grd-hero__partner {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.grd-hero__summary {
  max-width: 680px;
  margin: 18px 0 22px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.98rem;
  line-height: 1.58;
}

/* Train and send */

.grd-teaching__inner {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: clamp(26px, 3vw, 36px);
  align-items: center;
}

.grd-teaching__copy > p:last-child {
  margin: 20px 0 0;
  color: var(--grd-muted);
  line-height: 1.68;
}

.grd-teaching__media {
  display: grid;
  grid-template-columns: minmax(0, 0.625fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.grd-media-card {
  overflow: visible;
  background: transparent;
}

.grd-media-card img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(6, 23, 15, 0.16);
}

.grd-media-card figcaption {
  padding: 8px 2px 0;
  color: var(--grd-muted);
}

/* Teaching team */

.grd-team__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.grd-team__media {
  overflow: visible;
  background: transparent;
}

.grd-team__media img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(6, 23, 15, 0.16);
}

.grd-team__media figcaption {
  padding: 8px 2px 0;
  color: var(--grd-muted);
}

.grd-team__introduction {
  margin: 16px 0 0;
  color: var(--grd-muted);
  line-height: 1.55;
}

.grd-team__lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 22px;
}

.grd-team__lists section {
  padding: 20px;
  border: 1px solid rgba(148, 105, 25, 0.22);
  border-radius: 16px;
  background: #fffdf8;
}

.grd-team__lists h3 {
  margin: 0;
  color: #8b6827;
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  line-height: 1.35;
  text-transform: uppercase;
}

.grd-team__lists ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--grd-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.grd-team__lists li + li {
  margin-top: 5px;
}

/* Life of the school */

.grd-life__heading {
  max-width: 940px;
  margin-bottom: 18px;
}

.grd-life__heading > p:last-child {
  max-width: 780px;
  margin: 12px 0 0;
  color: var(--grd-muted);
  line-height: 1.55;
}

.grd-life__media {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(260px, 3fr);
  gap: 16px;
  align-items: center;
}

.grd-life__feature,
.grd-life__portrait {
  min-height: 0;
  overflow: visible;
}

.grd-life__feature img,
.grd-life__portrait img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 15px 32px rgba(6, 23, 15, 0.14);
}

.grd-life__feature figcaption,
.grd-life__portrait figcaption {
  padding: 8px 2px 0;
  color: var(--grd-muted);
}

/* Sunday */

.grd-sunday__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(44px, 6vw, 88px);
  align-items: center;
}

.grd-sunday__copy > p:not(.kh-eyebrow) {
  max-width: 670px;
  margin: 18px 0 0;
  color: var(--grd-muted);
  line-height: 1.65;
}

.grd-sunday__copy .grd-sunday__note {
  color: #7a602a;
  font-weight: 700;
}

.grd-sunday__media {
  justify-self: center;
  width: min(100%, 298px);
  overflow: visible;
  background: transparent;
}

.grd-sunday__media img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(6, 23, 15, 0.17);
}

.grd-sunday__media figcaption {
  padding: 7px 2px 0;
  color: var(--grd-muted);
  font-size: 0.66rem;
  line-height: 1.3;
}

/* Closing */

.grd-closing {
  background:
    linear-gradient(135deg, var(--grd-green-900), var(--grd-green-950));
  color: var(--grd-white);
}

.grd-closing .kh-eyebrow {
  color: var(--kh-gold);
}

.grd-closing__content {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

@media (min-width: 1000px) {
  html.kh-panel-document .grd-closing .grd-closing__content {
    width: min(1180px, calc(100% - 64px));
    margin-right: auto;
    margin-left: auto;
  }
}

.grd-closing__copy .kh-section-title {
  color: var(--grd-white);
}

.grd-closing__copy > p:last-child {
  max-width: 650px;
  margin: 17px 0 0;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.58;
}

.grd-closing__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.grd-button-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--grd-white);
}

/* Compact desktop */

@media (min-width: 1000px) and (max-height: 825px) {
  .grd-panel__inner,
  .grd-hero__content {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .grd-page .kh-section-title {
    font-size: 2.45rem;
    line-height: 1;
  }

  .grd-hero .kh-page-title {
    font-size: 3.35rem;
  }

  .grd-hero__summary {
    margin-top: 14px;
    margin-bottom: 18px;
  }

  .grd-teaching__inner,
  .grd-team__inner,
  .grd-sunday__inner {
    gap: 34px;
  }

  .grd-teaching__copy > p:last-child,
  .grd-sunday__copy > p:not(.kh-eyebrow) {
    margin-top: 13px;
    line-height: 1.52;
  }

  .grd-team__lists {
    gap: 14px;
    margin-top: 14px;
  }

  .grd-team__lists section {
    padding: 14px;
  }

  .grd-team__lists ul {
    margin-top: 8px;
  }

  .grd-life__heading {
    margin-bottom: 13px;
  }

  .grd-life__media {
    width: min(100%, 960px);
    margin-right: auto;
    margin-left: auto;
  }

}

/* Very short desktop: measured for a 1417 × 640 CSS viewport */

@media (min-width: 1000px) and (max-height: 700px) {
  .grd-panel__inner,
  .grd-hero__content {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .grd-page .kh-eyebrow {
    margin-bottom: 8px;
  }

  .grd-page .kh-section-title {
    font-size: 2rem;
    line-height: 1;
  }

  .grd-hero .kh-page-title {
    font-size: 2.9rem;
  }

  .grd-hero__meta {
    margin-top: 12px;
  }

  .grd-hero__partner {
    margin-top: 5px;
  }

  .grd-hero__summary {
    max-width: 620px;
    margin-top: 10px;
    margin-bottom: 14px;
    font-size: 0.88rem;
    line-height: 1.42;
  }

  .grd-page .kh-button {
    min-height: 42px;
    padding-right: 17px;
    padding-left: 17px;
    font-size: 0.74rem;
  }

  .grd-teaching__inner,
  .grd-team__inner,
  .grd-sunday__inner {
    gap: 26px;
  }

  .grd-teaching__copy > p:last-child,
  .grd-team__introduction,
  .grd-sunday__copy > p:not(.kh-eyebrow),
  .grd-life__heading > p:last-child {
    margin-top: 9px;
    font-size: 0.86rem;
    line-height: 1.44;
  }

  .grd-teaching__media {
    gap: 12px;
  }

  .grd-media-card figcaption,
  .grd-team__media figcaption,
  .grd-sunday__media figcaption {
    padding: 8px 2px 0;
  }

  .grd-team__media {
    width: min(100%, 420px);
    justify-self: center;
  }

  .grd-team__lists {
    gap: 10px;
    margin-top: 10px;
  }

  .grd-team__lists section {
    padding: 10px 12px;
  }

  .grd-team__lists ul {
    margin-top: 5px;
    font-size: 0.78rem;
    line-height: 1.32;
  }

  .grd-team__lists li + li {
    margin-top: 2px;
  }

  .grd-life__heading {
    margin-bottom: 10px;
  }

  .grd-life__media {
    width: min(100%, 840px);
    grid-template-columns: minmax(0, 7fr) minmax(220px, 3fr);
    gap: 12px;
  }


  html.kh-panel-document .grd-closing .grd-closing__content {
    height: calc(100% - 84px);
  }

  html.kh-panel-document .grd-closing .kh-page-footer {
    flex: 0 0 84px;
    min-height: 84px;
  }

  .grd-closing__content {
    gap: 28px;
  }

  .grd-closing__copy > p:last-child {
    margin-top: 10px;
    font-size: 0.86rem;
    line-height: 1.42;
  }

  .grd-closing__actions {
    gap: 8px;
  }

  .grd-closing .kh-unified-footer__inner {
    padding: 10px 32px;
    gap: 16px 28px;
  }

  .grd-closing .kh-unified-footer__identity strong {
    font-size: 1.2rem;
  }

  .grd-closing .kh-unified-footer__identity p,
  .grd-closing .kh-unified-footer__navigation a {
    font-size: 0.76rem;
  }
}

/* Natural tablet and mobile flow */

@media (max-width: 999px) {
  .grd-panel,
  .grd-hero {
    padding: 72px 0;
  }

  .grd-hero {
    min-height: 720px;
  }

  .grd-panel__inner,
  .grd-hero__content {
    padding-top: 0;
    padding-bottom: 0;
  }

  .grd-teaching__inner,
  .grd-team__inner,
  .grd-sunday__inner,
  .grd-closing__content {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .grd-teaching__media {
    max-width: 760px;
  }

  .grd-team__media {
    max-width: 760px;
  }

  .grd-life__media {
    height: auto;
    grid-template-columns: 1fr;
  }

  .grd-life__feature img,
  .grd-life__portrait img {
    height: auto;
  }


  .grd-sunday__media {
    justify-self: start;
  }

  .grd-sunday__media img {
    width: 100%;
    height: auto;
  }

  .grd-closing {
    padding-top: 64px;
  }

  .grd-closing__content {
    width: min(1180px, calc(100% - 40px));
    padding-bottom: 64px;
  }

  .grd-closing__actions {
    grid-template-columns: 1fr;
    max-width: 620px;
  }
}

@media (max-width: 620px) {
  .grd-shell,
  .grd-closing__content {
    width: calc(100% - 32px);
  }

  .grd-panel,
  .grd-hero {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .grd-hero {
    min-height: 760px;
    align-items: flex-end;
  }

  .grd-hero__overlay {
    background:
      linear-gradient(
        0deg,
        rgba(6, 23, 15, 0.98) 0%,
        rgba(6, 23, 15, 0.88) 64%,
        rgba(6, 23, 15, 0.2) 100%
      );
  }

  .grd-hero .kh-page-title {
    font-size: clamp(2.7rem, 13vw, 3.8rem);
  }

  .grd-teaching__media,
  .grd-team__lists {
    grid-template-columns: 1fr;
  }

  .grd-media-card--portrait {
    max-width: 420px;
  }

  .grd-page .kh-button {
    width: 100%;
  }
}
