/* LML public knowledge assessments preview, homepage only. */
#home .lm-lml-section {
  background: #fff;
  padding: 43px 0 47px;
}
#home .lm-lml-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 18px;
}
#home .lm-lml-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-width: 0;
  color: #092d61;
  font-size: clamp(1.55rem, 2.8vw, 2.28rem);
  font-weight: 700;
  line-height: 1.42;
  max-width: 100%;
}
#home .lm-lml-heading svg { width: 28px; height: 28px; flex: 0 0 28px; color: #1762b3; }
#home .lm-lml-enter {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 15px;
  background: #13569d;
  border: 1px solid #13569d;
  border-radius: 9px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .84rem;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(19, 86, 157, .12);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
#home .lm-lml-enter:hover { background: #073a7b; border-color: #073a7b; color: #fff; box-shadow: 0 6px 16px rgba(19,86,157,.2); transform: translateY(-1px); }
#home .lm-lml-enter:focus-visible, #home .lm-lml-card a:focus-visible, #home .lm-lml-explore a:focus-visible { outline: 3px solid #e5aa24; outline-offset: 3px; }
#home .lm-lml-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
#home .lm-lml-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid #dce6f2; background: #fff; border-radius: 13px;
  box-shadow: 0 6px 17px rgba(16, 57, 105, .052);
  transition: transform .18s ease, box-shadow .18s ease;
}
#home .lm-lml-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(16,57,105,.11); }
#home .lm-lml-cover {
  position: relative; display: grid; place-items: center; width: 100%; height: auto; aspect-ratio: 16 / 9;
  overflow: hidden; background: linear-gradient(120deg, #e7effc, #f1f6fe); color: #3270b6;
  text-decoration: none;
}
#home .lm-lml-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
#home .lm-lml-cover svg { width: 39px; height: 39px; }
#home .lm-lml-labels { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 22px; }
#home .lm-lml-new {
  flex: 0 0 auto;
  padding: 4px 8px; border-radius: 6px; background: #fee8e8;
  border: 1px solid #ffcccc; color: #af202a;
  font-weight: 800; font-size: .67rem; line-height: 1.2; letter-spacing: .04em;
}
#home .lm-lml-content { display: flex; flex: 1 1 auto; flex-direction: column; gap: 9px; padding: 13px 15px 15px; min-width: 0; }
#home .lm-lml-category { display: block; color: #52759d; font-size: .72rem; line-height: 1.5; }
#home .lm-lml-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden; overflow-wrap: anywhere; margin: 0; min-height: 2.9em;
  font-size: .94rem; font-weight: 750; line-height: 1.45; color: #0a3d80;
}
#home .lm-lml-title a { color: inherit; text-decoration: none; }
#home .lm-lml-title a:hover { text-decoration: underline; }
#home .lm-lml-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
#home .lm-lml-metric { display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 33px; padding: 6px 9px; background: #f3f7fc; border: 1px solid #dfe9f5; border-radius: 9px; color: #364962; line-height: 1.4; font-size: .76rem; }
#home .lm-lml-metric strong { font-weight: 700; overflow-wrap: anywhere; }
#home .lm-lml-metric-icon { width: 16px; height: 16px; flex: 0 0 16px; }
#home .lm-metric-questions { color: #3675ca; }
#home .lm-metric-time { color: #536989; }
#home .lm-metric-pass { color: #d94a69; }
#home .lm-metric-attempts { color: #347bb7; }
#home .lm-lml-actions { display: flex; justify-content: space-between; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
#home .lm-lml-certificate { font-size: .71rem; color: #9b681d; white-space: nowrap; }
#home .lm-lml-actions a { display: inline-flex; align-items: center; gap: 4px; color: #125aa8; text-decoration: none; font-weight: 750; font-size: .82rem; }
#home .lm-lml-actions a:hover { text-decoration: underline; }
#home .lm-lml-explore {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 6px 12px; margin-top: 18px; padding: 12px 16px;
  border: 1px solid #dfebf7; border-radius: 10px; background: #f5f8fd;
  color: #496784; text-align: center; font-size: .84rem; line-height: 1.6;
}
#home .lm-lml-explore a { font-weight: 750; color: #125aa8; text-decoration: none; }
#home .lm-lml-explore a:hover { text-decoration: underline; }
#home .lm-lml-empty { border: 1px solid #dce6f2; border-radius: 12px; padding: 26px 20px; color: #657f9b; font-size: .88rem; background: #f8fbff; text-align: center; }
@media (max-width: 900px) {
  #home .lm-lml-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  #home .lm-lml-section { padding: 33px 0 38px; }
  #home .lm-lml-header { gap: 12px; }
  #home .lm-lml-heading svg { width: 25px; height: 25px; flex-basis: 25px; }
  #home .lm-lml-enter { margin-left: 0; }
  #home .lm-lml-grid { grid-template-columns: 1fr; gap: 12px; }
  /* Keep the 16:9 educational cover legible on narrow viewports. */
  #home .lm-lml-card { flex-direction: column; min-height: 0; }
  #home .lm-lml-cover { flex: 0 0 auto; width: 100%; height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  #home .lm-lml-cover svg { width: 31px; height: 31px; }
  #home .lm-lml-new { font-size: .6rem; padding: 3px 5px; }
  #home .lm-lml-content { padding: 10px 11px; gap: 6px; }
  #home .lm-lml-title { font-size: .86rem; min-height: 0; }
  #home .lm-lml-category { font-size: .68rem; }
  #home .lm-lml-metric { font-size: .76rem; min-height: 35px; }
  #home .lm-lml-explore { font-size: .79rem; }
}
@media (prefers-reduced-motion: reduce) {
  #home .lm-lml-card, #home .lm-lml-enter { transition: none; }
  #home .lm-lml-card:hover, #home .lm-lml-enter:hover { transform: none; }
}
