/* ═══════════════════════════════════════════════════════════════════════════
   LAC theme 2027 — "Version C" (clean modern + soft-shadow cards)
   Brand: Association Green #10AC84 · Black #111111 · Red #D60000 · White
   Everything is scoped to .lacx, so pages that have not been converted are
   untouched. A page opts in by wrapping its content in <div class="lacx">.
   ═══════════════════════════════════════════════════════════════════════════ */

.lacx {
  --lx-green: #10AC84;
  --lx-green-dark: #087D60;
  --lx-green-light: #E7F6F0;
  --lx-black: #111111;
  --lx-red: #D60000;
  --lx-white: #FFFFFF;
  --lx-page: #F7F7F7;
  --lx-line: #E5E5E5;
  --lx-muted: #5C5C5C;
  --lx-soft: #CCCCCC;
  --lx-dark-2: #1C1C1C;
  --lx-dark-line: #2E2E2E;
  --lx-shadow: 0 10px 30px rgba(0, 0, 0, .06);
  --lx-shadow-lift: 0 18px 40px rgba(0, 0, 0, .10);
  --lx-shadow-bar: 0 18px 45px rgba(0, 0, 0, .12);
  --lx-radius: 20px;
  --lx-head: Poppins, Arial, Helvetica, sans-serif;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  background: var(--lx-page);
  color: var(--lx-black);
  font-size: 16px;
  line-height: 1.6;
}

/* ── Guards against the legacy theme (section{display:flex}, main > * widths…) ── */
.lacx section, .lacx header, .lacx footer, .lacx article, .lacx nav, .lacx form {
  display: block !important; float: none !important; width: auto !important;
  max-width: none !important; margin: 0; padding: 0; background: none; box-sizing: border-box;
}
.lacx *, .lacx *::before, .lacx *::after { box-sizing: border-box; }
.lacx h1, .lacx h2, .lacx h3, .lacx h4 {
  font-family: var(--lx-head) !important; color: inherit; margin: 0 !important;
  text-transform: none !important; letter-spacing: -0.02em; padding: 0 !important;
}
.lacx p { margin: 0 !important; }
.lacx ul { margin: 0; padding: 0; list-style: none; }
.lacx img { max-width: 100%; height: auto; }
.lacx a { text-decoration: none; transition: color .15s, background-color .15s, box-shadow .2s, transform .2s; }
.lacx a:focus-visible, .lacx button:focus-visible, .lacx input:focus-visible {
  outline: 3px solid var(--lx-green); outline-offset: 2px;
}

/* ── Layout ── */
.lacx .lx-wrap { max-width: 1200px; margin: 0 auto !important; padding: 0 32px !important; width: 100% !important; }
.lacx .lx-section { padding: 0 0 104px !important; }
.lacx .lx-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.lacx .lx-head-row > div { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }

/* ── Type ── */
.lacx .lx-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--lx-red);
}
.lacx .lx-eyebrow--light { color: var(--lx-green); }
.lacx .lx-eyebrow-rule { width: 28px; height: 2px; background: var(--lx-red); display: inline-block; }
.lacx .lx-h2 { font-size: 44px !important; font-weight: 700 !important; line-height: 1.08 !important; }
.lacx .lx-h3 { font-size: 32px !important; font-weight: 700 !important; line-height: 1.15 !important; }
.lacx .lx-lead { font-size: 16px; line-height: 1.6; color: var(--lx-muted); }
.lacx .lx-link { color: var(--lx-red) !important; font-weight: 600; font-size: 15px; white-space: nowrap; }
.lacx .lx-link:hover { color: var(--lx-black) !important; }

