/* ── Skip link ───────────────────────────────────────────────────────────── */
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.visually-hidden-focusable:focus {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: auto !important;
  height: auto !important;
  clip: auto !important;
  overflow: visible !important;
  white-space: normal !important;
  z-index: 9999;
  padding: 8px 16px;
  background: #d59926;
  color: #272a30;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

/* ── Volte Rounded font ──────────────────────────────────────────────────── */
@font-face {
  font-family: 'VolteRounded';
  src: url('../fonts/VolteRounded-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'VolteRounded';
  src: url('../fonts/VolteRounded-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ── Bootstrap 5 variable overrides ─────────────────────────────────────── */
:root {
  --bs-primary: #d59926;
  --bs-primary-rgb: 213, 153, 38;
  --bs-dark: #272a30;
  --bs-dark-rgb: 39, 42, 48;
  --bs-body-font-family: 'VolteRounded', system-ui, sans-serif;
  --bs-body-bg: #f4f4f5;
  --bs-body-color: #272a30;
  --bs-link-color: #d59926;
  --bs-link-hover-color: #c08820;
  --bs-border-radius: 10px;
}

/* Bootstrap loads after this file and resets --bs-body-font-family in :root.
   Force VolteRounded directly on body and all descendants. */
body, body * {
  font-family: 'VolteRounded', system-ui, sans-serif;
}

/* ── Full-height page so footer sticks to bottom ────────────────────────── */
html { height: 100%; }
body { min-height: 100%; }
.dialog-off-canvas-main-canvas {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.ll-main { flex: 1; }

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.ll-navbar {
  background: #272a30;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.ll-logo-link img { display: block; height: 36px; width: auto; }
.ll-logo-link:focus-visible { outline: 2px solid #d59926; outline-offset: 4px; }

.ll-nav-links { display: flex; gap: 24px; }
.ll-nav-links a {
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
  font-size: 13px;
  transition: color .15s;
}
.ll-nav-links a:hover { color: #fff; }

/* ── Language switcher (dropdown) ────────────────────────────────────────── */
.ll-lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 16px;
  padding-right: 16px;
  border-right: 1px solid rgba(255, 255, 255, .15);
}

.ll-lang-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, .55);
  text-decoration: none;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 4px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}

.ll-lang-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.ll-lang-link--active {
  color: #fff;
  font-weight: 600;
  cursor: default;
}

.ll-lang-link img {
  display: block;
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
}

/* Dropdown button */
.ll-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 6px;
  color: rgba(255, 255, 255, .85);
  font-size: 12px;
  font-family: inherit;
  padding: 4px 8px 4px 6px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.ll-lang-btn:hover,
.ll-lang-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }
.ll-lang-btn img { border-radius: 2px; object-fit: cover; }
.ll-lang-chevron { opacity: .6; transition: transform .2s; flex-shrink: 0; }
.ll-lang-btn[aria-expanded="true"] .ll-lang-chevron { transform: rotate(180deg); }

/* Dropdown list */
.ll-lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #1e2127;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  list-style: none;
  margin: 0;
  padding: 4px;
  min-width: 150px;
  z-index: 2000;
}
.ll-lang-dropdown li { margin: 0; }
.ll-lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 13px;
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  transition: background .1s, color .1s;
}
.ll-lang-option:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.ll-lang-option img { border-radius: 2px; object-fit: cover; flex-shrink: 0; }

/* Make parent relative so dropdown positions correctly */
.ll-lang-switcher { position: relative; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.ll-hero {
  background: #272a30;
  color: #fff;
  padding: 56px 24px 48px;
  text-align: center;
}

.ll-hero-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -.3px;
}

.ll-hero-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 28px;
}

.ll-hero-search {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .35);
}

.ll-hero-search input {
  flex: 1;
  border: none;
  padding: 14px 16px;
  font-size: 14px;
  font-family: 'VolteRounded', system-ui, sans-serif;
  color: #272a30;
  outline: none;
  background: transparent;
}

