﻿/* ==========================================================================
   Quick Links — brand carousel
   Self-contained. Does not depend on Bootstrap, Owl Carousel or jQuery.
   Every value below is a variable, so you can retheme without touching rules.
   ========================================================================== */

.ql {
  /* --- layout -------------------------------------------------------- */
  --ql-per-view: 2;               /* slides visible at once (see media queries) */
  --ql-gap: 16px;
  --ql-tile-h: 104px;             /* fixed tile height = logos never jump */
  --ql-logo-max-h: 56px;
  --ql-radius: 12px;
    background: #ededed;
  /* --- colour -------------------------------------------------------- */
  --ql-accent: #a8894f;           /* DLAD gold — override to match your theme */
  --ql-ink: #1b2a3a;
  --ql-muted: #64748b;
  --ql-surface: #ffffff;
  --ql-surface-2: #f7f8fa;
  --ql-border: #e4e7ec;
  --ql-shadow: 0 1px 2px rgba(16, 32, 48, .05), 0 10px 24px rgba(16, 32, 48, .06);
  --ql-shadow-hover: 0 2px 4px rgba(16, 32, 48, .07), 0 16px 32px rgba(16, 32, 48, .10);

  /* --- motion -------------------------------------------------------- */
  --ql-speed: 480ms;
  --ql-ease: cubic-bezier(.22, .61, .36, 1);

  padding: 56px 0 40px;
  color: var(--ql-ink);
}

/* Screen-reader-only text ------------------------------------------------ */
.ql-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Heading ---------------------------------------------------------------- */
.ql-head {
  text-align: center;
  margin-bottom: 36px;
}

.ql-title {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.ql-rule {
  display: block;
  width: 64px;
  height: 3px;
  margin-inline: auto;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ql-accent), color-mix(in srgb, var(--ql-accent) 35%, transparent));
}

/* Carousel shell --------------------------------------------------------- */
.ql-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
}

/* The window. overflow:hidden clips sideways, so pad vertically and pull it
   back with a negative margin, otherwise tile shadows and focus rings get cut. */
.ql-viewport {
  overflow: hidden;
  padding-block: 10px;
  margin-block: -10px;
}

.ql-track {
  display: flex;
  gap: var(--ql-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translate3d(0, 0, 0);
  transition: transform var(--ql-speed) var(--ql-ease);
  will-change: transform;
}

.ql-slide {
  flex: 0 0 calc((100% - (var(--ql-per-view) - 1) * var(--ql-gap)) / var(--ql-per-view));
  max-width: calc((100% - (var(--ql-per-view) - 1) * var(--ql-gap)) / var(--ql-per-view));
  min-width: 0;
}

/* Logo tile -------------------------------------------------------------- */
.ql-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--ql-tile-h);
  padding: 16px;
  border: 1px solid var(--ql-border);
  border-radius: var(--ql-radius);
  background: var(--ql-surface);
  box-shadow: var(--ql-shadow);
  text-decoration: none;
  transition:
    transform 260ms var(--ql-ease),
    box-shadow 260ms var(--ql-ease),
    border-color 260ms var(--ql-ease);
}

/* The image never dictates the box: it fits inside it. */
.ql-tile img {
  max-width: 100%;
  max-height: var(--ql-logo-max-h);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .68;
  transition: filter 260ms var(--ql-ease), opacity 260ms var(--ql-ease);
}

.ql-tile:hover,
.ql-tile:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--ql-accent) 45%, var(--ql-border));
  box-shadow: var(--ql-shadow-hover);
}

.ql-tile:hover img,
.ql-tile:focus-visible img {
  filter: grayscale(0);
  opacity: 1;
}

/* Small "opens in new tab" mark, revealed on interaction */
.ql-ext {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-end: 8px;
  width: 12px;
  height: 12px;
  opacity: 0;
  background: currentColor;
  color: var(--ql-muted);
  transition: opacity 200ms var(--ql-ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ql-tile:hover .ql-ext,
.ql-tile:focus-visible .ql-ext { opacity: 1; }

/* RTL: the external-link glyph should point the other way */
[dir="rtl"] .ql-ext { transform: scaleX(-1); }

/* Arrows ----------------------------------------------------------------- */
.ql-nav {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;                 /* 44px = minimum comfortable touch target */
  height: 44px;
  padding: 0;
  border: 1px solid var(--ql-border);
  border-radius: 50%;
  background: var(--ql-surface);
  color: var(--ql-ink);
  cursor: pointer;
  box-shadow: var(--ql-shadow);
  transition: background-color 200ms var(--ql-ease), color 200ms var(--ql-ease),
              border-color 200ms var(--ql-ease), opacity 200ms var(--ql-ease);
}

.ql-nav svg { width: 22px; height: 22px; }

.ql-nav:hover:not(:disabled) {
  background: var(--ql-accent);
  border-color: var(--ql-accent);
  color: #fff;
}

.ql-nav:disabled {
  opacity: .35;
  cursor: default;
  box-shadow: none;
}

/* Arrows are direction-aware: the icons are authored pointing left/right,
   so flip them as a pair when the page is RTL. */
[dir="rtl"] .ql-nav svg { transform: scaleX(-1); }

/* Controls row ----------------------------------------------------------- */
.ql-controls {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
}

.ql-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ql-dot {
  width: 22px;
  height: 22px;               /* big hit area, small visible dot */
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}

.ql-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--ql-ink) 22%, transparent);
  transition: width 260ms var(--ql-ease), background-color 260ms var(--ql-ease);
}

