/* Official Trinity palette, transcribed from the supplied RGB brand chart.
 * Tints support the layout; the five brand tokens remain exact.
 */
:root {
  --brand-yellow: #fff200;
  --brand-red: #e80008;
  --brand-cyan: #00afef;
  --brand-green: #00a055;
  --brand-black: #000000;
  --ink: #000000;
  --muted: #505050;
  --cream: #ffffff;
  --yellow: #fff200;
  --line: #dedede;
  --green: #e8f7ef;
}

/* Keep each arrow connected to the next step without ambiguous row wrapping. */
.page-admissions .steps {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 30px;
}

.steps > article {
  position: relative;
  min-width: 0;
}

.step-arrow {
  position: absolute;
  top: 27px;
  right: -29px;
  width: 28px;
  height: 20px;
  color: var(--brand-green);
  pointer-events: none;
}

/* Draw the shaft and arrowhead without font or character-encoding dependencies. */
.step-arrow::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  width: 25px;
  border-top: 3px solid currentColor;
}

.step-arrow::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 1px;
  width: 10px;
  height: 10px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: rotate(45deg);
}

@media (max-width: 1100px) {
  .page-admissions .steps {
    grid-template-columns: 1fr;
    gap: 45px;
    max-width: 700px;
    margin-inline: auto;
    text-align: left;
  }

  .steps > article {
    display: grid;
    grid-template-columns: 75px minmax(0, 1fr);
    column-gap: 24px;
    align-items: start;
  }

  .steps > article > b {
    grid-row: 1 / 3;
    margin: 0;
  }

  .steps > article > h3 {
    margin-bottom: 8px;
  }

  .steps > article > p {
    grid-column: 2;
    margin: 0;
  }

  .step-arrow {
    top: auto;
    right: auto;
    bottom: -34px;
    left: 23px;
    transform: rotate(90deg);
  }
}

body,
header,
nav,
.enquiry-form,
.activity-card,
.study-card {
  background: #ffffff;
  color: var(--brand-black);
}

p,
.download small,
.hero-note,
.photo-badge span {
  color: var(--muted);
}

h1,
h2,
h3,
em,
.school-mark strong,
.study-card h3,
.activity-category {
  color: var(--brand-black);
}

.eyebrow {
  color: var(--brand-red);
}

.header-contact,
.school-mark,
.download,
.check-list li,
.class-detail,
details,
th,
td {
  border-color: var(--line);
}

nav a[aria-current='page']::after {
  background: var(--brand-red);
}

.button,
.button.yellow,
.nav-cta {
  background: var(--brand-yellow);
  border-color: var(--brand-yellow);
  color: var(--brand-black);
}

.button:hover,
.button.yellow:hover,
.enquiry-form .button:hover {
  background: var(--brand-black);
  border-color: var(--brand-black);
  color: #ffffff;
}

.text-link {
  border-color: var(--brand-cyan);
}

.text-link:hover,
.download:hover {
  color: var(--brand-red);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline-color: var(--brand-black);
  box-shadow: 0 0 0 6px var(--brand-yellow);
}

/* Neutral image shading keeps bright brand colours distinct and text legible. */
.wide-hero,
.page-banner {
  background: var(--brand-black);
}

