/* Refinements from the 1440 × 1000 public-home reference and observed HTML.
   Load after styles.css. Component-specific selectors leave learning pages alone. */

#main:has(.hero) { --blue: var(--ks-466fff); --page: var(--ks-f3f4f5); }

.site-header .logo img {
  width: 110px;
  height: 40px;
  max-height: none;
}

.site-header .logo {
  margin-left: -7px;
}

/* The original desktop navigation ends with the French language selector. */
.header-language {
  display: inline-flex;
  position: relative;
  padding-left: 16px;
  margin-left: -16px;
  border-left: 1px solid var(--ks-969a9e);
}

.header-language summary {
  display: flex;
  align-items: center;
  gap: 7px;
  list-style: none;
  cursor: pointer;
}

.header-language summary img { width: 20px; height: 14px; object-fit: cover; }
.header-language summary .icon { width: 14px; height: 14px; }
.header-language > div {
  position: absolute;
  top: 32px;
  right: 0;
  padding: 12px 18px;
  min-width: 130px;
  background: var(--ks-ffffff);
  border-radius: 8px;
  box-shadow: 0 6px 22px var(--ks-20203522);
  font-size: 14px;
  white-space: nowrap;
}

/* Use the same four document icons identified in the live public HTML. */
.feature-grid > div > span {
  display: block;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  min-width: 50px;
  font-size: 0;
  color: transparent;
  background: center / contain no-repeat;
}
.feature-grid > div { gap: 16px; }

@media (min-width: 1201px) {
  .hero-inner { min-height: 592px; }
  .hero h1 { letter-spacing: 0; }
  .hero-cta { margin-top: 28px; }
  .starting b { font-size: 32px; }
  .students-label { font-size: 26px; background: var(--ks-424242); }

  /* Align the presentation frame. */
  .app-presentation { padding-top: 64px; padding-bottom: 64px; }
  .presentation-grid > a { margin-left: -95px; margin-right: 10px; }
  .presentation-grid h2 { line-height: 1.1; }
}

@media (max-width: 759px) {
  .site-header .logo { margin-left: -5px; }
  .site-header .logo img { width: 95px; height: 34px; }
  .header-language { display: none; }
  .feature-grid > div { gap: 10px; }
  .feature-grid > div > span {
    flex-basis: 38px;
    min-width: 38px;
    width: 38px;
    height: 38px;
  }
}
