/*
 * What this school changes about the design it was given.
 *
 * The files beside this one are the design exactly as it arrived, byte for
 * byte, so that a new drop of it can replace them without losing anything.
 * Anything the school decides differently goes here instead, and is loaded
 * last so it wins.
 */

/*
 * The top bar is two colours: a blue block across the left, drawn as a
 * ::before on the bar itself, and the school's pink behind the address and
 * telephone on the right. The join between them was a straight vertical cut.
 *
 * Every other edge in this design is the same lopsided pill — the Exam
 * Records button, the event cards, the photographs — so the join is one now
 * too. The radius is the button's, and the bar being shorter than 100px the
 * browser halves it into a clean semicircle. Only the right side is rounded:
 * the left runs off the edge of the screen, where a curve would show a
 * wedge of pink in the corner.
 */
.header-top::before {
  border-radius: 0 50px 50px 0;
}

/*
 * Reading and keyboard use (docs/verifications/21-readiness-fixes.md).
 *
 * The design sets small text in its blue (#00A3E0) and its grey (#6E7788) on
 * white and on the pale section background, where neither reaches the 4.5:1
 * that small text needs to be read by everyone: 2.6 to 2.9 for the blue, 4.1
 * for the grey on the pale background. The colours themselves are the
 * school's and stay; where they are used for words, a darker shade of the same
 * hue is used instead. Blocks, borders, buttons and icons keep the original.
 */
:root {
  --theme-color2-text: color-mix(in srgb, var(--theme-color2) 58%, #000);
  --body-text-color: #586173;
}

.site-title-tagline,
.site-title span,
.breadcrumb-menu .active,
.blog-item-meta a:hover,
a.theme-color2-text {
  color: var(--theme-color2-text);
}

/* Where the keyboard is, on every link, button and field. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--theme-color);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Someone who has asked their device for less motion gets the page still. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .wow { visibility: visible !important; opacity: 1 !important; }
}

/*
 * White words on the school's blue, and the blue as words on white, are 2.9:1.
 * On a blue block the words go dark instead of white, which keeps the blue
 * the school chose; blue words on white use the darker shade above.
 */
.app-page .kt-btn.kt-btn-primary,
.app-page .kt-btn.kt-btn-primary:hover,
.about-experience b {
  color: var(--color-dark) !important;
}

.about-phone .number span {
  color: var(--theme-color2-text);
}

/* The design's form labels are #999 on white (2.8:1). */
.app-page label,
.app-page label span {
  color: var(--color-dark);
}

/* The count on the chosen album: white on a tint of the pink was 3.5:1. */
.spc-album-chip.is-active .count {
  background: var(--color-white);
  color: var(--color-dark);
}
