:root {
  color-scheme: light;

  --wibly-primary-light: #d5f3ec;
  --wibly-darkgreen: #0a332c;
  --wibly-white: #ffffff;
  --wibly-grey90: #424242;
  --wibly-primary-pressed: #105a4c;
  --wibly-primary-pressed-dark: #0a322c;

  --learn-bg: var(--wibly-primary-light);
  --learn-text: var(--wibly-darkgreen);
  --learn-muted: rgba(44, 44, 44, 0.9);
  --learn-card: rgba(255, 255, 255, 0.78);
  --learn-border: rgba(16, 90, 76, 0.14);
  --learn-link: var(--wibly-primary-pressed);
}

html,
body {
  background: var(--learn-bg);
  color: var(--learn-text);
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  line-height: 1.5;
}

.learnNavbar {
  min-height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  background-color: var(--wibly-primary-pressed-dark, #0a322c);
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.25);
}

.learnNavbarLeft {
  display: flex;
  align-items: center;
  gap: 10px;
}

.learnNavbarLogoLink {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.learnNavbarLogo {
  height: 42px;
  display: block;
}

.learnNavbarLogoDesktop {
  width: auto;
  padding-left: 2px;
}

.learnNavbarLogoMobile {
  width: 34px;
  display: none;
}

.learnNavbarRight {
  display: flex;
  align-items: center;
  gap: 10px;
}

.learnNavLink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--wibly-primary-background, #f3fffc);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
}

.learnNavIcon {
  width: 20px;
  height: 20px;
  display: inline-block;
}

.learnNavLink:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.learnNavButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 2px solid transparent;
}

.learnNavButtonLogin {
  color: var(--wibly-primary-background, #f3fffc);
  background: transparent;
}

.learnNavButtonLogin:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.learnNavButtonSignup {
  background: var(--wibly-secondary, #f3c92d);
  color: var(--wibly-black, #000);
}

.learnNavButtonSignup:hover {
  opacity: 0.92;
}

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 18px 64px;
}

header {
  background: var(--learn-card);
  border: 1px solid var(--learn-border);
  border-radius: 16px;
  padding: 22px 18px;
}

.learnPrimaryCtas {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.learnCtaButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
}

.learnCtaPrimary {
  background: var(--wibly-secondary, #f3c92d);
  color: var(--wibly-black, #000);
}

.learnCtaPrimary:hover {
  opacity: 0.92;
}

.learnCtaSecondary {
  background: transparent;
  color: var(--wibly-primary-pressed, #105a4c);
  border-color: rgba(16, 90, 76, 0.3);
}

.learnCtaSecondary:hover {
  background: rgba(255, 255, 255, 0.35);
}

h1 {
  margin: 0 0 10px;
  font-size: 2.1rem;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 12px;
  color: var(--learn-muted);
}

a {
  color: var(--learn-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.learnSectionCta {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  font-weight: 700;
  text-decoration: none;
}

.learnSectionCta:hover {
  text-decoration: underline;
}

.learnConceptTree {
  margin: 10px 0 0;
  padding-left: 18px;
}

.learnConceptTree ul {
  margin-top: 8px;
}

.learnConceptTree li {
  margin: 6px 0;
}

.learnConceptTree strong {
  font-weight: 600;
}

.learnConceptRootLink {
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.learnConceptRootLink:hover {
  opacity: 0.9;
}

.learnConceptTree ul strong {
  font-weight: 600;
}

nav[aria-label="Primary actions"] {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--learn-border);
  background: var(--wibly-white);
  text-decoration: none;
  font-weight: 600;
}

section {
  margin-top: 22px;
  background: var(--learn-card);
  border: 1px solid var(--learn-border);
  border-radius: 16px;
  padding: 18px;
}

h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.learnTopicCard {
  display: grid;
  grid-template-columns: 15% 1fr auto;
  gap: 14px;
  align-items: start;
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--learn-border);
  background: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.learnTopicCard:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(16, 90, 76, 0.35);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.learnTopicCard:hover .learnTopicLink {
  color: var(--wibly-primary-hover, #44f2c7);
}

.learnTopicCard:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.learnTopicCard:focus-visible {
  outline: 3px solid rgba(243, 201, 45, 0.75);
  outline-offset: 2px;
}

.learnTopicTitle {
  margin: 0;
  font-size: 1rem;
}

.learnTopicDesc p {
  margin: 0 0 8px;
}

.learnTopicLink {
  font-weight: 700;
  color: var(--wibly-primary-pressed, #105a4c);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  justify-self: end;
}

ul {
  margin: 0;
  padding-left: 18px;
}

li {
  margin: 6px 0;
}

footer {
  margin-top: 24px;
  color: var(--learn-muted);
}

@media (max-width: 768px) {
  .learnNavbar {
    padding: 8px 12px;
  }

  .learnNavbarLogoDesktop {
    display: none;
  }

  .learnNavbarLogoMobile {
    display: block;
    width: 32px;
    height: 32px;
  }

  .learnNavbarRight {
    gap: 6px;
  }

  .learnNavLink {
    padding: 6px 8px;
    font-size: 13px;
  }

  .learnNavButton {
    padding: 6px 10px;
    font-size: 13px;
  }

  .learnNavIcon {
    width: 18px;
    height: 18px;
  }

  .learnTopicCard {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .learnTopicLink {
    justify-self: start;
  }
}
