/* Albyn MOT — desktop tabs and header (draft 16 Nov 2026, desk3).
   Mobile layout is unchanged: tab lists hide below 1024px and every panel stays visible. */

/* ---- Header: Book Now, Staff login, Customer login (desktop only) ---- */
.adt-desk-only,
a.adt-desk-only,
.btn.adt-desk-only,
.btn.btn-book.adt-desk-only,
html body .bk-slim-r .btn-book.adt-desk-only,
html body .bk-slim-r a.adt-desk-only,
html body header .adt-desk-only,
html body.mcl-landing .mcl-top-actions .btn-book.adt-desk-only {
  display: none !important;
}
.adt-header-link {
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  color: inherit;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-radius: 4px;
}
.adt-header-link:hover,
.adt-header-link:focus {
  text-decoration: underline;
  outline: none;
}

/* ---- Tabs ---- */
.adt-tablist { display: none; }
.adt-panel { display: block; }

@media (min-width: 1024px) {
  .adt-desk-only,
  a.adt-desk-only,
  .btn.adt-desk-only,
  .btn.btn-book.adt-desk-only,
  html body .bk-slim-r .btn-book.adt-desk-only,
  html body .bk-slim-r a.adt-desk-only,
  html body header .adt-desk-only,
  html body.mcl-landing .mcl-top-actions .btn-book.adt-desk-only {
    display: inline-flex !important;
  }
  details.login-mini.adt-mobile-only,
  .adt-mobile-only { display: none !important; }

  body.mcl-landing .mcl-top-call.adt-mobile-only { display: none !important; }

  .bk-slim-r {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: nowrap;
  }
  .bk-slim-r .adt-header-link,
  header.bk-slim .adt-header-link {
    color: #fff;
  }
  .bk-slim-r .adt-header-link:hover,
  .bk-slim-r .adt-header-link:focus {
    color: #fff;
    background: rgba(255,255,255,0.1);
  }
  .bk-slim-r .btn.adt-desk-only,
  .bk-slim-r a.btn-book.adt-desk-only {
    min-height: 44px;
    align-items: center;
    padding: 0 1.1rem !important;
    font-size: 0.78rem !important;
    white-space: nowrap;
  }

  body.mcl-landing .mcl-top-actions .adt-header-link {
    color: #fff;
  }
  body.mcl-landing .mcl-top-actions .adt-header-link:hover,
  body.mcl-landing .mcl-top-actions .adt-header-link:focus {
    background: rgba(255,255,255,0.1);
  }
  body.mcl-landing .mcl-top-actions a.btn-book.adt-desk-only {
    min-height: 44px;
    align-items: center;
    padding: 0 1.05rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
  }

  /* Tab bar */
  .adt-tabs { margin: 0 0 1.5rem; }
  .adt-tablist {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid #d5dce5;
    background: transparent;
  }
  .adt-tablist[role="tablist"] { display: flex; }
  .adt-tablist a,
  .adt-tablist [role="tab"] {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 0.7rem 1.2rem;
    margin: 0;
    border: 0;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    background: none;
    color: #0c1018;
    font-size: 1.3rem; /* +1 more step from 1.15rem; label only, weight 800 */
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    max-width: none;
  }
  /* Do not enlarge helper/sub text inside a tab button, if any is added later. */
  .adt-tablist a small,
  .adt-tablist [role="tab"] small,
  .adt-tablist a .adt-tab-note,
  .adt-tablist [role="tab"] .adt-tab-note {
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0;
  }
  .adt-tablist a:hover,
  .adt-tablist [role="tab"]:hover,
  .adt-tablist a:focus,
  .adt-tablist [role="tab"]:focus {
    color: #0c1018;
    background: #f3f6fa;
    outline: none;
  }
  .adt-tablist a[aria-selected="true"],
  .adt-tablist [role="tab"][aria-selected="true"] {
    border-bottom-color: #00B0FD;
    color: #0c1018;
    font-weight: 800;
  }
  /* Booking terms has 14 tabs: allow those labels to wrap neatly rather than overflow. */
  .adt-tablist.adt-tablist--wrap a,
  .adt-tablist.adt-tablist--wrap [role="tab"],
  body.page-booking-terms .adt-tablist a,
  body.page-booking-terms .adt-tablist [role="tab"] {
    white-space: normal;
    max-width: 16rem;
  }
  .adt-tabs > .adt-panel,
  .adt-tabs > [role="tabpanel"] {
    display: none;
  }
  .adt-tabs > .adt-panel.is-active,
  .adt-tabs > [role="tabpanel"].is-active,
  .adt-tabs > [role="tabpanel"]:not([hidden]) {
    display: block;
  }
  .adt-tabs.is-ready > [role="tabpanel"][hidden] { display: none !important; }
  .adt-tabs.is-ready > [role="tabpanel"]:not([hidden]) { display: block; }

  /* About hours: don’t wrap mid-time in the narrow facts card */
  .about-who__facts-list .adt-hours-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    vertical-align: top;
    max-width: calc(100% - 1.6rem);
  }
  .about-who__facts-list .adt-hours-stack span { display: block; }

  /* Services #servicing Tyres card: price <li> is display:flex, so text
     after the price became a third skinny column at ~1280–1920px. */
  #servicing .svc-pick[data-svc-pick="tyres"] .svc-stage1-prices li {
    display: block;
    text-align: left;
  }

  /* Book step 4 Check & pay: Vehicle type cards sit in a 3-col grid
     with only two labels, and .bd-card-t uses overflow-wrap: anywhere,
     so "Motorhome" could break mid-word. Desktop only. */
  .bd-vehtypes {
    grid-template-columns: repeat(2, minmax(9rem, 1fr));
  }
  .bd-vehtypes .bd-card-t,
  .bd-vehtypes .bd-card-t small {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    min-width: 0;
  }
  .bd-vehtypes .bd-card {
    min-width: 0;
  }
  .bd-vehtypes .bd-card-t {
    min-width: 9ch; /* width of "Motorhome"; still wraps longer small-print at spaces */
  }

  /* Book step 3 one-stop: times() emits a single .bd-time button labelled
     "Whole visit, about 5 hours · drop off 09:00–10:00". .bd-times uses
     repeat(auto-fill, minmax(96px, 1fr)) for hourly MOT slots, so that
     one long label sat in a 96px column and stacked into a tall narrow box.
     :only-child spans the full row; hourly MOT (many .bd-time buttons) is unchanged. */
  .bd-times > .bd-time:only-child {
    grid-column: 1 / -1;
    min-width: 100%;
    white-space: normal;
  }
}

