/* ==========================================================================
   IST Migration - tablet and phone layer
   Load LAST (after css/style.css, css1/responsive.css, custom.css, updates.css)
   Breakpoints:  desktop >= 1200 (untouched) | laptop/tablet landscape 992-1199
                 tablet 768-991 | phone <= 767 | small phone <= 400
   ========================================================================== */

/* ---------- Desktop and laptop: show the site at 80% (same as browser zoom 80%) ----------
   To change the size edit the number (0.9 = 90%); delete this block to go back to 100%.
   Tablets and phones (under 992px) are not scaled. */
@media (min-width: 992px) { html { zoom: 0.8; } }

/* Phone / tablet layout comes from the original css1/responsive.css (restored); this file only adds desktop styling and the extra components. */

.yt-embed { position: relative; }
.yt-embed iframe { display: block; }
.yt-embed .yt-bar { position: absolute; right: 14px; bottom: 14px; margin: 0; z-index: 3; }
.yt-bar .yt-channel { display: inline-flex; align-items: center; gap: 9px; background: #c4302b; color: #fff !important; border-radius: 999px; padding: 8px 18px 8px 12px; font-weight: 700; font-size: 14px; line-height: 1.2; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.yt-bar .yt-channel:hover { background: #a02420; }
.yt-bar .yt-logo { flex: 0 0 auto; }
@media (max-width: 480px) { .yt-embed .yt-bar { right: 8px; bottom: 8px; } .yt-bar .yt-channel { font-size: 12px; padding: 6px 12px 6px 8px; } .yt-bar .yt-logo { width: 26px; height: 18px; } }

/* Memberships logos on the home pages: one centred row, equal height, even spacing */
.membership-logos { display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: clamp(16px, 4vw, 64px); padding: 14px 0 24px; }
.membership-logos img { height: clamp(57px, 10.4vw, 130px); width: auto; max-width: 24%; object-fit: contain; flex: 0 1 auto; }

/* ---------- Page body: a slightly darker grey background ----------
   To change the grey edit the colour below; delete this block to go back to the original. */
body, #page-wrapper, .page, section#content, #content { background-color: #EDEFF1 !important; }
section[style*="#f4f4f4"], [style*="background-color:#f4f4f4"] { background-color: #EDEFF1 !important; }
/* the white "memberships" band stays white, as on the live site */
.row[style*="background-color:#FFFFFF"], .row[style*="background-color:#ffffff"] { background-color: #FFFFFF !important; }

/* Memberships band: thin white strip, just taller than the heading and the logos */
.row[style*="background-color:#FFFFFF"] > .container > br { display: none; }
.row[style*="background-color:#FFFFFF"] > .container { padding-top: 14px; padding-bottom: 6px; }
.row[style*="background-color:#FFFFFF"] h3 { margin: 0 0 4px; }
.membership-logos { padding: 4px 0 8px; }

/* ---------- Buttons: same rounded (pill) look as the slider buttons, everywhere ---------- */
a.button, .button, a.btn, .btn, button[type="submit"], input[type="submit"], input[type="button"] {
  border-radius: 999px !important; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0,0,0,.18); transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
a.button:hover, .button:hover, a.btn:hover, .btn:hover, button[type="submit"]:hover, input[type="submit"]:hover {
  transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.24);
}
a.button:not(.btn-small):not(.yellow):not(.dull-blue), .btn, button[type="submit"], input[type="submit"] { padding-left: 28px; padding-right: 28px; }
/* small bar button (Code of Conduct) keeps its height, gets rounded ends */
.topnav a.button.yellow { padding: 0 20px; line-height: 30px; box-shadow: none; transform: none; }

/* ---------- Footer: remove the excess empty space at the bottom ---------- */
#footer .footer-wrapper { padding-bottom: 6px !important; }
#footer .row + br, #footer .row + br + br { display: none; }            /* two blank line breaks under the columns */
#footer iframe[src*="facebook.com/plugins/page"] { height: 430px; display: block; }   /* was 500px: that made the footer taller than its text */
#footer .bottom { margin-top: 0; }
#footer { margin-bottom: 36px !important; }                              /* just enough clearance for the fixed call bar */
@media (max-width: 767px) { #footer { margin-bottom: 0 !important; } }

/* ---------- Footer: same width as the page body (desktop) ---------- */
@media (min-width: 992px) {
  /* footer edges match the page body text (measured: body text sits ~14.5% in from the left and ~14% from the right) */
  #footer .footer-wrapper > .container { width: auto !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; padding-left: calc(14.5% - 12px) !important; padding-right: 14% !important; }
  #footer .footer-wrapper > .container > .row { display: flex !important; flex-wrap: nowrap !important; justify-content: space-between; align-items: flex-start; margin-left: 0 !important; margin-right: 0 !important; }
  #footer .footer-wrapper > .container > .row > [class*="col-"] { float: none !important; width: auto !important; max-width: none !important; }
  #footer .footer-wrapper > .container > .row > :nth-child(1) { flex: 1.2 1 0 !important; min-width: 0; padding-right: 40px; }
  #footer .footer-wrapper > .container > .row > :nth-child(2) { flex: 1 1 0 !important; min-width: 0; }
  #footer .footer-wrapper > .container > .row > :nth-child(3) { flex: 0 0 400px !important; width: 400px !important; max-width: 400px !important; margin-left: auto; padding-left: 0; padding-right: 0; }
  #footer .footer-wrapper > .container > .row > :nth-child(3) iframe { display: block; margin-left: auto; }
}

/* ---------- Grey "like this page" bar: Read more button on the right, linking to the Facebook page ---------- */
div[style*="background-color:#999999"] { position: relative; }
.fb-readmore { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); margin: 0; white-space: nowrap; z-index: 2; display: inline-block; }
@media (max-width: 575px) { .fb-readmore { position: static; transform: none; display: inline-block; margin: 0 0 14px 15px; } }
/* grey bar: text and Read more button on one line, vertically centred, bigger button */
div[style*="background-color:#999999"]:has(.fb-readmore) { display: flex !important; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 28px !important; }
div[style*="background-color:#999999"]:has(.fb-readmore) br { display: none; }
div[style*="background-color:#999999"]:has(.fb-readmore) > div { float: none !important; width: auto !important; max-width: none !important; padding: 0 !important; margin: 0 !important; flex: 1 1 auto; text-align: left !important; }
div[style*="background-color:#999999"]:has(.fb-readmore) > div:has(.fb-readmore) { flex: 0 0 auto; text-align: right !important; }
div[style*="background-color:#999999"]:has(.fb-readmore) p { margin: 0 !important; font-size: 1.15em; }
a.fb-readmore { position: static !important; transform: none !important; flex: 0 0 auto; margin: 0 !important;
  display: inline-flex !important; align-items: center; justify-content: center; box-sizing: border-box;
  height: 32px !important; min-height: 0 !important; line-height: 32px !important; padding: 0 31px !important; text-indent: 0 !important;
  font-size: 12px !important; letter-spacing: .04em; white-space: nowrap !important;
  color: #fff !important; text-decoration: none !important; }
a.fb-readmore img { display: none !important; }
a.fb-readmore > * { line-height: 32px; }
a.fb-readmore:hover { transform: translateY(-2px) !important; }
@media (max-width: 575px) { div[style*="background-color:#999999"]:has(.fb-readmore) { flex-wrap: wrap; } }


@media (max-width: 1199px) {
  /* grey "like this page" bar keeps text + button side by side (wraps on small screens) */
  #content div[style*="background-color:#999999"]:has(.fb-readmore) { flex-wrap: wrap; }
  #content div[style*="background-color:#999999"]:has(.fb-readmore) > div { width: auto !important; flex: 1 1 240px; }
  #content div[style*="background-color:#999999"]:has(.fb-readmore) > div:has(.fb-readmore) { flex: 0 0 auto; }
}


/* Read more button must stay visible on phones and tablets too (below the text when space is tight) */
a.fb-readmore, a.button.fb-readmore, a.btn-small.fb-readmore { display: inline-flex !important; visibility: visible !important; opacity: 1 !important; width: auto !important; height: 32px !important; overflow: visible !important; clip: auto !important; }
div[style*="background-color:#999999"]:has(.fb-readmore) { height: auto !important; min-height: 0 !important; overflow: visible !important; }
div[style*="background-color:#999999"]:has(.fb-readmore) > div:has(.fb-readmore) { display: block !important; visibility: visible !important; height: auto !important; overflow: visible !important; opacity: 1 !important; }
@media (max-width: 767px) {
  div[style*="background-color:#999999"]:has(.fb-readmore) { flex-wrap: wrap !important; padding: 14px 16px !important; }
  div[style*="background-color:#999999"]:has(.fb-readmore) > div { flex: 1 1 100% !important; width: 100% !important; text-align: left !important; }
  div[style*="background-color:#999999"]:has(.fb-readmore) > div:has(.fb-readmore) { flex: 0 0 auto !important; width: auto !important; margin-top: 10px !important; }
}

/* Phones: grey bar = centred text with the button directly underneath, compact and balanced */
@media (max-width: 767px) {
  div[style*="background-color:#999999"]:has(.fb-readmore) { flex-direction: column !important; flex-wrap: nowrap !important; align-items: center !important; justify-content: center !important; gap: 10px !important; padding: 14px 16px !important; text-align: center !important; }
  div[style*="background-color:#999999"]:has(.fb-readmore) > div,
  div[style*="background-color:#999999"]:has(.fb-readmore) > div:has(.fb-readmore) { flex: 0 0 auto !important; width: 100% !important; margin: 0 !important; padding: 0 !important; text-align: center !important; }
  div[style*="background-color:#999999"]:has(.fb-readmore) p { margin: 0 !important; padding: 0 !important; font-size: 15px !important; line-height: 1.45 !important; text-align: center !important; }
  div[style*="background-color:#999999"]:has(.fb-readmore) br { display: none !important; }
  a.fb-readmore { height: 30px !important; line-height: 30px !important; font-size: 12px !important; padding: 0 26px !important; margin: 0 auto !important; }
}

/* Phones: no black strip at the very bottom of the footer; copyright stays readable above the fixed call bar */
@media (max-width: 767px) {
  #footer .bottom { background: #EDEFF1 !important; padding: 8px 0 62px !important; margin: 0 !important; }
  #footer .bottom .container { padding-top: 0 !important; padding-bottom: 0 !important; }
  #footer .bottom h5, #footer .bottom h5 a, #footer .bottom h5 font, #footer .bottom a, #footer .bottom font { color: #555 !important; }
  #footer .bottom .logo { float: none !important; text-align: center !important; margin: 2px 0 !important; }
  #footer { margin-bottom: 0 !important; padding-bottom: 0 !important; }
  .page, #page-wrapper, body { background-color: #EDEFF1; }
}

/* Desktop / tablet: same as phones - no black strip at the bottom of the footer */
@media (min-width: 768px) {
  #footer .bottom { background: #EDEFF1 !important; padding: 8px 0 54px !important; margin: 0 !important; }
  #footer .bottom .container { padding-top: 0 !important; padding-bottom: 0 !important; }
  #footer .bottom h5, #footer .bottom h5 a, #footer .bottom h5 font, #footer .bottom a, #footer .bottom font { color: #555 !important; }
  #footer { margin-bottom: 0 !important; padding-bottom: 0 !important; }
}

/* Footer copyright line must never be hidden behind the fixed phone-number bar */
#footer .bottom { height: auto !important; min-height: 0 !important; overflow: visible !important; line-height: 1.5; }
#footer .bottom .logo { padding: 4px 0; }
body { padding-bottom: 96px !important; }
@media (max-width: 767px) { body { padding-bottom: 110px !important; } }

/* Trim the empty space under the copyright text: just enough room to clear the fixed phone-number bar */
#footer .bottom { padding-bottom: 4px !important; }
body { padding-bottom: 56px !important; }
@media (max-width: 767px) { #footer .bottom { padding-bottom: 4px !important; } body { padding-bottom: 50px !important; } }

/* Final footer spacing: copyright fully visible above the fixed phone-number bar, with only a small gap */
#footer .bottom { padding-bottom: 8px !important; }
body { padding-bottom: 80px !important; }
@media (max-width: 767px) { #footer .bottom { padding-bottom: 8px !important; } body { padding-bottom: 78px !important; } }

/* Copyright line: 10px more room under the text, plus a spacer so the fixed call bar can never cover it */
#footer .bottom { padding-bottom: 18px !important; }
#footer::after { content: ""; display: block; height: 60px; background: #EDEFF1; }

/* Final: the spacer inside the footer is the only bottom space (copyright ~10px above the call bar) */
body { padding-bottom: 0 !important; }
@media (max-width: 767px) { body { padding-bottom: 0 !important; } }

/* Phones: language selector sits on the same black bar as the menu button and page name (right-hand side) */
@media (max-width: 767px) {
  #header .top-link .quick-menu.pull-right { position: fixed !important; top: 8px !important; right: 12px !important; left: auto !important; bottom: auto !important; float: none !important; margin: 0 !important; padding: 0 !important; width: auto !important; z-index: 100001 !important; display: block !important; }
  #header .top-link .quick-menu.pull-right > li.ribbon { float: none !important; display: block !important; margin: 0 !important; padding: 0 !important; background: transparent !important; }
  #header .top-link .quick-menu.pull-right > li.ribbon > a { display: inline-flex !important; align-items: center; gap: 6px; height: 24px !important; line-height: 24px !important; padding: 0 !important; margin: 0 !important; color: #fff !important; font-size: 12px !important; white-space: nowrap; background: transparent !important; }
  #header .top-link .quick-menu.pull-right > li.ribbon > a img { width: 26px !important; height: 17px !important; margin: 0 !important; }
  #header .top-link .quick-menu.pull-right > li.ribbon > a font { font-size: 12px !important; }
  #header .top-link .quick-menu.pull-right > li.ribbon > ul.menu { right: 0 !important; left: auto !important; top: 30px !important; }
}

/* Real phones: the call bar is shorter, so the footer needs less spare room under the copyright */
@media (max-width: 767px) {
  #footer::after { height: 14px !important; }
  #footer .bottom { padding-bottom: 6px !important; }
}

/* Call bar: phone icon + number centred together */
.scrab_marquee2 .img_hotline_text2 { background-image: none !important; padding-left: 0 !important; text-align: center !important; width: 100% !important; float: none !important; min-height: 50px; display: flex !important; align-items: center; justify-content: center; }
.scrab_marquee2 .img_hotline_text2 p { display: flex !important; align-items: center; justify-content: center; gap: 14px; margin: 0 !important; padding: 0 !important; }
.scrab_marquee2 .img_hotline_text2 p span { display: none !important; }
.scrab_marquee2 .img_hotline_text2 p::before { content: ""; flex: 0 0 62px; width: 62px; height: 44px; background: url('../images/runnerphone.png') no-repeat center / contain; }
.scrab_marquee2 .img_hotline_text2 a { line-height: 1.1; }

/* Phone menu open: nothing from the page may sit on top of the menu */
html.mm-opened #header .top-link .quick-menu.pull-right, html.mm-opening #header .top-link .quick-menu.pull-right, body.mm-opened #header .top-link .quick-menu.pull-right,
html.mm-opened .scrab_marquee2, html.mm-opening .scrab_marquee2, body.mm-opened .scrab_marquee2,
html.mm-opened .scrab_marquee, html.mm-opening .scrab_marquee, body.mm-opened .scrab_marquee,
html.mm-opened .sticky-social, html.mm-opening .sticky-social, body.mm-opened .sticky-social { display: none !important; }
html.mm-opened .mm-page, html.mm-opening .mm-page { overflow: hidden !important; }
.mm-menu { z-index: 100003 !important; }
.mm-menu, .mm-menu .mm-panel { max-width: 100%; overflow-x: hidden; }