/* ── Buttons ── */
.lacx .lx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1.2; cursor: pointer; white-space: nowrap;
}
.lacx .lx-btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.lacx .lx-btn-green { background: var(--lx-green); color: #fff !important; }
.lacx .lx-btn-green:hover { background: var(--lx-green-dark); color: #fff !important; }
.lacx .lx-btn-ghost-light { border-color: #4A4A4A; color: #fff !important; background: transparent; }
.lacx .lx-btn-ghost-light:hover { border-color: #fff; }
.lacx .lx-btn-ghost-dark { border-color: var(--lx-black); color: var(--lx-black) !important; background: transparent; }
.lacx .lx-btn-ghost-dark:hover { background: var(--lx-black); color: #fff !important; }
.lacx .lx-btn-white-ghost { border-color: #fff; color: #fff !important; background: transparent; }
.lacx .lx-btn-white-ghost:hover { background: #fff; color: var(--lx-black) !important; }
.lacx .lx-btn svg { flex: none; }

/* ── Cards ── */
.lacx .lx-card {
  display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--lx-radius);
  background: #fff; border: 1px solid #EFEFEF; box-shadow: var(--lx-shadow); color: var(--lx-black) !important;
}
.lacx a.lx-card:hover { transform: translateY(-3px); box-shadow: var(--lx-shadow-lift); }
.lacx .lx-chip {
  flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--lx-green-light);
  display: inline-flex; align-items: center; justify-content: center; color: var(--lx-green-dark);
}
.lacx .lx-chip svg { width: 26px; height: 26px; }
.lacx .lx-chip--sm { width: 52px; height: 52px; border-radius: 14px; }
.lacx .lx-card-title { font-family: var(--lx-head); font-size: 22px; font-weight: 600; line-height: 1.25; }
.lacx .lx-card-text { font-size: 15px; line-height: 1.6; color: var(--lx-muted); }
.lacx .lx-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  background: var(--lx-green-light); color: var(--lx-green-dark); font-size: 12px; font-weight: 700;
}

/* ── Hero ── */
.lacx .lx-hero { background: var(--lx-black) !important; color: #fff; }
.lacx .lx-hero-inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 88px !important; padding-bottom: 150px !important; }
.lacx .lx-hero-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.lacx .lx-hero-title { font-size: 62px !important; font-weight: 700 !important; line-height: 1.08 !important; color: #fff !important; }
.lacx .lx-hero-title * { color: inherit; }
.lacx .lx-hero-text { font-size: 19px; line-height: 1.6; color: var(--lx-soft); max-width: 580px; }
.lacx .lx-hero-text * { color: inherit; }
.lacx .lx-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lacx .lx-now { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.lacx .lx-now-label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9A9A9A; margin-bottom: 4px !important; }
.lacx .lx-now-item {
  display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 16px;
  background: var(--lx-dark-2); border: 1px solid var(--lx-dark-line); color: #fff !important;
}
.lacx .lx-now-item:hover { border-color: #4A4A4A; transform: translateY(-2px); }
.lacx .lx-now-media {
  flex: none; width: 56px; height: 56px; border-radius: 12px; background: #2A2A2A; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.lacx .lx-now-media img { width: 56px; height: 56px; object-fit: contain; background: #fff; padding: 6px; }
.lacx .lx-now-media--green { background: var(--lx-green); }
.lacx .lx-now-date {
  background: #fff; color: var(--lx-black); flex-direction: column; line-height: 1;
}
.lacx .lx-now-date b { font-size: 11px; font-weight: 700; color: var(--lx-red); text-transform: uppercase; }
.lacx .lx-now-date span { font-family: var(--lx-head); font-size: 22px; font-weight: 700; margin-top: 3px; }
.lacx .lx-now-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lacx .lx-now-kicker { font-size: 12px; font-weight: 600; color: var(--lx-green); text-transform: uppercase; letter-spacing: .06em; }
.lacx .lx-now-title { font-family: var(--lx-head); font-size: 19px; font-weight: 600; line-height: 1.25; }
.lacx .lx-now-sub { font-size: 14px; color: var(--lx-soft); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ── Fact bar (overlaps the hero) ── */
.lacx .lx-facts-wrap { position: relative; z-index: 2; margin-top: -72px !important; margin-bottom: 96px !important; }
.lacx .lx-facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff;
  border-radius: var(--lx-radius); box-shadow: var(--lx-shadow-bar); overflow: hidden;
}
.lacx .lx-fact { display: flex; align-items: center; gap: 16px; padding: 26px 24px; border-right: 1px solid #ECECEC; }
.lacx .lx-fact:last-child { border-right: 0; }
.lacx .lx-fact-num { font-family: var(--lx-head); font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.lacx .lx-fact-label { font-size: 14px; color: var(--lx-muted); line-height: 1.35; }

/* ── Scheduled image banner (admin) ── */
.lacx .lx-banner { display: block; border-radius: var(--lx-radius); overflow: hidden; box-shadow: var(--lx-shadow); }
.lacx .lx-banner img { display: block; width: 100%; height: auto; }

/* ── About block (admin) ── */
.lacx .lx-about { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.lacx .lx-about--top { align-items: flex-start; } .lacx .lx-about--bottom { align-items: flex-end; }
.lacx .lx-about-text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.lacx .lx-about-text .lx-prose { font-size: 17px; line-height: 1.75; color: var(--lx-muted); }
.lacx .lx-about-text .lx-prose p { margin: 0 0 14px !important; }
.lacx .lx-about-img { flex: 1 1 360px; min-width: 0; }
.lacx .lx-about-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--lx-radius); box-shadow: var(--lx-shadow-lift); display: block; background: #E2E2E2; }
.lacx .lx-about--img-left .lx-about-img { order: -1; }

/* ── Grids ── */
.lacx .lx-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.lacx .lx-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

/* ── Library search ── */
.lacx .lx-search {
  background: #fff; border: 1px solid #EFEFEF; border-top: 5px solid var(--lx-green); border-radius: 24px;
  padding: 56px; box-shadow: 0 18px 45px rgba(0, 0, 0, .08); display: flex; flex-wrap: wrap; gap: 40px; align-items: center;
}
.lacx .lx-search-intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.lacx .lx-search-form { flex: 999 1 460px; min-width: 0; display: flex !important; flex-direction: column; gap: 16px; }
.lacx .lx-search-form label { font-size: 14px; font-weight: 600; margin: 0; }
.lacx .lx-search-row { display: flex; gap: 10px; }
.lacx .lx-search-row input {
  flex: 1; min-width: 0; height: 56px; padding: 0 20px; border-radius: 14px; border: 1.5px solid var(--lx-soft);
  font: inherit; font-size: 16px; background: var(--lx-page); color: var(--lx-black); box-shadow: none; margin: 0;
}
.lacx .lx-search-row input:focus { border-color: var(--lx-green); outline: none; box-shadow: 0 0 0 3px rgba(16,172,132,.2); }
.lacx .lx-search-row button { height: 56px; padding: 0 26px; border: 0; border-radius: 14px; background: var(--lx-black); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.lacx .lx-search-row button:hover { background: #333; }
.lacx .lx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lacx .lx-chips a { padding: 8px 14px; border-radius: 999px; background: #F1F1F1; color: var(--lx-black) !important; font-size: 14px; font-weight: 500; }
.lacx .lx-chips a:hover { background: var(--lx-green-light); color: var(--lx-green-dark) !important; }

/* ── News + events ── */
.lacx .lx-split { display: flex; flex-wrap: wrap; gap: 64px; }
.lacx .lx-split-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.lacx .lx-split-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.lacx .lx-split-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.lacx .lx-feature { display: flex; flex-direction: column; gap: 14px; color: var(--lx-black) !important; }
.lacx .lx-feature-img { aspect-ratio: 16 / 8; border-radius: var(--lx-radius); overflow: hidden; background: #E2E2E2; box-shadow: var(--lx-shadow); }
.lacx .lx-feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.lacx .lx-feature:hover .lx-feature-img img { transform: scale(1.03); }
.lacx .lx-meta { font-size: 13px; color: var(--lx-muted); }
.lacx .lx-feature-title { font-family: var(--lx-head); font-size: 26px; font-weight: 600; line-height: 1.25; }
.lacx .lx-feature:hover .lx-feature-title { color: var(--lx-red); }
.lacx .lx-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; border-top: 1px solid var(--lx-line); padding-top: 24px; }
.lacx .lx-more a { display: flex; flex-direction: column; gap: 8px; color: var(--lx-black) !important; }
.lacx .lx-more a:hover .lx-more-title { color: var(--lx-red); }
.lacx .lx-more-title { font-size: 18px; font-weight: 600; line-height: 1.35; }
.lacx .lx-events { background: #fff; border-radius: var(--lx-radius); padding: 6px 22px; box-shadow: var(--lx-shadow); display: flex; flex-direction: column; }
.lacx .lx-event { display: flex; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--lx-line); color: var(--lx-black) !important; }
.lacx .lx-event:last-child { border-bottom: 0; }
.lacx .lx-event:hover .lx-event-name { color: var(--lx-red); }
.lacx .lx-date {
  flex: none; width: 60px; height: 64px; border-radius: 12px; background: #F1F1F1; color: var(--lx-black);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05;
}
.lacx .lx-date b { font-size: 11px; font-weight: 700; color: var(--lx-red); text-transform: uppercase; }
.lacx .lx-date span { font-family: var(--lx-head); font-size: 24px; font-weight: 700; }
.lacx .lx-date--dark { background: var(--lx-black); color: #fff; }
.lacx .lx-date--dark b { color: #6FE0BD; }
.lacx .lx-event-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lacx .lx-event-name { font-size: 17px; font-weight: 600; line-height: 1.3; }
.lacx .lx-empty { padding: 22px 0; color: var(--lx-muted); font-size: 15px; }

/* ── Why Linux ── */
.lacx .lx-point { background: #fff; border-radius: var(--lx-radius); border-top: 4px solid var(--lx-black); padding: 26px; box-shadow: var(--lx-shadow); display: flex; flex-direction: column; gap: 12px; }
.lacx .lx-point-title { font-family: var(--lx-head); font-size: 20px; font-weight: 600; }

/* ── Partner ticker ── */
.lacx .lx-ticker { position: relative; overflow: hidden; padding: 12px 0 28px; }
.lacx .lx-ticker-track { display: flex; width: max-content; animation: lx-ticker var(--lx-ticker-speed, 50s) linear infinite; }
.lacx .lx-ticker:hover .lx-ticker-track, .lacx .lx-ticker:focus-within .lx-ticker-track { animation-play-state: paused; }
.lacx .lx-ticker-group { display: flex; gap: 20px; padding-right: 20px; }
.lacx .lx-ticker .lac-connection-item {
  flex: none; width: 180px; height: 84px; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.06);
  display: flex; align-items: center; justify-content: center; padding: 14px 18px; transition: transform .2s, box-shadow .2s;
}
.lacx .lx-ticker .lac-connection-item:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.10); }
.lacx .lx-ticker .lac-connection-item a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.lacx .lx-ticker .lac-connection-item img { max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain; }
.lacx .lx-ticker-fade { position: absolute; top: 0; bottom: 0; width: 120px; pointer-events: none; z-index: 1; }
.lacx .lx-ticker-fade--l { left: 0; background: linear-gradient(90deg, var(--lx-page), rgba(247,247,247,0)); }
.lacx .lx-ticker-fade--r { right: 0; background: linear-gradient(270deg, var(--lx-page), rgba(247,247,247,0)); }
@keyframes lx-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Closing CTA band ── */
.lacx .lx-cta {
  background: var(--lx-black); color: #fff; border-radius: 28px; border-top: 4px solid var(--lx-red);
  box-shadow: 0 24px 50px rgba(0,0,0,.18); padding: 64px; display: flex; flex-wrap: wrap; gap: 40px;
  align-items: center; justify-content: space-between;
}
.lacx .lx-cta-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.lacx .lx-cta-text p { font-size: 18px; line-height: 1.6; color: var(--lx-soft); }
.lacx .lx-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Responsive ── */
@media (max-width: 991px) {
  .lacx .lx-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lacx .lx-fact:nth-child(2) { border-right: 0; }
  .lacx .lx-fact:nth-child(-n+2) { border-bottom: 1px solid #ECECEC; }
  .lacx .lx-hero-title { font-size: 48px !important; }
  .lacx .lx-h2 { font-size: 36px !important; }
}
@media (max-width: 760px) {
  .lacx .lx-wrap { padding: 0 20px !important; }
  .lacx .lx-section { padding-bottom: 72px !important; }
  .lacx .lx-hero-inner { padding-top: 56px !important; padding-bottom: 120px !important; gap: 40px; }
  .lacx .lx-hero-title { font-size: 38px !important; }
  .lacx .lx-hero-text { font-size: 17px; }
  .lacx .lx-h2 { font-size: 30px !important; }
  .lacx .lx-h3 { font-size: 26px !important; }
  .lacx .lx-search, .lacx .lx-cta { padding: 32px 24px; }
  .lacx .lx-search-row { flex-direction: column; }
  .lacx .lx-search-row button { width: 100%; }
  .lacx .lx-btn { white-space: normal; text-align: center; }
  .lacx .lx-hero-actions .lx-btn, .lacx .lx-cta-actions .lx-btn { flex: 1 1 100%; }
  .lacx .lx-ticker-fade { width: 40px; }
}
@media (max-width: 520px) {
  .lacx .lx-facts { grid-template-columns: 1fr; }
  .lacx .lx-fact { border-right: 0; border-bottom: 1px solid #ECECEC; }
  .lacx .lx-fact:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lacx .lx-ticker-track { animation: none; }
  .lacx .lx-ticker { overflow-x: auto; }
  .lacx a, .lacx .lx-feature-img img { transition: none; }
}

/* Admin rich text may use black (#111111) for slides with light images; keep it readable on the dark hero. */
.lacx .lx-hero-title [style*="#111111"], .lacx .lx-hero-title [style*="17, 17, 17"],
.lacx .lx-hero-text [style*="#111111"], .lacx .lx-hero-text [style*="17, 17, 17"] { color: #FFFFFF !important; }

/* ── Hero: lighter, with the map of Canada behind it ── */
.lacx .lx-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 70% 90% at 72% 45%, rgba(16,172,132,.30) 0%, rgba(16,172,132,0) 70%),
              linear-gradient(115deg, #151515 0%, #1B2723 45%, #12382E 100%) !important;
}
.lacx .lx-hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: 4%; bottom: 8%; right: -2%; width: 68%;
  background: url("/assets/images/canada-map.svg") center / contain no-repeat;
  opacity: .22;
}
.lacx .lx-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%); mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
}
.lacx .lx-hero .lx-now-item { background: rgba(17,17,17,.55) !important; border-color: rgba(255,255,255,.10) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lacx .lx-hero .lx-now-item:hover { border-color: rgba(255,255,255,.22) !important; }
@media (max-width: 900px) { .lacx .lx-hero::before { width: 110%; right: -30%; top: 2%; bottom: auto; height: 60%; opacity: .14; } }
@media (min-width: 901px) { .lacx .lx-hero::before { top: 6%; bottom: 14%; right: 3%; width: 60%; opacity: .26; } }