.ql-dot[aria-selected="true"]::before {
  width: 22px;
  background: var(--ql-accent);
}

.ql-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--ql-border);
  border-radius: 99px;
  background: var(--ql-surface-2);
  color: var(--ql-muted);
  font: inherit;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: color 200ms var(--ql-ease), border-color 200ms var(--ql-ease),
              background-color 200ms var(--ql-ease);
}

.ql-toggle svg { width: 15px; height: 15px; }

.ql-toggle:hover {
  color: var(--ql-ink);
  border-color: color-mix(in srgb, var(--ql-accent) 45%, var(--ql-border));
}

/* aria-pressed="true" means "autoplay is stopped" → offer Play */
.ql-toggle .ql-icon-play { display: none; }
.ql-toggle[aria-pressed="true"] .ql-icon-pause { display: none; }
.ql-toggle[aria-pressed="true"] .ql-icon-play { display: block; }

/* Focus ------------------------------------------------------------------ */
.ql-tile:focus-visible,
.ql-nav:focus-visible,
.ql-dot:focus-visible,
.ql-toggle:focus-visible {
  outline: 3px solid var(--ql-accent);
  outline-offset: 3px;
}

.ql-dot:focus-visible { border-radius: 99px; }

/* When every logo already fits, there is nothing to control ---------------- */
.ql-carousel.is-static .ql-nav { display: none; }
.ql-carousel.is-static .ql-controls { display: none; }
.ql-carousel.is-static { grid-template-columns: minmax(0, 1fr); }

/* Grab / drag cue -------------------------------------------------------- */
.ql-carousel.is-dragging .ql-track { transition: none; }
.ql-carousel.is-dragging .ql-tile { cursor: grabbing; }

/* Responsive ------------------------------------------------------------- */
@media (min-width: 480px) { .ql { --ql-per-view: 3; } }
@media (min-width: 768px) { .ql { --ql-per-view: 4; --ql-gap: 20px; } }
@media (min-width: 992px) { .ql { --ql-per-view: 5; --ql-gap: 24px; } }

/* On narrow screens the arrows drop below the strip, either side of the dots */
@media (max-width: 575.98px) {
  .ql-viewport { grid-column: 1 / -1; grid-row: 1; }
  .ql-prev     { grid-column: 1; grid-row: 2; }
  .ql-controls { grid-column: 2; grid-row: 2; }
  .ql-next     { grid-column: 3; grid-row: 2; }
  .ql-nav { margin-top: 22px; }
  .ql-controls { gap: 12px; }
}

/* Reduced motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .ql-track,
  .ql-tile,
  .ql-tile img,
  .ql-nav,
  .ql-toggle,
  .ql-dot::before {
    transition-duration: 1ms !important;
  }
  .ql-tile:hover { transform: none; }
}

/* Forced colours (Windows high contrast) ---------------------------------- */
@media (forced-colors: active) {
  .ql-tile,
  .ql-nav,
  .ql-toggle { border: 1px solid CanvasText; }
  .ql-tile img { filter: none; opacity: 1; }
  .ql-dot[aria-selected="true"]::before { background: Highlight; }
}

/* Fallback for browsers without color-mix() (older Safari / Edge) ---------- */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .ql-rule { background: var(--ql-accent); }
  .ql-dot::before { background: #cbd2dc; }
  .ql-tile:hover,
  .ql-tile:focus-visible,
  .ql-toggle:hover { border-color: var(--ql-accent); }
}


























footer.DDA {
  transition: transform .3s ease, opacity .3s ease;
}

/* hidden state — keep it focusable, not display:none */
footer.DDA.lad-state-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

/* keyboard focus anywhere inside forces it back */
footer.DDA:focus-within,
footer.DDA.is-kb-focus {
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  footer.DDA { transition: none; }
}