/* The blue menu bar and the mobile menu, restyled, on every UK page; also the
   header Login / Register / Account buttons and the footer, in the brand blue (sections at the end). This changes
   styling only: the markup and the scripts behind includes/menu.inc stay as they
   are, including the category hover that swaps the Popular Subjects list.

   Linked at the end of includes/code-css.inc, so it loads after css/menu.css.
   Below 768px the bar is replaced by the mobile menu, which js/jquery.mmenu.min.js
   builds from a copy of the same links.

   Figtree: Copyright 2022 The Figtree Project Authors, SIL Open Font License 1.1. */

@font-face
{
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(/fonts/figtree.woff2) format("woff2");
}

@media (min-width: 768px)
{
  /* In-page links stop below the bar, not behind it. */
  html
  {
    scroll-padding-top: 84px;
  }

  /* 72px, about as tall as the old bar (73px); it was 56px until 2026-11-10. Sticky
     things on other pages sit below it: policy.css, resource-uk.css, about.css,
     member-steps-uk.css and enquiry-view-uk.css use 72px plus a gap. */
  div#menublock
  {
    position: sticky;
    z-index: 60;
    top: 0;
    height: 72px;
    background: #7aa3e6;
    box-shadow: 0 2px 12px rgba(31, 51, 80, .22);
  }

  /* Same widths as .container, so the links line up with the page below. */
  div#menublockmain
  {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding: 0 15px;
    font-size: 16px;
  }

  #menu
  {
    position: relative;
    font-family: "Figtree", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  }

  #menu > ul
  {
    display: flex;
    width: auto;
    height: 72px;
    margin: 0 0 0 -14px;
    padding: 0;
  }

  #menu > ul > li
  {
    z-index: auto;
    float: none;
    width: auto !important;
    margin: 0;
  }

  /* The wide panel is placed against the whole bar, not against its own link,
     so that it can never run off the right of the screen. */
  #menu > ul > li.menu-students
  {
    position: static;
  }

  #menu > ul > li > a,
  #menu > ul > li > .fullmenuwidth > a
  {
    position: relative;
    top: auto;
    display: flex;
    align-items: center;
    gap: 7px;
    box-sizing: border-box;
    width: auto !important;
    height: 72px;
    margin: 0;
    padding: 0 14px;
    background: none;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    text-align: left;
    white-space: nowrap;
    transition: background-color .15s;
  }

  #menu > ul > li:hover > a,
  #menu > ul > li:hover > .fullmenuwidth > a,
  #menu > ul > li:focus-within > .fullmenuwidth > a
  {
    background: #6e92cd;
  }

  /* The old arrow image and the empty mobile icon spans. */
  #menu > ul > li > a > span,
  #menu > ul > li > .fullmenuwidth > a > span,
  #menu > ul > li > .fullmenuwidth > a > img
  {
    display: none;
  }

  /* White line that grows under the link. */
  #menu > ul > li > a:before,
  #menu > ul > li > .fullmenuwidth > a:before
  {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 17px;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease-out;
  }

  #menu > ul > li:hover > a:before,
  #menu > ul > li:hover > .fullmenuwidth > a:before,
  #menu > ul > li:focus-within > .fullmenuwidth > a:before
  {
    transform: none;
  }

  /* Chevron, which turns over when the panel opens. */
  #menu > ul > li > .fullmenuwidth > a:after
  {
    content: "";
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s, margin-top .2s;
  }

  #menu > ul > li:hover > .fullmenuwidth > a:after,
  #menu > ul > li:focus-within > .fullmenuwidth > a:after
  {
    margin-top: 3px;
    transform: rotate(-135deg);
  }

  /* Panels. */
  #menu .menu-students-sub,
  #menu .menu-tutors-sub
  {
    position: absolute;
    z-index: 10;
    top: 100%;
    left: 0;
    display: none;
    box-sizing: border-box;
    width: 250px;
    height: auto;
    padding: 18px 22px 20px;
    border: 0;
    border-radius: 0 0 16px 16px;
    background: #fff;
    box-shadow: 0 20px 44px rgba(31, 51, 80, .24);
  }

  #menu .menu-students-sub
  {
    left: 14px;
    width: 700px;
    max-width: calc(100% - 14px);
  }

  #menu .menuitemex:hover .menu-students-sub,
  #menu .menuitemex:hover .menu-tutors-sub,
  #menu .menuitemex:focus-within .menu-students-sub,
  #menu .menuitemex:focus-within .menu-tutors-sub,
  #menu .menuitemex.over .menu-students-sub,
  #menu .menuitemex.over .menu-tutors-sub
  {
    display: block;
  }

  #tutormenucontent
  {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 22px;
    margin: 0;
  }

  #formattutormenu1, #formattutormenu2, #formattutormenu3
  {
    position: static;
    display: block;
    width: auto;
  }

  #menu .menuitemex ul
  {
    width: auto;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  #menu .menuitemex li
  {
    height: auto;
    margin: 0;
    list-style: none;
  }

  #menu .menuitemex li a,
  #menu .menuitemex li a:visited
  {
    position: static;
    top: auto;
    display: block;
    width: auto;
    height: auto;
    margin: 0 -9px;
    padding: 6px 9px;
    border: 0;
    border-radius: 8px;
    color: #2a3a52;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
  }

  #menu .menuitemex li a:hover,
  #menu .menuitemex li a:focus
  {
    width: auto;
    padding: 6px 9px;
    background: #eef3fb;
    color: #3a68ae;
  }

  /* Column headings are links to nowhere in the markup, so they just act as text. */
  #menu .menuitemex li a.formattutormenu1title,
  #menu .menuitemex li a.formattutormenu2title,
  #menu .menuitemex li a.formattutormenu3title
  {
    margin: 0 0 6px;
    padding: 0 0 8px;
    border-bottom: 1px solid #dbe4f1;
    border-radius: 0;
    background: none;
    color: #56657b !important;
    font-size: 12.5px !important;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    pointer-events: none;
  }

  #menu > ul > li > a:focus-visible,
  #menu > ul > li > .fullmenuwidth > a:focus-visible
  {
    outline: 2px solid #fff;
    outline-offset: -5px;
  }

  #menu .menuitemex li a:focus-visible
  {
    outline: 2px solid #3a68ae;
    outline-offset: -2px;
  }
}

@media (min-width: 1200px)
{
  div#menublockmain
  {
    width: 1170px;
  }
}

/* Mobile menu: the same blue, with readable headings and bigger rows. */
@media (max-width: 767px)
{
  #my-mobile-menu
  {
    font-family: "Figtree", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
  }

  #my-mobile-menu .mm-navbar > *,
  #my-mobile-menu .mm-navbar a
  {
    color: #fff;
    font-weight: 700;
  }

  #my-mobile-menu .mm-navbar .mm-btn:before,
  #my-mobile-menu .mm-navbar .mm-btn:after,
  #my-mobile-menu .mm-listview li .mm-next:after
  {
    border-color: #fff;
  }

  /* The line between a link and its arrow matches the lines between rows. */
  #my-mobile-menu .mm-listview .mm-next:before
  {
    border-color: #6e92cf;
  }

  #my-mobile-menu .mm-listview li > a:not(.mm-next),
  #my-mobile-menu .mm-listview li > .fullmenuwidth
  {
    padding-top: 13px;
    padding-bottom: 13px;
    color: #fff;
    font-weight: 500;
  }
}

@keyframes topmenu-fade
{
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (min-width: 768px)
{
  #menu .menuitemex:hover .menu-students-sub,
  #menu .menuitemex:hover .menu-tutors-sub,
  #menu .menuitemex:focus-within .menu-students-sub,
  #menu .menuitemex:focus-within .menu-tutors-sub
  {
    animation: topmenu-fade .16s ease-out;
  }
}

@media (min-width: 768px) and (prefers-reduced-motion: no-preference)
{
  @keyframes topmenu-open
  {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
  }

  #menu .menuitemex:hover .menu-students-sub,
  #menu .menuitemex:hover .menu-tutors-sub,
  #menu .menuitemex:focus-within .menu-students-sub,
  #menu .menuitemex:focus-within .menu-tutors-sub
  {
    animation: topmenu-open .18s ease-out;
  }
}

/* ---------- Header: Login, Register and the Account menu ----------
   includes/header.inc is shared with the other countries. On the UK site its desktop
   Login is a link to /login.asp (the old sign-in box is gone); the rest is its old
   markup, restyled here:
   - a.headerlogin.mobno: desktop Login; .headerlogin.mobyes: phone Login (a link too);
   - .headerreg: Register;
   - .headerlogin.dropdown: the logged-in Account button. js/components.js opens its
     menu on click by adding .visible. */

header.pageheader .headerlogin,
header.pageheader .headerreg
{
  box-sizing: border-box;
  height: 44px;
  margin-left: 12px;
  padding: 0 18px;
  border: 1.5px solid #c6d3e5;
  border-radius: 999px;
  background: #fff;
  color: #1f3350;
  font-family: "Figtree", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}

header.pageheader .headerlogin .icon,
header.pageheader .headerreg .icon
{
  top: 0;
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

header.pageheader .headerlogin > .icon
{
  color: #3a68ae;
}

header.pageheader .headerlogin:hover,
header.pageheader .headerlogin.visible
{
  border-color: #3a68ae;
  border-radius: 999px;
  background: #f0f4fb;
  color: #1f3350;
}

/* Account: a small arrow, as it opens a menu */
header.pageheader .headerlogin.dropdown::after,
header.pageheader .headerlogin.dropdown.visible::after
{
  content: "";
  position: static;
  z-index: auto;
  width: 10px;
  height: 10px;
  margin-left: 8px;
  border: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a68ae' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center / 10px;
  transition: transform .15s;
}

header.pageheader .headerlogin.dropdown.visible::after
{
  transform: rotate(180deg);
}

/* Register: the main action, solid brand blue */
header.pageheader .headerreg
{
  position: relative;
  border-color: #3a68ae;
  background: #3a68ae;
  color: #fff;
}

header.pageheader .headerreg .icon
{
  color: #fff;
}

header.pageheader .headerreg:hover
{
  border-color: #2f5797;
  background: #2f5797;
  color: #fff;
  box-shadow: 0 6px 16px rgba(58, 104, 174, .28);
}

header.pageheader a.headerlogin:focus-visible,
header.pageheader .headerreg:focus-visible,
header.pageheader .headerlogin.mobyes a:focus-visible,
header.pageheader .accountmenu a:focus-visible
{
  outline: 3px solid rgba(58, 104, 174, .4);
  outline-offset: 3px;
}

/* The Account menu: a card under the button */
header.pageheader .headerlogin.dropdown .dropdownmenu
{
  top: calc(100% + 10px);
  right: -1.5px;
  left: auto;
  box-sizing: border-box;
  min-width: 230px;
  padding: 8px;
  overflow: visible;
  border: 1px solid #dbe4f1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(31, 51, 80, .16);
  transform: none;
  font-weight: 400;
}

header.pageheader .accountmenu
{
  display: flex;
  flex-direction: column;
}

header.pageheader .accountmenu a
{
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  margin: 0;
  padding: 0 12px;
  border-radius: 10px;
  color: #1f3350;
  font-family: "Figtree", sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

header.pageheader .accountmenu a:hover
{
  background: #f0f4fb;
  color: #1f3350;
}

header.pageheader .accountmenu a .icon,
header.pageheader .accountmenu a img
{
  flex-shrink: 0;
  width: 18px;
  height: 18px !important;
  margin: 0 !important;
  color: #3a68ae;
}

/* Log Out, set apart by a thin line */
header.pageheader .accountmenu a:last-child
{
  margin-top: 9px;
}

header.pageheader .accountmenu a:last-child::before
{
  content: "";
  position: absolute;
  top: -5px;
  right: 12px;
  left: 12px;
  height: 1px;
  background: #dbe4f1;
}

/* Unread enquiries */
header.pageheader .accountmenu .badge
{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  padding: 0 7px;
  border-radius: 999px;
  background: #a9d622;
  color: #1f3350;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

@media (max-width: 767px)
{
  header.pageheader .headerlogin,
  header.pageheader .headerreg
  {
    height: 40px;
    margin-left: 8px;
  }

  /* The whole pill is the link (the old padding left most of it unclickable) */
  header.pageheader .headerlogin.mobyes
  {
    padding: 0 !important;
  }

  header.pageheader .headerlogin.mobyes a
  {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 16px;
    border-radius: 999px;
    color: #1f3350 !important;
    text-decoration: none;
  }

  /* Register and Account: circles with the icon */
  header.pageheader .headerreg,
  header.pageheader .headerlogin.dropdown
  {
    flex-shrink: 0;
    justify-content: center;
    width: 40px;
    padding: 0;
  }

  header.pageheader .headerreg .icon,
  header.pageheader .headerlogin.dropdown > .icon
  {
    left: 0;
    margin: 0;
  }

  header.pageheader .headerlogin.dropdown::after,
  header.pageheader .headerlogin.dropdown.visible::after
  {
    display: none;
  }

  /* "Register" stays readable to screen readers (it was display: none, so the
     link had no name on phones) */
  header.pageheader .headerreg .mobno
  {
    display: block !important;
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
  }

  header.pageheader .headermenutoggle
  {
    margin-left: 12px;
  }
}

/* ---------- Footer, in the brand blue ----------
   The homepage's main footer (footer.pagefooter in default.asp) and the bottom bar
   on every page (includes/footer.inc). Both are shared markup, so this restyles it
   only; the text and links are unchanged. Brand blue as on the redesigned pages (the
   owner's no-navy rule, 2026-11-08); the bar is a darker shade so the two read apart.
   Text is white or #eef3fb, which keeps 4.5:1 or better on both blues. */

footer.pagefooter
{
  padding-top: 56px;
  background:
    radial-gradient(620px 300px at 100% 0%, rgba(160, 195, 245, .3), transparent 65%),
    linear-gradient(110deg, #3a68ae 0%, #4170b8 100%);
  color: #eef3fb;
  font-family: "Figtree", sans-serif;
  font-size: 15px;
}

/* Two <br> in default.asp left a blank band above the bar */
footer.pagefooter > br
{
  display: none;
}

footer.pagefooter h2
{
  width: auto;
  margin: 0 0 12px;
  color: #fff;
  font-family: "Figtree", sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}

footer.pagefooter .footercol
{
  margin-bottom: 32px;
}

footer.pagefooter .footercol a,
footer.pagefooter .footerlang a
{
  color: #eef3fb;
  text-decoration: none;
}

footer.pagefooter .footercol a
{
  margin-top: 0;
  padding: 5px 0;
}

footer.pagefooter .footercol a:hover,
footer.pagefooter .footerlang a:hover
{
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* "View all subjects" and the others: white and bold (lime on blue was hard to read) */
footer.pagefooter .footercol a.all
{
  margin-top: 8px;
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer.pagefooter .footercol a.all:hover
{
  color: #fff;
  text-decoration-thickness: 2px;
}

footer.pagefooter .socials a
{
  width: 44px;
  height: 44px;
  margin-top: 0;
  margin-right: 10px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, .55);
  color: #fff;
  transition: background-color .15s, border-color .15s;
}

footer.pagefooter .socials a:hover
{
  border-color: #fff;
  background: rgba(255, 255, 255, .14);
}

footer.pagefooter .socials .icon
{
  width: 18px;
  height: 18px;
  color: #fff;
  fill: currentColor;
}

footer.pagefooter .footerlang
{
  margin: 8px 0 0;
  padding: 28px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

footer.pagefooter .footerlang a + a
{
  margin-top: 14px;
}

footer.pagefooter a:focus-visible
{
  border-radius: 4px;
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ---------- The bottom bar (includes/footer.inc), on every page ---------- */
footer .footerbottom
{
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  background: #2f5797;
  color: #dbe5f3;
  font-family: "Figtree", sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

footer .footerbottom .container
{
  font-size: inherit;
}

footer .footerbottom .footerleft
{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 40px;
  width: 100%;
}

footer .footerbottom .footercopyright a
{
  color: inherit;
  text-decoration: none;
}

/* Links: spaced out instead of the "|" lines, which were left hanging at line ends */
footer .footerbottom .footerlinks
{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

footer .footerbottom .footerlinks a
{
  margin: 0;
  padding: 0;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

footer .footerbottom .footerlinks a::after
{
  content: none;
}

footer .footerbottom a:hover
{
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer .footerbottom a:focus-visible
{
  border-radius: 4px;
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Phones: the links in two columns with room to tap, then the copyright line */
@media (max-width: 767px)
{
  footer.pagefooter
  {
    padding-top: 40px;
  }

  footer .footerbottom
  {
    padding: 24px 0 28px;
    font-size: 14px;
  }

  footer .footerbottom .footerleft
  {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  footer .footerbottom .footerlinks
  {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
    order: -1;
  }

  footer .footerbottom .footerlinks a
  {
    padding: 8px 0;
    font-size: 15px;
  }

  footer .footerbottom .footercopyright
  {
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .2);
    font-size: 13px;
  }
}

/* ---------- Phone menu: one set of white line icons ----------
   The old ones mixed filled SVGs, two PNGs (Log In, Register) and double arrows
   (.memicon-more) for the three sections. Same 26 x 19 box as before. Top-level panel
   only (.mm-panel:first-child): the member submenu keeps its own icons. */
@media (max-width: 767px)
{
  #my-mobile-menu .mm-panel:first-child #memicon-home,
  #my-mobile-menu .mm-panel:first-child #memicon-foundme,
  #my-mobile-menu .mm-panel:first-child #memicon-login,
  #my-mobile-menu .mm-panel:first-child #memicon-register,
  #my-mobile-menu .mm-panel:first-child #memicon-mail,
  #my-mobile-menu .mm-panel:first-child #memicon-logout,
  #my-mobile-menu .mm-panel:first-child .menuitemex .memicon-more
  {
    display: inline-block;
    width: 26px;
    height: 19px;
    margin-right: 6px;
    background-position: 0 50%;
    background-repeat: no-repeat;
    background-size: 19px 19px;
    flex: none;
    position: static;
    margin-top: 0 !important; /* css/menu.css: 4px !important and -9px below */
    margin-bottom: 0;
  }

  /* Icon and label in a row: the old markup has stray spaces before some labels */
  #my-mobile-menu .mm-panel:first-child .mm-listview li > a:not(.mm-next):has(> #memicon-home, > #memicon-foundme, > #memicon-login, > #memicon-register, > #memicon-mail, > #memicon-logout),
  #my-mobile-menu .mm-panel:first-child .mm-listview li > .fullmenuwidth > a:has(> .memicon-more)
  {
    display: flex;
    align-items: center;
  }

  #my-mobile-menu .mm-panel:first-child #memicon-home
  {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E");
  }

  #my-mobile-menu .mm-panel:first-child #memicon-foundme
  {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E");
  }

  #my-mobile-menu .mm-panel:first-child #memicon-login
  {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h5v16h-5'/%3E%3Cpath d='M3 12h11'/%3E%3Cpath d='M10 8l4 4-4 4'/%3E%3C/svg%3E");
  }

  #my-mobile-menu .mm-panel:first-child #memicon-register
  {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2 20c1-4 4-6 7-6s6 2 7 6'/%3E%3Cpath d='M19 8v6M16 11h6'/%3E%3C/svg%3E");
  }

  #my-mobile-menu .mm-panel:first-child #memicon-mail
  {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E");
  }

  /* For Students: a mortar board */
  #my-mobile-menu .mm-panel:first-child .menu-students .memicon-more
  {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9l10-5 10 5-10 5z'/%3E%3Cpath d='M6 11v5c3 2 9 2 12 0v-5'/%3E%3C/svg%3E");
  }

  /* For Tutors: a board on an easel */
  #my-mobile-menu .mm-panel:first-child .menu-tutors .memicon-more
  {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='11' rx='1'/%3E%3Cpath d='M8 20l4-5 4 5'/%3E%3C/svg%3E");
  }

  /* Resources (the second .menu-tutors item): a book */
  #my-mobile-menu .mm-panel:first-child .menu-tutors ~ .menu-tutors .memicon-more
  {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h11a3 3 0 0 1 3 3v13H8a3 3 0 0 1-3-3z'/%3E%3Cpath d='M5 17a3 3 0 0 1 3-3h11'/%3E%3C/svg%3E");
  }

  /* Logged in: Members Area, My Enquiries and Log Out get matching icons; their
     rows keep the old layout (My Enquiries has a positioned NEW count). */
  #my-mobile-menu .mm-panel:first-child .menu-members > .fullmenuwidth > a > #memicon-fans,
  #my-mobile-menu .mm-panel:first-child li.homebutton > a > #memicon-enquiries,
  #my-mobile-menu .mm-panel:first-child #memicon-logout
  {
    background-repeat: no-repeat;
    background-size: 19px 19px;
  }

  #my-mobile-menu .mm-panel:first-child .menu-members > .fullmenuwidth > a > #memicon-fans
  {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23274d8d%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Ccircle cx=%2712%27 cy=%278%27 r=%274%27/%3E%3Cpath d=%27M4 21c1-4 4-6 8-6s7 2 8 6%27/%3E%3C/svg%3E");
  }

  #my-mobile-menu .mm-panel:first-child li.homebutton > a > #memicon-enquiries
  {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27white%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M4 5h16v11H9l-5 4z%27/%3E%3C/svg%3E");
  }

  #my-mobile-menu .mm-panel:first-child #memicon-logout
  {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27white%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M10 4H5v16h5%27/%3E%3Cpath d=%27M21 12H10%27/%3E%3Cpath d=%27M17 8l4 4-4 4%27/%3E%3C/svg%3E");
  }

}