.ll-hero-search button {
  background: #d59926;
  color: #272a30;
  border: none;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'VolteRounded', system-ui, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.ll-hero-search button:hover { background: #c08820; }

/* ── Section label ───────────────────────────────────────────────────────── */
.ll-section-label {
  font-size: 11px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 16px;
}

/* ── Category cards ──────────────────────────────────────────────────────── */
.ll-category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.ll-category-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s, transform .15s;
  display: block;
}
.ll-category-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
  transform: translateY(-2px);
  color: inherit;
  text-decoration: none;
}

.ll-category-name {
  font-weight: 600;
  font-size: 14px;
  color: #272a30;
  margin-bottom: 4px;
  display: block;
}

.ll-category-count { font-size: 12px; color: #bbb; display: block; }

/* ── Main content area ───────────────────────────────────────────────────── */
.ll-main { padding: 40px 24px; max-width: 1200px; margin: 0 auto; width: 100%; }

/* ── Article layout ──────────────────────────────────────────────────────── */
.ll-article-layout { display: flex; gap: 32px; align-items: flex-start; }

.ll-article-sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 72px;
}

.ll-sidebar-category {
  font-size: 11px;
  font-weight: 600;
  color: #d59926;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}

.ll-sidebar-list { list-style: none; margin: 0; padding: 0; }

.ll-sidebar-list li { border-bottom: 1px solid #eee; }

.ll-sidebar-list a {
  display: block;
  padding: 8px 10px;
  font-size: 13px;
  color: #888;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color .1s, border-color .1s;
}
.ll-sidebar-list a:hover { color: #272a30; }
.ll-sidebar-list a:focus-visible { outline: 2px solid #d59926; outline-offset: 2px; color: #272a30; }
.ll-sidebar-list a.is-active {
  color: #272a30;
  font-weight: 600;
  border-left-color: #d59926;
  background: #fff;
}

.ll-sidebar-list__current {
  display: block;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #272a30;
  border-left: 3px solid #d59926;
  background: #fff;
}

.ll-article-content { flex: 1; min-width: 0; }

.ll-article-category {
  font-size: 11px;
  font-weight: 600;
  color: #d59926;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.ll-article-category a { color: #d59926; text-decoration: none; }
.ll-article-category a:hover { text-decoration: underline; }

.ll-article-content h1 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  color: #272a30;
  margin-bottom: 24px;
  line-height: 1.3;
}

.ll-article-body { line-height: 1.75; color: #444; font-size: 15px; }
.ll-article-body h2 { font-size: 18px; font-weight: 600; color: #272a30; margin: 28px 0 12px; }
.ll-article-body h3 { font-size: 15px; font-weight: 600; color: #272a30; margin: 20px 0 8px; }
.ll-article-body a { color: #d59926; }
.ll-article-body img { max-width: 100%; border-radius: 8px; margin: 12px 0; }

/* ── Category hero ───────────────────────────────────────────────────────── */
.ll-cat-hero {
  background: linear-gradient(135deg, #272a30 0%, #353940 100%);
  padding: 32px 24px 28px;
  border-bottom: 1px solid rgba(0, 0, 0, .15);
}
.ll-cat-hero__inner { max-width: 1200px; margin: 0 auto; }

.ll-breadcrumb {
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
  margin-bottom: 12px;
}
.ll-breadcrumb a { color: rgba(255, 255, 255, .55); text-decoration: none; }
.ll-breadcrumb a:hover { color: rgba(255, 255, 255, .85); }

.ll-cat-hero__title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.2;
}
.ll-cat-hero__count {
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
  margin: 0;
}

/* ── Article list (taxonomy/category page) ───────────────────────────────── */
.ll-main--narrow { max-width: 860px; }

.ll-article-list { display: flex; flex-direction: column; gap: 2px; }

/* Strip default Views wrapper spacing */
.ll-article-list .view-content { display: flex; flex-direction: column; gap: 2px; }
.ll-article-list .views-row { margin: 0; padding: 0; }

/* ── Article card (teaser) ───────────────────────────────────────────────── */
.ll-article-card { margin: 0; }

.ll-article-card__link {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #eef0f2;
  transition: box-shadow .15s, border-color .15s, transform .1s;
}
.ll-article-card__link:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  border-color: #d59926;
  transform: translateY(-1px);
}
.ll-article-card__link:focus-visible { outline: 2px solid #d59926; outline-offset: 2px; }

.ll-article-card__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #fdf6e3;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d59926;
}

.ll-article-card__body { flex: 1; min-width: 0; }

.ll-article-card__cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #d59926;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 4px;
}

.ll-article-card__title {
  font-size: 15px;
  font-weight: 600;
  color: #272a30;
  margin: 0 0 5px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ll-article-card__excerpt {
  font-size: 13px;
  color: #888;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Strip Drupal's field wrapper margins inside the excerpt */
.ll-article-card__excerpt p,
.ll-article-card__excerpt .field__item { margin: 0; }

.ll-article-card__arrow {
  flex-shrink: 0;
  color: #ccc;
  transition: color .15s, transform .15s;
}
.ll-article-card__link:hover .ll-article-card__arrow { color: #d59926; transform: translateX(3px); }

/* ── Search page ─────────────────────────────────────────────────────────── */
.ll-search-page { max-width: 760px; }

.ll-search-refine {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.ll-search-refine input {
  flex: 1;
  padding: 11px 16px;
  border: 1.5px solid #e0e2e6;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: #272a30;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.ll-search-refine input:focus {
  outline: none;
  border-color: #d59926;
  box-shadow: 0 0 0 3px rgba(213, 153, 38, .15);
}
.ll-search-refine button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  background: #d59926;
  color: #272a30;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.ll-search-refine button:hover { background: #c08820; }

.ll-search-header {
  margin-bottom: 20px;
  font-size: 14px;
  color: #888;
}
.ll-search-header strong { color: #272a30; font-weight: 600; }

.ll-search-results { display: flex; flex-direction: column; gap: 2px; }

.ll-search-result {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 10px;
  padding: 16px 18px;
  border: 1px solid #eef0f2;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s, border-color .15s, transform .1s;
}
.ll-search-result:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  border-color: #d59926;
  transform: translateY(-1px);
}
.ll-search-result:focus-visible { outline: 2px solid #d59926; outline-offset: 2px; }

.ll-search-result__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: #fdf6e3;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d59926;
}

.ll-search-result__body { flex: 1; min-width: 0; }

.ll-search-result__cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #d59926;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 3px;
}

.ll-search-result__title {
  font-size: 15px;
  font-weight: 600;
  color: #272a30;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ll-search-result__excerpt {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ll-search-result__arrow {
  flex-shrink: 0;
  color: #ccc;
  transition: color .15s, transform .15s;
}
.ll-search-result:hover .ll-search-result__arrow { color: #d59926; transform: translateX(3px); }

.ll-search-empty {
  text-align: center;
  padding: 48px 24px;
  color: #aaa;
}
.ll-search-empty__icon { margin-bottom: 16px; opacity: .35; }
.ll-search-empty__msg { font-size: 15px; color: #666; }
.ll-search-empty__msg a { color: #d59926; }

.ll-search-more { font-size: 12px; color: #999; margin-top: 16px; font-style: italic; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.ll-footer {
  background: #272a30;
  color: rgba(255, 255, 255, .45);
  padding: 24px;
  font-size: 13px;
  text-align: center;
  margin-top: 48px;
}
.ll-footer a { color: rgba(255, 255, 255, .6); text-decoration: none; }
.ll-footer a:hover { color: #fff; }

/* ── Chat widget — override to brand colours ─────────────────────────────── */
body .kb-chat-toggle { background: #d59926; color: #272a30; box-shadow: 0 4px 14px rgba(213,153,38,.4); }
body .kb-chat-toggle:hover { background: #c08820; }
body .kb-chat-header { background: #272a30; }
body .kb-chat-message--user { background: #272a30; }
body .kb-chat-input-row button { background: #d59926; color: #272a30; }
body .kb-chat-input-row input:focus { border-color: #d59926; }
body .kb-chat-sources a { color: #d59926; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ll-article-layout { flex-direction: column; }
  .ll-article-sidebar { width: 100%; position: static; }
  .ll-hero { padding: 40px 16px 36px; }
  .ll-navbar { padding: 10px 16px; }
  .ll-category-cards { grid-template-columns: repeat(2, 1fr); }
  .ll-lang-switcher { display: none; }
  .ll-article-card__title { white-space: normal; }
  .ll-search-result__excerpt { display: none; }
  .ll-cat-hero { padding: 24px 16px 20px; }
}
