/* Mainland theme. Copyright (c) D3V Services Limited.
   Road signage look: navy ground, hi-vis yellow for action, brand blue for detail. */

:root {
  --navy: #162b45;
  --navy-deep: #0f1f33;
  --night: #08131f;
  --blue: #179bd2;
  --link: #0d6e99;
  --hi: #ffc72c;
  --hi-dark: #e5ad0f;
  --ink: #162b45;
  --muted: #4a5b70;
  --soft: #d6e2ee;
  --rule: #dfe4ea;
  --rule-dark: #23364d;
  --paper: #ffffff;
  --mist: #f3f5f7;
  --radius: 6px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Lato", system-ui, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 3vw, 24px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--hi); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--hi); color: var(--navy); padding: 10px 16px; font-weight: 900; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Type */
.display { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(38px, 4.4vw, 64px); line-height: .95; text-transform: uppercase; letter-spacing: .005em; }
.display--sm { font-size: clamp(30px, 3vw, 40px); }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); margin: 0; }
.link-strong { font-weight: 900; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 22px; border-radius: 4px; border: 2px solid transparent; font: 900 16px/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn--lg { padding: 16px 28px; font-size: 18px; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }
.btn--hi { background: var(--hi); color: var(--navy); }
.btn--hi:hover { background: var(--hi-dark); color: var(--navy); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); color: #fff; }
.btn--ghost { border-color: #fff; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--line:hover { background: var(--navy); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn small { font-weight: 700; font-size: 12px; opacity: .8; }
/* A sold out date: the button stays in place, faded, and does nothing. */
.btn--full { background: transparent; border-color: #6f86a3; color: #9fb3c8; cursor: not-allowed; opacity: .7; }
.btn--line-hi { border-color: var(--hi); color: var(--hi); background: transparent; }
.btn--line-hi:hover { background: var(--hi); color: var(--navy); }

/* Top bar and masthead */
.topbar { background: var(--navy-deep); color: #fff; font-size: 14px; }
.topbar__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 24px; padding-top: 9px; padding-bottom: 9px; }
.topbar__branches { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; padding: 0; list-style: none; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.topbar a.topbar__free { color: var(--hi); font-weight: 900; letter-spacing: .02em; }
.topbar__free span { color: #fff; font-weight: 700; }
.topbar__right { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.topbar a.topbar__account { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Manage my bookings sits inside the theme like the booking form */
.mdsb-account h2 { font-family: var(--display) !important; font-weight: 800; text-transform: uppercase; }
.mdsb-account .mdsb-btn { background: var(--hi); color: var(--navy); border-color: var(--hi); border-radius: 4px; font-weight: 900; }
.mdsb-account .mdsb-btn.is-ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.mdsb-account .mdsb-btn.is-danger { background: #b4322b; border-color: #b4322b; color: #fff; }
.masthead { background: #fff; border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
.admin-bar .masthead { top: 32px; }
.masthead__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; }
.brand img { width: 170px; height: auto; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav__list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav__list > li { position: relative; }
.nav__list > li > a { display: block; padding: 12px 12px; color: var(--navy); font-weight: 700; text-decoration: none; }
.nav__list > li > a:hover, .nav__list > .current-menu-item > a, .nav__list > .current-menu-ancestor > a { color: var(--link); }
.nav__list > li.menu-item-has-children > a::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav .sub-menu { position: absolute; left: 0; top: 100%; min-width: 280px; margin: 0; padding: 10px 0; list-style: none; background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--hi); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 16px 32px rgba(15, 31, 51, .14); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu a { display: block; padding: 9px 20px; color: var(--navy); text-decoration: none; font-weight: 700; font-size: 15px; }
.team__teaches { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.5; }
.team__teaches strong { display: block; color: var(--navy); }
.menu-gap { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); }
.nav .sub-menu a:hover { background: var(--mist); color: var(--link); }
.nav .sub-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 0 14px; min-width: 0; }
.navtoggle { display: none; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 2px solid var(--navy); border-radius: 4px; background: #fff; color: var(--navy); font: 900 15px var(--body); cursor: pointer; }
.navtoggle__bars, .navtoggle__bars::before, .navtoggle__bars::after { display: block; width: 20px; height: 2.5px; background: currentColor; border-radius: 2px; position: relative; }
.navtoggle__bars::before, .navtoggle__bars::after { content: ""; position: absolute; left: 0; }
.navtoggle__bars::before { top: -6px; }
.navtoggle__bars::after { top: 6px; }

@media (max-width: 1080px) {
  .navtoggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px var(--gutter) 24px; background: #fff; border-bottom: 4px solid var(--hi); box-shadow: 0 20px 30px rgba(15, 31, 51, .15); max-height: calc(100vh - 120px); overflow-y: auto; }
  .nav-open .nav { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__list > li { border-bottom: 1px solid var(--rule); }
  .nav__list > li > a { padding: 14px 4px; font-size: 18px; }
  .nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 10px 12px; }
  .nav__list > li.menu-item-has-children > a::after { display: none; }
  .brand img { width: 140px; }
}

/* Hero */
.hero { display: flex; flex-wrap: wrap; background: var(--navy); color: #fff; }
.hero__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: clamp(40px, 6vw, 88px) clamp(20px, 6vw, 88px); }
.hero__title { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(44px, 5.2vw, 78px); line-height: .92; text-transform: uppercase; }
.hero--home .hero__title { font-size: clamp(52px, 6.4vw, 96px); }
.hero__lead { margin: 0; font-size: 19px; line-height: 1.55; color: var(--soft); max-width: 34em; }
.hero__line { flex: 0 0 8px; width: 8px; background: repeating-linear-gradient(to bottom, var(--hi) 0 36px, var(--navy) 36px 64px); }
.hero__media { flex: 1 1 440px; min-width: 0; min-height: 320px; position: relative; background: var(--navy-deep); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--home .hero__media { min-height: 460px; }
/* Home hero film: added by site.js on wide screens, fades in over the photo once it plays.
   It always covers the box: site.js picks the portrait or landscape cut to suit the box's shape. */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.hero__video.is-playing { opacity: 1; }
/* Home film: the navy panel runs on into the film and fades out, so the two read as one, and the
   centre line keeps rolling down the join. The film has no line of its own. */
.hero--home .hero__media::after { content: ""; position: absolute; inset: 0 auto 0 0; width: min(34%, 280px); background: linear-gradient(to right, var(--navy) 0%, rgba(22, 43, 69, .85) 30%, rgba(22, 43, 69, .4) 65%, rgba(22, 43, 69, 0) 100%); pointer-events: none; }
.hero--home .hero__line { background-size: 8px 64px; animation: mainland-line 1.4s linear infinite; }
@keyframes mainland-line-x { from { background-position: 0 0; } to { background-position: 64px 0; } }
@keyframes mainland-line { from { background-position: 0 0; } to { background-position: 0 64px; } }
@media (prefers-reduced-motion: reduce) { .hero--home .hero__line { animation: none; } }
@media (max-width: 1000px), (prefers-reduced-motion: reduce) { .hero__video { display: none; } }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 10px 0 0; padding-top: 26px; border-top: 1px solid #3a5272; }
.stats div { display: flex; flex-direction: column; gap: 4px; }
.stats dt { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 4vw, 48px); line-height: 1; color: var(--hi); }
.stats dd { margin: 0; font-size: 15px; color: var(--soft); }
@media (max-width: 1000px) {
  .hero__line { flex-basis: 100%; width: 100%; height: 8px; order: 2; background: repeating-linear-gradient(to right, var(--hi) 0 36px, var(--navy) 36px 64px); }
  .hero__media { order: 3; min-height: 240px; }
  .hero--home .hero__media { min-height: 280px; }
  .hero--home .hero__media::after { display: none; }
  .hero--home .hero__line { background-size: 64px 8px; animation-name: mainland-line-x; }
}

/* Breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.crumbs li { color: var(--hi); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: #6f86a3; }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* Plates: licence class codes */
.plates { display: flex; flex-wrap: wrap; gap: 8px; }
.plate { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 52px; padding: 0 10px; border-radius: 4px; background: var(--navy); color: #fff; font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1; }
.plate--wide { font-size: 24px; }
.plate--lg { min-width: 64px; height: 64px; font-size: 40px; background: var(--hi); color: var(--navy); }
.plate--lg.plate--wide { font-size: 28px; }

/* Sections */
.section { padding: clamp(64px, 8vw, 96px) 0; }
.section--muted { background: var(--mist); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 48px; margin-bottom: 40px; }
.section__intro { margin: 0; max-width: 32em; font-size: 18px; color: var(--muted); }

/* Course tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tile { display: flex; flex-direction: column; gap: 14px; min-height: 230px; padding: 24px; border: 2px solid var(--navy); border-radius: var(--radius); background: #fff; color: var(--navy); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 10px 0 var(--hi); color: var(--navy); }
.tile__title { margin: 0; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; text-transform: uppercase; }
.tile__text { margin: 0; color: var(--muted); font-size: 16px; }
.tile__more { margin-top: auto; font-weight: 900; color: var(--link); }
.tile:hover .tile__more { text-decoration: underline; }
.tiles__group { margin: clamp(56px, 7vw, 80px) 0 24px; padding-top: 32px; border-top: 1px solid var(--rule); font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.05; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { .tile, .tile:hover { transition: none; transform: none; } }
.morelist { display: flex; flex-wrap: wrap; gap: 24px 48px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--rule); }
.morelist__head { flex: 0 0 220px; margin: 0; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.05; text-transform: uppercase; }
.morelist__list { flex: 1 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.morelist__list a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--navy); font-weight: 700; text-decoration: none; }
.morelist__list a:hover { color: var(--link); }

/* Licence road */
.road { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 43px; height: 6px; background: repeating-linear-gradient(to right, var(--hi) 0 40px, transparent 40px 68px); }
.road__stop { position: relative; display: flex; flex-direction: column; gap: 12px; }
.road__stop p { margin: 0; color: var(--muted); }
.road__marker { display: flex; align-items: center; justify-content: center; width: 92px; height: 92px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--display); font-weight: 800; font-size: 46px; }
.road__stop--start .road__marker { background: #fff; color: var(--muted); border: 3px solid #9aa8b8; }
.road__stop--end .road__marker { background: var(--hi); color: var(--navy); }
.road__title { margin: 4px 0 0; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.05; text-transform: uppercase; }
@media (max-width: 860px) {
  .road { grid-template-columns: 1fr; gap: 28px; padding-left: 4px; }
  .road::before { left: 43px; right: auto; top: 0; bottom: 0; width: 6px; height: auto; background: repeating-linear-gradient(to bottom, var(--hi) 0 40px, transparent 40px 68px); }
  .road__stop { display: grid; grid-template-columns: 92px 1fr; column-gap: 20px; }
  .road__marker { grid-row: span 3; }
}

/* Departures board */
.board-section { background: var(--navy-deep); color: #fff; padding: clamp(64px, 8vw, 96px) 0; }
.section__head--split { align-items: center; }
.tabs { display: inline-flex; border: 2px solid var(--hi); border-radius: 4px; overflow: hidden; }
.tabs__tab { min-height: 44px; padding: 10px 22px; border: 0; background: transparent; color: #fff; font: 700 16px var(--body); cursor: pointer; }
.tabs__tab[aria-selected="true"] { background: var(--hi); color: var(--navy); font-weight: 900; }
.board { border: 1px solid var(--rule-dark); border-radius: var(--radius); background: var(--night); }
.board__scroll { overflow-x: auto; }
.board__table { width: 100%; min-width: 760px; border-collapse: collapse; }
.board__table th { padding: 16px 20px; text-align: left; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9fb3c8; border-bottom: 1px solid var(--rule-dark); }
.board__table td { padding: 16px 20px; border-bottom: 1px solid #1a2c42; font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: .03em; vertical-align: middle; }
.board__table tr:last-child td { border-bottom: 0; }
.board__date { color: var(--hi); white-space: nowrap; text-transform: uppercase; }
.board__course { text-transform: uppercase; }
.board__units { color: #9fb3c8; font-size: 19px !important; }
.board__time { color: var(--soft); white-space: nowrap; }
.board__act { text-align: right; }
.board__act .btn { font-family: var(--body); letter-spacing: 0; }
.board__empty { margin: 0; padding: 28px 24px; color: var(--soft); }
.board__empty a, .board__foot a { color: var(--hi); font-weight: 700; }
.board__foot { margin: 22px 0 0; color: #9fb3c8; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.quote { position: relative; display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 32px 28px 28px; background: #fff; border: 2px solid var(--navy); border-radius: var(--radius); box-shadow: 0 8px 0 var(--hi); }
.quote__stars { display: flex; gap: 3px; color: var(--hi-dark); }
.quote__text { margin: 0; }
.quote__text p { margin: 0; font-size: 19px; line-height: 1.55; color: var(--ink); }
.quote__text p::before { content: "\201C"; }
.quote__text p::after { content: "\201D"; }
.quote__who { margin-top: auto; font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; color: var(--navy); }
.quote__who span { font-family: var(--body); font-weight: 700; font-size: 15px; text-transform: none; color: var(--muted); }

/* Split image and text */
.split { display: flex; flex-wrap: wrap; }
.split__media { flex: 1 1 480px; min-width: 0; min-height: 420px; position: relative; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: clamp(48px, 6vw, 96px) clamp(20px, 6vw, 88px); }
.ticks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 24px; margin: 0; padding: 0; list-style: none; font-weight: 700; }
.ticks li { display: flex; align-items: center; gap: 10px; }
.ticks li::before { content: ""; flex: 0 0 10px; width: 10px; height: 10px; background: var(--hi); }
.ticks a { color: var(--navy); }

/* Branches */
.branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.branch { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); }
.branch__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; background: var(--blue); }
.branch__name { margin: 0; font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1; text-transform: uppercase; }
.branch__name a { color: var(--navy-deep); text-decoration: none; }
.branch__suburb { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--navy-deep); }
.branch__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; }
.branch__body address { font-style: normal; }
.branch__phone { font-weight: 900; font-size: 22px; color: var(--navy); text-decoration: none; }

/* FAQ */
.faq { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.faq__head { flex: 1 1 260px; }
.faq__list { flex: 2 1 560px; min-width: 0; }
.faq__more { margin: 24px 0 0; }
details { border-top: 1px solid var(--rule); padding: 18px 0; }
details:first-of-type { border-top: 2px solid var(--navy); }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { display: flex; justify-content: space-between; gap: 16px; font-weight: 900; font-size: 20px; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: 0 0 auto; font-family: var(--display); font-size: 28px; line-height: .8; color: var(--link); }
details[open] summary::after { content: "\2013"; }
details p { margin: 12px 0 0; color: var(--muted); }

/* Inner pages */
.page-body { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(56px, 7vw, 96px); }
.page-body--aside { display: grid; grid-template-columns: minmax(0, 1fr) clamp(360px, 34vw, 460px); gap: clamp(32px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .page-body--aside { grid-template-columns: 1fr; } }
.prose { max-width: 780px; }

/* DGMate offer on the Dangerous Goods page, in the app's own colours and type */
.dgm { --dgm-ink: #0b1220; --dgm-cream: #f4efe4; --dgm-dim: #b7bccb; --dgm-mute: #7e8699; --dgm-amber: #e5a00d; background: var(--dgm-ink); color: var(--dgm-cream); font-family: "Inter Tight", var(--body); overflow: hidden; }
.dgm__hazard { height: 14px; background: repeating-linear-gradient(-45deg, var(--dgm-amber) 0 12px, var(--dgm-ink) 12px 24px); }
.dgm__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); gap: clamp(32px, 6vw, 88px); align-items: start; padding-top: clamp(40px, 5vw, 64px); }
.dgm__copy { padding-bottom: clamp(40px, 5vw, 64px); max-width: 680px; }
.dgm__brand { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.dgm__brand a { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--dgm-cream); text-decoration: none; }
.dgm__brand a span + span { color: var(--dgm-amber); }
.dgm__brand small { font: 600 10px "JetBrains Mono", monospace; letter-spacing: .18em; text-transform: uppercase; color: var(--dgm-mute); }
.dgm__title { margin: 20px 0 0; font-family: inherit; font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; text-transform: none; color: var(--dgm-cream); }
.dgm__title em { font-style: normal; color: var(--dgm-amber); }
.dgm__tag { display: inline-block; margin: 24px 0 0; padding-left: 14px; border-left: 3px solid var(--dgm-amber); font: 600 clamp(13px, 1.5vw, 15px) "JetBrains Mono", monospace; letter-spacing: .16em; text-transform: uppercase; }
.dgm__lead { margin: 18px 0 0; font-size: 18px; font-weight: 500; line-height: 1.5; color: var(--dgm-dim); }
.dgm__stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.dgm__store { display: inline-flex; align-items: center; gap: 11px; min-height: 48px; padding: 9px 16px; background: #000; border: 1px solid rgba(255, 255, 255, .28); border-radius: 9px; color: #fff; text-decoration: none; }
.dgm__store:hover { border-color: rgba(255, 255, 255, .7); color: #fff; }
.dgm__store svg { flex: none; width: 24px; height: 24px; }
.dgm__store span { display: flex; flex-direction: column; line-height: 1.05; }
.dgm__store small { font-size: 10px; letter-spacing: .04em; opacity: .86; }
.dgm__store strong { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.dgm__phone { position: relative; align-self: stretch; min-height: 380px; background: #1a2436; border: 1px solid rgba(244, 239, 228, .18); border-bottom: 0; border-radius: 34px 34px 0 0; overflow: hidden; }
.dgm__phone img { position: absolute; top: 10px; left: 10px; width: calc(100% - 20px); height: auto; border-radius: 26px 26px 0 0; }
@media (max-width: 760px) {
  .dgm__grid { grid-template-columns: 1fr; gap: 0; }
  .dgm__phone { justify-self: center; width: min(280px, 100%); min-height: 300px; }
  .dgm__store { flex: 1 1 160px; justify-content: center; }
}
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 1.8em 0 .5em; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3vw, 40px); line-height: 1; text-transform: uppercase; }
.prose h3, .prose h4 { margin: 1.6em 0 .4em; font-family: var(--display); font-weight: 800; font-size: 25px; line-height: 1.05; text-transform: uppercase; }
.prose p, .prose li { color: #2c3e55; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 26px; margin: 8px 0; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; background: var(--hi); }
.prose ol { padding-left: 1.3em; }
.prose ol li { margin: 8px 0; padding-left: 4px; }
.prose ol li::marker { font-weight: 900; color: var(--navy); }
.prose strong { color: var(--navy); }
.prose img { border-radius: var(--radius); margin: 24px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 16px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.prose th { background: var(--mist); }
.prose .team { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 20px 0; padding: 0; }
.prose .team li { padding: 20px; margin: 0; border: 1px solid var(--rule); border-radius: var(--radius); }
.prose .team li::before { display: none; }
.prose .team h3 { margin: 0; }
.prose .team .role { margin: 4px 0 10px; font-weight: 900; color: var(--link); }

/* Sidebar */
.aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 104px; }
@media (max-width: 960px) { .aside { position: static; } }
.aside__card { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.aside__card p { margin: 0; color: var(--soft); }
.aside__head { margin: 0; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; text-transform: uppercase; }
.aside__dates { margin: 0; padding: 0; list-style: none; }
.aside__dates li { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; column-gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid #2c4664; }
.aside__dates time { white-space: nowrap; grid-row: span 2; align-self: start; font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.1; color: var(--hi); text-transform: uppercase; }
.aside__book { grid-column: 3; grid-row: 1 / span 2; }
.aside__date.is-full span:not(.aside__book), .aside__date.is-full time { opacity: .55; }
.aside__dates span { font-weight: 700; line-height: 1.3; }
.aside__dates small { color: #9fb3c8; font-size: 14px; }
/* Seats left sits on the yellow button, so it takes the button's own colour. */
.aside__dates .btn small { color: var(--navy); font-size: 13px; font-weight: 700; margin-left: 6px; }
.aside__book .btn { white-space: nowrap; }
.aside .btn--line { border-color: #fff; color: #fff; }
.aside .btn--line:hover { background: #fff; color: var(--navy); }
.aside__note { margin: 0; padding: 0 4px; font-size: 15px; color: var(--muted); }

/* Forms (Gravity Forms) */
.formcard { padding: clamp(24px, 4vw, 40px); border: 2px solid var(--navy); border-radius: var(--radius); }
.formcard .display { margin-bottom: 20px; }
.gform_wrapper .gfield_label, .gform_wrapper legend.gfield_label { font-weight: 900 !important; color: var(--navy) !important; font-size: 16px !important; }
.gform_wrapper input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]), .gform_wrapper select, .gform_wrapper textarea { min-height: 48px; padding: 10px 14px !important; border: 2px solid #b7c2cf !important; border-radius: 4px !important; font: 400 17px var(--body) !important; color: var(--ink) !important; background: #fff !important; }
.gform_wrapper select { height: auto !important; line-height: 1.4 !important; padding-right: 40px !important; }
.gform_wrapper input:focus, .gform_wrapper select:focus, .gform_wrapper textarea:focus { border-color: var(--navy) !important; outline: 3px solid var(--hi) !important; outline-offset: 0 !important; }
.gform_wrapper .gform_footer input[type="submit"], .gform_wrapper .gform_button { min-height: 52px !important; padding: 14px 28px !important; border: 0 !important; border-radius: 4px !important; background: var(--hi) !important; color: var(--navy) !important; font: 900 18px var(--body) !important; cursor: pointer; }
.gform_wrapper .gform_footer input[type="submit"]:hover { background: var(--hi-dark) !important; }

/* Booking plugin: let it sit inside this theme's look */
.booking-wrap { padding: clamp(40px, 5vw, 72px) 0; }
.booking-wrap .mdsb { font-family: var(--body); }
.booking-wrap .mdsb h2, .booking-wrap .mdsb h3, .booking-wrap .mdsb-step-title { font-family: var(--display) !important; letter-spacing: .01em; }
.booking-wrap .mdsb-btn { background: var(--hi); color: var(--navy); border-radius: 4px; font-weight: 900; }
.booking-wrap .mdsb-btn:hover { background: var(--hi-dark); color: var(--navy); }
.booking-wrap .mdsb-btn.is-busy::after { border-color: var(--navy); border-right-color: transparent; }

/* Loading: a Mainland truck rolling along a road while the course dates come in */
.booking-wrap {
  --truck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 104 56'%3E%3Crect x='2' y='4' width='64' height='36' rx='3' fill='%23179bd2'/%3E%3Cpath d='M6 30 64 15v7L6 37z' fill='%23fff'/%3E%3Cpath d='M70 14h17l13 14v14H70z' fill='%23162b45'/%3E%3Cpath d='M75 19h10l8 9H75z' fill='%23d6e2ee'/%3E%3Crect x='96' y='34' width='5' height='4' fill='%23ffc72c'/%3E%3Crect x='0' y='40' width='102' height='5' rx='1' fill='%23162b45'/%3E%3Cg fill='%230f1f33'%3E%3Ccircle cx='17' cy='47' r='8'/%3E%3Ccircle cx='36' cy='47' r='8'/%3E%3Ccircle cx='86' cy='47' r='8'/%3E%3C/g%3E%3Cg fill='%23ffc72c'%3E%3Ccircle cx='17' cy='47' r='3'/%3E%3Ccircle cx='36' cy='47' r='3'/%3E%3Ccircle cx='86' cy='47' r='3'/%3E%3C/g%3E%3C/svg%3E");
  --road: repeating-linear-gradient(to right, var(--hi) 0 22px, transparent 22px 40px) 0 50% / 400px 4px repeat-x, var(--navy);
}
.booking-wrap .mdsb-boot {
  position: relative; display: flex; justify-content: center; padding: 132px 0 56px;
  font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: .04em; text-transform: uppercase; color: var(--navy);
}
.booking-wrap .mdsb-boot::before,
.booking-wrap .mdsb-viewport:has(.mdsb-grid.is-loading)::before {
  content: ""; position: absolute; left: 50%; width: min(340px, 80%); height: 34px; margin-left: calc(min(340px, 80%) / -2);
  border-radius: 4px; background: var(--road); animation: mainland-road .6s linear infinite;
}
.booking-wrap .mdsb-boot::after,
.booking-wrap .mdsb-viewport:has(.mdsb-grid.is-loading)::after {
  content: ""; position: absolute; left: 50%; width: 104px; height: 56px; margin-left: -52px;
  background: var(--truck) center / contain no-repeat; animation: mainland-truck .45s ease-in-out infinite alternate;
}
.booking-wrap .mdsb-boot::before { top: 78px; }
.booking-wrap .mdsb-boot::after { top: 32px; }
/* Calendar month loading: the same truck over a soft veil on the grid */
.booking-wrap .mdsb-viewport:has(.mdsb-grid.is-loading) { min-height: 220px; }
.booking-wrap .mdsb-viewport:has(.mdsb-grid.is-loading) .mdsb-grid { opacity: .35; }
.booking-wrap .mdsb-viewport:has(.mdsb-grid.is-loading)::before { top: calc(50% + 6px); z-index: 2; }
.booking-wrap .mdsb-viewport:has(.mdsb-grid.is-loading)::after { top: calc(50% - 40px); z-index: 3; }
@keyframes mainland-road { from { background-position: 0 50%; } to { background-position: -40px 50%; } }
@keyframes mainland-truck { from { transform: translateY(0); } to { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) {
  .booking-wrap .mdsb-boot::before, .booking-wrap .mdsb-boot::after,
  .booking-wrap .mdsb-viewport:has(.mdsb-grid.is-loading)::before,
  .booking-wrap .mdsb-viewport:has(.mdsb-grid.is-loading)::after { animation: none; }
}

/* Call strip */
.callstrip { background: var(--hi); }
.callstrip__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; padding-top: 56px; padding-bottom: 56px; }
.callstrip__text { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.6vw, 66px); line-height: .95; text-transform: uppercase; color: var(--navy); }

/* Footer */
.footer { background: var(--navy); color: var(--soft); padding: 72px 0 32px; font-size: 15px; }
.footer a { color: var(--soft); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 1080px) { .footer__grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.footer__mark { margin: 0 0 10px; font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: .04em; color: #fff; line-height: 1; }
.footer__about p:last-child { margin: 0; }
.footer__head { margin: 0 0 12px; font-family: var(--body); font-size: 16px; font-weight: 900; color: #fff; text-transform: none; }
.footer__head a { color: #fff; }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { margin: 0 0 8px; }
.footer address { font-style: normal; line-height: 1.8; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; margin-top: 48px; padding-top: 24px; border-top: 1px solid #3a5272; font-size: 14px; }
.footer__base p { margin: 0; }
.credits { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 36px; }
.credits a { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.credits a:hover { text-decoration: none; color: #fff; }

/* Phone quick bar */
.quickbar { display: none; }
@media (max-width: 700px) {
  .quickbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--navy-deep); border-top: 1px solid var(--rule-dark); padding-bottom: env(safe-area-inset-bottom); }
  .quickbar a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; font-weight: 900; font-size: 17px; text-decoration: none; }
  .quickbar__call { color: #fff; }
  .quickbar__call svg { color: var(--hi); }
  .quickbar__book { background: var(--hi); color: var(--navy); }
  body { padding-bottom: 56px; }
  .topbar__branches { display: none; }
}