.wide-hero::after {
  background: linear-gradient(90deg, #000000cc, #00000066 55%, #00000026);
}

.page-banner::after {
  background: #00000080;
}

.hero-inner h1,
.hero-inner p,
.page-banner h1,
.breadcrumbs,
.breadcrumbs a {
  color: #ffffff;
}

.outline-light {
  background: transparent;
  color: #ffffff;
  border-color: var(--brand-yellow);
}

.outline-light:hover {
  background: var(--brand-yellow);
  color: var(--brand-black);
  border-color: var(--brand-yellow);
}

.photo-badge {
  background: var(--brand-yellow);
}

.photo-badge span {
  color: var(--brand-black);
}

.soft-section,
.welcome-cards article,
.note {
  background: #f5f5f5;
}

.environment-band,
.calendar-band {
  /* Keep the photograph faint beneath a 70% opaque brand-green tint.
   * The dark layer supports readable white text without fading the content.
   */
  background-color: var(--brand-green);
  background-image:
    linear-gradient(#00000066, #00000066), linear-gradient(#00a055b3, #00a055b3),
    url('photos/classroom.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #ffffff;
}

.environment-band h2,
.calendar-band h2,
.calendar-band h3,
.environment-band .editorial p,
.calendar-band p,
.calendar-grid a {
  color: #ffffff;
}

.environment-band .eyebrow {
  color: var(--brand-yellow);
}

.environment-band .outline-light,
.calendar-band .outline-light {
  color: var(--brand-black);
  background: var(--brand-yellow);
}

.learning-lines li {
  border-color: var(--brand-yellow);
}

.environment-grid article {
  background: #ffffff;
  border-color: #dedede;
}

.environment-grid article:nth-child(3) {
  background: var(--brand-cyan);
}

.environment-grid article:nth-child(3),
.environment-grid article:nth-child(3) p {
  color: var(--brand-black);
}

.calendar-grid article,
.calendar-grid article:first-child {
  border-color: #ffffff66;
  background: #0000001a;
}

.calendar-grid article:first-child {
  border-color: var(--brand-yellow);
}

.calendar-grid article > span {
  color: var(--brand-yellow);
}

/* One uninterrupted photograph spans the programme cards and term dates. */
.programmes-calendar-background {
  background-color: var(--brand-green);
  background-image:
    linear-gradient(#00000066, #00000066), linear-gradient(#00a055b3, #00a055b3),
    url('photos/classroom.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.programmes-calendar-background .stages-section {
  background: linear-gradient(#ffffff 67%, transparent 67%);
}

.programmes-calendar-background .calendar-band {
  background: transparent;
}

.study-card:nth-child(4n + 1) {
  border-bottom: 5px solid var(--brand-yellow);
}

.study-card:nth-child(4n + 2) {
  border-bottom: 5px solid var(--brand-red);
}

.study-card:nth-child(4n + 3) {
  border-bottom: 5px solid var(--brand-cyan);
}

.study-card:nth-child(4n) {
  border-bottom: 5px solid var(--brand-green);
}

.mission-mosaic article,
.transport-panel,
.quote-panel,
.date-grid article {
  background: #e8f7ef;
  color: var(--brand-black);
}

.mission-mosaic p {
  color: var(--brand-black);
}

.steps b,
.contact-detail-grid article > span {
  background: var(--brand-cyan);
  color: var(--brand-black);
}

.check-list li::before {
  color: var(--brand-black);
}

.note {
  border-color: var(--brand-yellow);
}

.crystal,
.feature-icon.blue {
  background: #def5fd;
  color: var(--brand-black);
}

.ruby,
.feature-icon.coral {
  background: #ffe7e8;
  color: var(--brand-black);
}

.pearl,
.feature-icon {
  background: #fffbc2;
  color: var(--brand-black);
}

.emerald,
.feature-icon.green,
.activity-clubs li {
  background: #e8f7ef;
  color: var(--brand-black);
}

.activity-card {
  border-color: var(--line);
}

.activity-card-body {
  border-top-color: var(--brand-yellow);
}

.activity-card:nth-child(3n + 2) .activity-card-body {
  border-top-color: var(--brand-cyan);
}

.activity-card:nth-child(3n) .activity-card-body {
  border-top-color: var(--brand-red);
}

.gallery-filters button {
  background: #f0f0f0;
  color: var(--brand-black);
}

.gallery-filters button[aria-pressed='true'],
.gallery-card,
.gallery-card:hover {
  background: var(--brand-cyan);
  color: var(--brand-black);
}

.gallery-card small {
  color: var(--brand-black);
}

.gallery-card:nth-child(3n + 2) {
  background: var(--brand-yellow);
}

.gallery-card:nth-child(3n) {
  background: var(--brand-green);
}

.enquiry-form .button {
  background: var(--brand-yellow);
  border-color: var(--brand-yellow);
  color: var(--brand-black);
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  border-color: #b8b8b8;
}

thead {
  background: var(--brand-cyan);
  color: var(--brand-black);
}

thead small {
  color: var(--brand-black);
}

tbody tr:nth-child(even) {
  background: #f5f5f5;
}

.cta {
  background: var(--brand-cyan);
  color: var(--brand-black);
}

.cta .eyebrow,
.cta h2,
.cta p {
  color: var(--brand-black);
}

footer {
  background: var(--brand-red);
  color: #ffffff;
}

.footer-grid p,
.footer-grid h3,
.footer-bottom {
  color: #ffffff;
}

.footer-grid h3 {
  font-weight: 700;
}

.footer-bottom {
  border-color: #ffffff40;
}

.whatsapp {
  background: var(--brand-green);
  color: var(--brand-black);
  border: 1px solid #00000040;
}
