/* G&B Classic — the original gbcable.ca (Adobe Muse, 2015-2018) rebuilt for Nexus. Measurements are the original's,
   taken from the live page at 1280 x 900: a 1000-pixel page, Arial for the page and the browser's sans-serif for
   headings and text (the original asked for "droid-sans", an Adobe web font that no longer loads). */

html { background-color: #ffffff; background-repeat: repeat-x; background-position: left top; min-height: 100%; }
body {
  margin: 0; min-width: 1000px; min-height: 100vh; display: flex; flex-direction: column;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 14px; line-height: 17px; color: #000000;
  text-align: left; word-wrap: break-word; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, li { margin: 0; padding: 0; }
img { border: 0; }
a:link { color: #000000; text-decoration: none; }
a:visited { color: #7F7F7F; text-decoration: none; }
a:hover, a:active { color: #FDB52B; text-decoration: none; }

.gbc-skip { position: absolute; left: -10000px; top: 0; z-index: 100; background: #ffffff; padding: 6px 10px; }
.gbc-skip:focus { left: 10px; }
.gbc-main { flex: 1 0 auto; outline: none; }

/* Type, as the original's paragraph styles */
.gbc-h1 { display: block; color: #454D55; font-family: droid-sans, sans-serif; font-size: 30px; line-height: 36px; font-weight: 700; padding: 0 0 14px; }
.gbc-h3 { display: block; color: #454D55; font-family: droid-sans, sans-serif; font-size: 22px; line-height: 26px; font-weight: 700; padding: 6px 0 8px; }
.gbc-body, .gbc-text p, .gbc-text li { color: #333333; font-family: droid-sans, sans-serif; font-size: 15px; line-height: 18px; font-weight: 400; }
.gbc-body, .gbc-text p { padding: 0 0 12px; }
.gbc-front { color: #000000; font-family: droid-sans, sans-serif; font-size: 17px; line-height: 20px; font-weight: 400; padding: 6px 0 0; }
.gbc-text h2, .gbc-text h3 { color: #454D55; font-family: droid-sans, sans-serif; font-size: 22px; line-height: 26px; font-weight: 700; padding: 6px 0 8px; }
.gbc-text ul, .gbc-text ol { padding-left: 34px; list-style: none; }
.gbc-text li { position: relative; padding-bottom: 3px; }
.gbc-text ul > li::before { content: '\2022'; position: absolute; right: 100%; margin-right: 6px; }
.gbc-text ol { counter-reset: gbc; }
.gbc-text ol > li { counter-increment: gbc; }
.gbc-text ol > li::before { content: counter(gbc) '.'; position: absolute; right: 100%; margin-right: 6px; }

/* Header: the picture is the dark strip, the grey band with the G&B mark and the yellow bar */
.gbc-header { position: relative; width: 1000px; height: 226px; margin: 0 auto; background-repeat: no-repeat; background-position: left top; z-index: 20; }
.gbc-careers { position: absolute; left: 25px; top: 6px; font-family: droid-sans, sans-serif; font-size: 22.5px; line-height: 22px; padding: 1px 0 2px; white-space: nowrap; }
.gbc-careers:link, .gbc-careers:visited, .gbc-careers:hover, .gbc-careers:active { color: #66CC33; }
.gbc-phone { position: absolute; left: 701px; top: 8px; width: 274px; text-align: right; color: #FDB52B; font-family: droid-sans, sans-serif; font-size: 18px; line-height: 22px; }
.gbc-nav { position: absolute; left: 121px; top: 185px; width: 777px; height: 41px; }
.gbc-rule { position: absolute; top: 0; width: 3px; height: 27px; background: #000000; z-index: 2; }
.gbc-nav__list { list-style: none; position: relative; height: 41px; }
.gbc-nav__item { position: absolute; top: 0; width: 193px; height: 41px; }
.gbc-nav__item--1 { left: 0; width: 192px; }
.gbc-nav__item--2 { left: 194px; }
.gbc-nav__item--3 { left: 389px; }
.gbc-nav__item--4 { left: 584px; }
.gbc-nav__link { display: block; box-sizing: border-box; height: 41px; padding: 0 0 15px 7px; text-align: center; font-family: droid-sans, sans-serif; font-size: 22px; line-height: 26px; font-weight: 700; }
.gbc-nav__link:link, .gbc-nav__link:visited { color: #000000; }
.gbc-nav__link:hover, .gbc-nav__link:focus-visible, .gbc-nav__link.is-current { color: #FFFFFF; }
.gbc-sub { list-style: none; position: absolute; left: 0; top: 41px; width: 290px; display: none; z-index: 30; }
.gbc-nav__item.has-sub:hover .gbc-sub, .gbc-nav__item.has-sub:focus-within .gbc-sub { display: block; }
.gbc-sub__link { display: block; box-sizing: border-box; height: 40px; padding: 9px 4px 0 15px; background: #454D55; font-family: droid-sans, sans-serif; font-size: 19px; line-height: 23px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.gbc-sub__link:link, .gbc-sub__link:visited { color: #CCCCCC; }
.gbc-sub__link:hover, .gbc-sub__link:focus-visible, .gbc-sub__link.is-current { background: #FDB52B; color: #000000; }

/* Home: the pictures, the full width of the window */
.gbc-slides { position: relative; width: 100%; height: 400px; margin-top: 1px; overflow: hidden; }
.gbc-slide { position: absolute; inset: 0; opacity: 0; transition: opacity var(--fade, 500ms) linear; }
.gbc-slide.is-active { opacity: 1; z-index: 1; }
.gbc-slide__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.gbc-cols { width: 1000px; box-sizing: border-box; margin: 26px auto 0; padding-left: 20px; display: flex; gap: 30px; }
.gbc-col { width: 300px; }
.gbc-col__body { min-height: 179px; }
.gbc-col__link { display: block; min-height: 45px; }
.gbc-col__link .gbc-h3 { color: #454D55; }

/* Inner pages: text on the left, a column on the right */
.gbc-inner { width: 1000px; margin: 0 auto; padding-top: 35px; display: flex; align-items: flex-start; }
.gbc-content { width: 687px; margin-left: 25px; }
.gbc-content::after { content: ''; display: block; clear: both; }
.gbc-figure { float: right; margin-left: 12px; }
.gbc-figure__frame { display: block; }
.gbc-figure__img { display: block; width: 100%; height: 100%; }
.gbc-figure__frame:not([style*="width"]) .gbc-figure__img { width: auto; height: auto; max-width: none; }
.gbc-figure--shadow .gbc-figure__img { box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5); }
.gbc-map { width: 712px; }
.gbc-map__frame { display: block; width: 712px; border: 0; }
.gbc-side { width: 213px; margin-left: 50px; flex: none; }
.gbc-map + .gbc-side { margin-left: 50px; }
.gbc-side__title { text-align: center; margin-bottom: -5px; }
.gbc-side__menu { list-style: none; }
.gbc-side__link { display: block; box-sizing: border-box; height: 42px; margin-bottom: 2px; padding-top: 14px; background: #FDB52B; text-align: center; font-family: Helvetica, "Helvetica Neue", Arial, sans-serif; font-size: 15px; line-height: 18px; }
.gbc-side__link:link, .gbc-side__link:visited { color: #000000; }
.gbc-side__link:hover, .gbc-side__link:focus-visible { background: #252525; color: #FFFFFF; }
.gbc-side__link.is-current { background: #454D55; color: #FFFFFF; }
.gbc-side__contact-title { font-size: 21px; line-height: 25px; }

/* Footer */
.gbc-footer { flex: none; margin-top: 26px; background: #252525; min-height: 112px; box-sizing: border-box; padding: 21px 0 44px; }
.gbc-footer__inner { width: 458px; margin: 0 auto; }
.gbc-footer p { color: #FFFFFF; text-align: center; font-family: droid-sans, sans-serif; font-size: 12px; line-height: 14px; }

.gbc-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The phone number is a link (call on tap) that looks exactly as the original's plain text did. */
.gbc-phone__number:link, .gbc-phone__number:visited, .gbc-phone__number:hover, .gbc-phone__number:active { color: inherit; }
.gbc-logo-band { display: none; }

/* ── Phones and tablets (under 1000 pixels). Above that, nothing below applies: the page is the original. ── */
@media (max-width: 999px) {
  html { background-image: none !important; }
  body { min-width: 0; }

  .gbc-header { width: auto; height: auto; background-image: none !important; box-shadow: 0 5px 6px -3px rgba(0, 0, 0, 0.45); }
  .gbc-strip { background: #252525; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 14px; padding: 7px 16px; }
  .gbc-careers, .gbc-phone { position: static; width: auto; padding: 0; font-size: 17px; line-height: 22px; }
  .gbc-phone { text-align: right; }
  /* The header picture, cropped to the grey band and the G&B mark (x 0-690, y 37-190 of the 1000 x 226 picture),
     scaled to the screen and never past its own size. */
  .gbc-logo-band {
    display: block; background-color: #464D55; background-repeat: no-repeat;
    --k: min(0.135vw, 1px);
    background-size: calc(1000 * var(--k)) auto;
    background-position: max(6px, calc((100vw - 1000px) / 2 + 6px)) calc(-37 * var(--k));
    height: calc(153 * var(--k));
  }
  .gbc-nav { position: static; width: auto; height: auto; background: #FDB52B; }
  .gbc-rule { display: none; }
  .gbc-nav__list { display: flex; height: auto; padding: 0 2px; max-width: 760px; margin: 0 auto; }
  .gbc-nav__item, .gbc-nav__item--1 { position: static; width: auto; height: auto; flex: 1 1 auto; display: flex; align-items: center; }
  .gbc-nav__item + .gbc-nav__item::before { content: ''; width: 3px; height: 22px; background: #000000; flex: none; }
  .gbc-nav__link { flex: 1; height: auto; padding: 12px 6px; font-size: clamp(13px, 3.9vw, 22px); line-height: 22px; white-space: nowrap; }
  .gbc-sub { display: none !important; }

  .gbc-slides { height: clamp(170px, 31.25vw, 400px) !important; }
  .gbc-cols { width: auto; flex-direction: column; gap: 22px; margin-top: 24px; padding: 0 16px; }
  .gbc-col { width: auto; }
  .gbc-col__body, .gbc-col__link { min-height: 0; }
  .gbc-h1 { font-size: 26px; line-height: 32px; padding-bottom: 10px; }

  .gbc-inner { width: auto; flex-direction: column; align-items: stretch; padding: 24px 16px 0; }
  .gbc-content, .gbc-map { width: auto; margin-left: 0; }
  .gbc-figure { max-width: 46%; margin: 2px 0 10px 16px !important; }
  .gbc-figure__frame { width: auto !important; height: auto !important; }
  .gbc-figure__img, .gbc-figure__frame:not([style*="width"]) .gbc-figure__img { width: 100%; height: auto; max-width: 100%; }
  .gbc-figure__frame + .gbc-figure__frame { margin-top: 8px; }
  .gbc-map__frame { width: 100%; height: clamp(260px, 60vw, 370px); }
  .gbc-side, .gbc-map + .gbc-side { width: auto; margin: 26px 0 0; }
  .gbc-side__title { text-align: left; }
  .gbc-side__link { height: auto; padding: 13px 10px; }

  .gbc-footer { margin-top: 34px; min-height: 0; padding: 20px 0 28px; }
  .gbc-footer__inner { width: auto; padding: 0 16px; }
}

/* Phones: the picture goes above the text, the full width. */
@media (max-width: 599px) {
  .gbc-figure { float: none; max-width: none; margin: 0 0 14px !important; }
  .gbc-careers, .gbc-phone { font-size: 15px; }
}
