/* UK about page (about.asp), from includes/about-uk.inc, with js/about.js. Builds on
   css/subjects.css (the .sj tokens, sections, buttons and closing panel), but has its
   own brand blue hero, so the page does not look like the subject and county pages. */

/* A heading must not land under the sticky bars after an in-page jump. Below 768px
   nothing is sticky. From 768px there is the 72px menu bar and this page's own bar of
   links (about 58px): css/topmenu.css already gives the page 84px of scroll padding
   there, so the margin further down only adds the rest. */
.ab [id]
{
  scroll-margin-top: 16px;
}

.ab-head
{
  max-width: 760px;
  margin-bottom: 24px;
}

.ab-head p
{
  margin-top: 10px;
  color: var(--sj-ink);
  font-size: 17px;
  line-height: 1.55;
}

.ab-head--center
{
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.ab h3
{
  font-size: 18px;
  line-height: 1.3;
}

.ab-more
{
  margin-top: 26px;
}

.ab-more--center
{
  text-align: center;
}

/* Hero --------------------------------------------------------------------- */

/* It must stay a plain block: the shared menu's items hang below the blue bar, and a
   new formatting context here would be squeezed beside them. z-index keeps it under
   the menu's dropdowns. */
.ab-hero
{
  position: relative;
  z-index: 0;
  padding: 18px 0 30px;
  background:
    radial-gradient(900px 420px at 88% -12%, rgba(160, 195, 245, .45), transparent 62%),
    radial-gradient(700px 360px at -5% 112%, rgba(169, 214, 34, .12), transparent 60%),
    linear-gradient(180deg, #3a68ae, #4170b8);
  color: #f3f7fc;
}

.ab-hero .sj-crumbs a, .ab-hero .sj-crumbs span
{
  color: #f3f7fc;
}

.ab-hero .sj-crumbs a:hover
{
  color: #fff;
}

.ab-hero .sj-crumbs a + span:before
{
  color: rgba(255, 255, 255, .6);
}

.sj .ab-hero h1
{
  color: #fff;
  font-size: clamp(36px, 4.8vw, 62px);
  line-height: 1.05;
  letter-spacing: -.028em;
}

/* The lime stroke under the site's name. It is drawn behind the words and takes up
   no room. */
.ab-mark
{
  position: relative;
  z-index: 0;
  white-space: nowrap;
}

.ab-mark:before
{
  content: "";
  position: absolute;
  top: 80%;
  right: -.04em;
  bottom: 1%;
  left: -.04em;
  z-index: -1;
  border-radius: 999px;
  background: var(--sj-lime);
  transform: rotate(-.7deg);
}

.ab-hero__lead
{
  max-width: 560px;
  margin-top: 16px;
  color: #f3f7fc;
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.5;
  text-wrap: pretty;
}

.ab-hero__photo
{
  overflow: hidden;
  margin-top: 22px;
  border-radius: 20px;
  box-shadow: 0 22px 50px rgba(6, 16, 34, .32);
  aspect-ratio: 5 / 3;
}

.ab-hero__photo img
{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The four figures, along the bottom of the hero. */
.ab-stats
{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
  margin-top: 26px;
}

.ab-stats li
{
  padding-left: 14px;
  border-left: 3px solid var(--sj-lime);
}

.ab-stats strong
{
  display: block;
  color: #fff;
  font-size: clamp(24px, 2.7vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.ab-stats span
{
  display: block;
  margin-top: 4px;
  color: #f3f7fc;
  font-size: 15px;
  line-height: 1.35;
}

/* In-page links under the hero ------------------------------------------- */

.ab-jump
{
  border-bottom: 1px solid var(--sj-line);
  background: #fff;
}

.ab-jump ul
{
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}

.ab-jump ul::-webkit-scrollbar
{
  display: none;
}

.sj .ab-jump a
{
  display: block;
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--sj-ink);
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}

.sj .ab-jump a:hover, .sj .ab-jump a:focus
{
  background: var(--sj-tint);
  color: var(--sj-navy);
}

/* The part of the page being read, set by js/about.js. */
.sj .ab-jump a.is-current
{
  background: var(--sj-blue);
  color: #fff;
}

/* Icons */
.ab-ico
{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--sj-tint);
}

.ab-ico svg
{
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--sj-blue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Steps: numbers joined by a dashed path --------------------------------- */

.ab-steps
{
  position: relative;
  display: grid;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ab-steps li
{
  position: relative;
  padding-left: 66px;
}

/* On a phone the path runs down the left: each step draws its own piece, from under
   its number to the next one, so nothing hangs below the last. */
.ab-steps li:not(:last-child):before
{
  content: "";
  position: absolute;
  top: 56px;
  bottom: -20px;
  left: 23px;
  border-left: 2px dashed #b4c5df;
}

.ab-steps__n
{
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sj-lime);
  box-shadow: 0 0 0 6px #fff;
  color: var(--sj-navy);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}

.sj .ab-steps h3
{
  padding-top: 11px;
  font-size: 20px;
}

.ab-steps p, .ab-perks p
{
  margin-top: 8px;
  color: var(--sj-ink);
  line-height: 1.55;
}

/* Reasons: one panel, divided by fine lines ------------------------------ */

.ab-perks
{
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--sj-line);
  box-shadow: 0 10px 28px rgba(31, 51, 80, .07);
}

.ab-perks li
{
  padding: 24px 22px;
  background: #fff;
}

.ab-perks h3
{
  margin-top: 14px;
}

/* Online lessons: one blue panel ------------------------------------------ */

.ab-online
{
  display: grid;
  gap: 28px;
  padding: 26px 22px;
  border-radius: 24px;
  background: var(--sj-surface);
  color: #f3f7fc;
}

.sj .ab-online h2
{
  color: #fff;
}

.ab-online__copy p
{
  margin-top: 12px;
  color: #f3f7fc;
  font-size: 17px;
  line-height: 1.55;
}

.ab-online__copy .ab-more
{
  margin-top: 24px;
}

.ab-online__shot
{
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 22px 50px rgba(6, 16, 34, .34);
}

.ab-online__shot img
{
  display: block;
  width: 100%;
  height: auto;
}

/* Questions ---------------------------------------------------------------- */

/* Without the script, the three groups follow each other under their headings. */
.ab-faq__panel + .ab-faq__panel
{
  margin-top: 28px;
}

.sj .ab-faq__group
{
  margin: 0 0 10px;
  color: var(--sj-slate);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* With it, one group shows at a time and the buttons name it. */
.ab-js .ab-faq__panel
{
  margin-top: 0;
}

.ab-js .ab-faq__panel:not(.is-on)
{
  display: none;
}

.ab-js .ab-faq__group
{
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  white-space: nowrap;
}

.ab-faq__switch
{
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -15px 18px;
  padding: 2px 15px;
  scrollbar-width: none;
}

.ab-faq__switch::-webkit-scrollbar
{
  display: none;
}

.sj .ab-faq__switch button
{
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid var(--sj-line);
  border-radius: 999px;
  background: #fff;
  color: var(--sj-ink);
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}

.sj .ab-faq__switch button:hover
{
  border-color: var(--sj-blue);
}

.sj .ab-faq__switch button:focus-visible
{
  outline: 3px solid var(--sj-blue);
  outline-offset: 2px;
}

.sj .ab-faq__switch button[aria-pressed="true"]
{
  border-color: var(--sj-blue);
  background: var(--sj-blue);
  color: #fff;
}

/* How many questions the group has. */
.ab-faq__switch span
{
  min-width: 26px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--sj-tint);
  color: var(--sj-slate);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.ab-faq__switch button[aria-pressed="true"] span
{
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

.ab-q
{
  border: 1px solid var(--sj-line);
  border-radius: 14px;
  background: #fff;
}

.ab-q + .ab-q
{
  margin-top: 8px;
}

.ab-q summary
{
  position: relative;
  display: block;
  padding: 16px 52px 16px 18px;
  color: var(--sj-navy);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.ab-q summary::-webkit-details-marker
{
  display: none;
}

/* Plus that turns into a minus */
.ab-q summary:before, .ab-q summary:after
{
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 14px;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--sj-blue);
}

.ab-q summary:after
{
  transform: rotate(90deg);
}

.ab-q[open] summary:after
{
  transform: rotate(0deg);
}

.ab-q summary:hover
{
  color: var(--sj-blue);
}

.ab-q summary:focus-visible
{
  border-radius: 14px;
  outline: 3px solid var(--sj-blue);
  outline-offset: 2px;
}

.ab-q[open]
{
  border-color: #b9c9e2;
  box-shadow: 0 8px 22px rgba(31, 51, 80, .07);
}

.ab-q__a
{
  padding: 0 18px 18px;
}

.ab-q__a p
{
  color: var(--sj-ink);
  line-height: 1.6;
}

.ab-q__a p + p
{
  margin-top: 10px;
}

.sj .ab-q__a a
{
  text-decoration: underline;
}

/* Country sites ------------------------------------------------------------ */

.ab-world
{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sj .ab-world a
{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--sj-tint);
  color: var(--sj-navy);
  font-weight: 600;
  line-height: 1.3;
  transition: border-color .15s, background-color .15s, color .15s;
}

.sj .ab-world a:hover, .sj .ab-world a:focus
{
  border-color: var(--sj-blue);
  background: #fff;
  color: var(--sj-blue);
}

.ab-flag
{
  flex: none;
  width: 24px;
  height: 18px;
  border-radius: 3px;
}

/* Closing panel: two actions */
.ab-cta__actions
{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}

.sj a.ab-cta__alt
{
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sj a.ab-cta__alt:hover, .sj a.ab-cta__alt:focus
{
  color: var(--sj-lime);
}

@media (min-width: 600px)
{
  .ab-perks
  {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ab-world
  {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px)
{
  .ab [id]
  {
    scroll-margin-top: 56px;
  }

  .ab-hero
  {
    padding: 22px 0 40px;
  }

  /* Words beside the photo. */
  .ab-hero__grid
  {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    align-items: center;
    gap: 32px;
    margin-top: 18px;
  }

  .ab-hero__photo
  {
    margin-top: 0;
  }

  .ab-stats
  {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .24);
  }

  .ab-stats li
  {
    padding-left: 16px;
  }

  /* The links stay in view under the menu bar, which is 72px tall and also sticky
     from this width (css/topmenu.css). */
  .ab-jump
  {
    position: sticky;
    z-index: 40;
    top: 72px;
    box-shadow: 0 6px 16px rgba(31, 51, 80, .05);
  }

  /* Across the page: the path runs from the first number to the last. */
  .ab-steps
  {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-top: 36px;
  }

  .ab-steps:before
  {
    content: "";
    position: absolute;
    top: 27px;
    right: calc(33.333% - 49px);
    left: 28px;
    border-top: 2px dashed #b4c5df;
  }

  .ab-steps li:not(:last-child):before
  {
    content: none;
  }

  .ab-steps li
  {
    padding-left: 0;
  }

  .ab-steps__n
  {
    position: static;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    box-shadow: 0 0 0 8px #fff;
    font-size: 24px;
  }

  .sj .ab-steps h3
  {
    padding-top: 0;
  }

  .ab-more--center
  {
    margin-top: 36px;
  }

  .ab-perks li
  {
    padding: 28px 26px;
  }

  .ab-online
  {
    padding: 40px 36px;
  }

  .ab-world
  {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 992px)
{
  .ab-hero
  {
    padding-bottom: 44px;
  }

  .ab-hero__grid
  {
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    gap: 56px;
  }

  /* The introduction stays beside the panel while it scrolls past. 154px is the two
     sticky bars plus a gap. */
  .ab-why, .ab-faq
  {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
    gap: 56px;
  }

  .ab-why .ab-head, .ab-faq__side
  {
    position: sticky;
    top: 154px;
    margin-bottom: 0;
  }

  .ab-online
  {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 52px;
    padding: 52px 56px;
    border-radius: 28px;
  }

  /* The group buttons become a list down the side. */
  .ab-faq__switch
  {
    flex-direction: column;
    gap: 6px;
    overflow: visible;
    margin: 22px 0 0;
    padding: 0;
  }

  .sj .ab-faq__switch button
  {
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    border-color: transparent;
    border-radius: 14px;
    background: none;
    font-size: 16.5px;
    white-space: normal;
  }

  .sj .ab-faq__switch button:hover
  {
    border-color: transparent;
    background: rgba(255, 255, 255, .7);
  }

  .sj .ab-faq__switch button[aria-pressed="true"]
  {
    border-color: transparent;
    background: #fff;
    box-shadow: 0 8px 22px rgba(31, 51, 80, .08);
    color: var(--sj-blue);
  }

  .ab-faq__switch span
  {
    background: #fff;
  }

  .ab-faq__switch button[aria-pressed="true"] span
  {
    background: var(--sj-tint);
    color: var(--sj-blue);
  }

  .ab-world
  {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 1200px)
{
  .ab-hero__grid
  {
    grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
    gap: 64px;
  }
}

@media (prefers-reduced-motion: no-preference)
{
  .ab-q summary:after
  {
    transition: transform .2s ease;
  }
}

@media print
{
  .ab-jump, .ab-faq__switch
  {
    display: none;
  }

  .ab-js .ab-faq__panel:not(.is-on)
  {
    display: block;
  }

  .ab-q__a
  {
    display: block;
  }

  .ab-hero
  {
    background: none;
    color: inherit;
  }
}