/* Habitation: keep book cards tight to the top of the first tab */
.hab-book-first { margin-top: 0.5rem; }

/* One-stop price tiles: don’t split Warranted mid-word */
.os-opt h3,
.os-opt h3 span {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* About hours: each line stays intact */
.about-who__facts-list .adt-hours-stack span {
  white-space: nowrap;
}

/* Homepage heading (desktop and mobile).
   "Albyn MOT and Motorhome Service Centre" is the h1, returned one
   typographic step to about the old 48px size at 1440px
   (clamp(1.9rem, 3.8vw, 3rem); was clamp(2.15rem, 4.2vw, 3.375rem) = 54px).
   Mobile h1 is shrunk by the same ratio (~0.889).
   "Welcome to the World of Touring" is two typographic steps larger
   than the previous clamp (×1.125² ≈ 1.266) on desktop and mobile.
   The old "MOT & servicing in Broxburn" line stays smaller underneath.
   Mobile sizes stay tight so the Book buttons remain on the first screen. */
.mcl-welcome.mcl-h1-task {
  font-size: clamp(1.9rem, 3.8vw, 3rem) !important;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff;
  max-width: none !important;
  margin: 0;
  text-transform: none;
  text-wrap: balance;
}
.mcl-h1-welcome {
  margin: 0.4rem 0 0 !important;
  color: rgba(255,255,255,0.92);
  font-size: clamp(1.27rem, 2.5vw, 1.71rem);
  letter-spacing: 0.04em;
  font-weight: 500;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
}
.mcl-h1-welcome em { font-style: normal; }
.mcl-h1-welcome .mcl-touring {
  color: var(--alb-gold, #FFE29A);
  font-weight: 700;
}
.mcl-welcome-wrap .mcl-h1-sub {
  margin: 0.35rem 0 0;
  color: #e8eef5;
  font-size: clamp(0.78rem, 1.5vw, 1rem);
}

@media (max-width: 1023.98px) {
  .mcl-welcome.mcl-h1-task {
    font-size: clamp(1.2rem, 4.6vw, 1.51rem) !important;
    line-height: 1.15;
  }
  .mcl-h1-welcome {
    font-size: clamp(1.16rem, 4.05vw, 1.39rem);
    margin: 0.28rem 0 0 !important;
  }
  .mcl-welcome-wrap {
    padding: 0.85rem 0.95rem 0.75rem !important;
  }
  body.mcl-landing .mcl-center {
    gap: 0.9rem !important;
  }
  .mcl-welcome-wrap .mcl-h1-sub {
    font-size: clamp(0.75rem, 2.6vw, 0.88rem);
    margin: 0.28rem 0 0;
  }
}

@media (max-width: 575.98px) {
  .mcl-welcome.mcl-h1-task {
    font-size: clamp(1.14rem, 5vw, 1.33rem) !important;
  }
  .mcl-welcome-wrap {
    padding: 0.7rem 0.8rem 0.65rem !important;
  }
}

/* 16 Nov 2026: landing offer strip and book CTAs — equal width/height,
   sized to the tallest box, never truncate or hide words. */
.mcl-strip {
  align-items: stretch;
}
.mcl-strip > li {
  display: flex;
  min-width: 0;
}
.mcl-strip a {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: clip !important;
}
.mcl-strip a span,
.mcl-strip a b {
  display: block;
  min-width: 0;
  text-align: center;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}

@media (min-width: 768px) {
  .mcl-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  /* Three primary book buttons share one row height; sister link sits under Hab only. */
  .mcl-dual.mcl-book3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto;
    align-items: stretch;
  }
  .mcl-dual.mcl-book3 > a.mcl-book-btn {
    grid-row: 1;
    align-self: stretch;
    height: auto;
    min-height: 100%;
    overflow: visible !important;
  }
  .mcl-hab-stack {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: 1 / 3;
    min-width: 0;
  }
  .mcl-hab-stack > a.mcl-book-btn {
    height: 100%;
    min-height: 100%;
    overflow: visible !important;
  }
  .mcl-hab-stack > a.mcl-sister {
    grid-row: 2;
  }
}

@media (max-width: 767.98px) {
  .mcl-strip {
    grid-template-columns: 1fr;
  }
  /* Tallest strip tile at 360px was 81.3px — size every tile to that, with a little room. */
  .mcl-strip a {
    min-height: 88px;
  }
  /* Tallest primary book button at 360/390px was 89.8px. */
  .mcl-dual.mcl-book3 a.mcl-book-btn {
    min-height: 96px;
    overflow: visible !important;
  }
}

/* 16 Nov 2026: landing call box under the three offer tiles.
   Same chrome as the strip boxes; same width as one tile; number is a tel: link.
   The small phone in .mcl-trust is left in place. */
.mcl-offer-block {
  width: min(980px, 100%);
  margin: 12px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  box-sizing: border-box;
  justify-items: stretch;
}
.mcl-offer-block .mcl-strip {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
}
.mcl-call-prefer__lede {
  grid-column: 1 / -1;
  margin: 0.15rem 0 0;
  text-align: center;
  color: #f2f6fa;
  font-size: 0.88rem;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0,0,0,.9);
  overflow: visible;
  white-space: normal;
}
.mcl-call-prefer__box {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 0.5rem 0.8rem;
  background: rgba(8,12,18,.62);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 0;
  color: #fff !important;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  overflow: visible;
  white-space: nowrap;
}
.mcl-call-prefer__icon {
  display: block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: currentColor;
}
.mcl-call-prefer__box:hover,
.mcl-call-prefer__box:focus-visible {
  border-color: var(--alb-cyan, #00b0fd);
  outline: 2px solid #ffe29a;
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .mcl-call-prefer__box {
    min-height: 81px;
  }
}

@media (max-width: 767.98px) {
  .mcl-offer-block {
    grid-template-columns: 1fr;
  }
  .mcl-call-prefer__box {
    grid-column: 1;
    min-height: 88px;
  }
}

/* Call Us box + bold number (19 Nov 2026) */
.mcl-callus{width:100%;max-width:640px;margin:0.6rem auto 0.4rem;display:flex;flex-direction:column;align-items:stretch;gap:0.5rem;box-sizing:border-box}
.mcl-callus__box{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.15em;min-height:88px;padding:0.6rem 0.8rem;box-sizing:border-box;background:rgba(8,12,18,.62);border:1px solid rgba(255,255,255,.18);border-radius:0;color:#fff!important;text-decoration:none;text-align:center}
.mcl-callus__box .mcl-call-prefer__icon{font-size:1.4rem;color:var(--mcl-blue-bright,#3aa0ff)}
.mcl-callus__big{font-size:1.4rem;font-weight:800;letter-spacing:0.06em}
.mcl-callus__sub{font-size:0.88rem;font-weight:500;color:#f2f6fa}
.mcl-callus__box:hover,.mcl-callus__box:focus-visible{border-color:var(--alb-cyan,#00b0fd);outline:2px solid #ffe29a;outline-offset:2px}
.mcl-callus__num{margin:0;text-align:center;font-size:1.6rem;font-weight:800;text-shadow:0 1px 3px rgba(0,0,0,.9)}
.mcl-callus__num a{color:#fff!important;text-decoration:none}
