.learning-bar {
  --learning-ink: #123d53;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 10px 0;
  border-top: 1px solid #ffffff24;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: "DM Sans", sans-serif;
  line-height: 1.35;
  text-align: left;
}
.learning-bar a {
  text-decoration: none;
}
.learning-bar .learning-summary {
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 0;
  color: #fff;
}
.learning-ring {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: conic-gradient(#ecc677 var(--learning-turn, 0deg), #ffffff30 0);
  position: relative;
}
.learning-ring::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: #123d53;
  border-radius: 50%;
}
.learning-lines {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.learning-lines strong {
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.learning-lines > span {
  font-size: 12px;
  color: #d8e6eb;
}
.learning-arrow {
  color: #ecc677;
  font-size: 20px;
}
.learning-bar .learning-next {
  color: #ecc677;
  font-size: 12px;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.learning-invitations {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-left: auto;
}
.learning-invitations .site-language {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  margin: 0;
  padding: 0;
  border: 0;
  color: #d8e6eb;
  font-size: 11px;
  max-width: 120px;
}
.learning-invitations .site-language select {
  width: 120px;
  min-width: 0;
  min-height: 44px;
  flex: 1;
  border: 1px solid #a6d7ac;
  border-radius: 12px;
  background: linear-gradient(110deg, #a6d7ac1c, #a6d7ac08);
  box-shadow: inset 0 1px 0 #ffffff0d;
  color: #e1f3e3;
  color-scheme: dark;
}
.learning-invitations .site-language > span:first-child {
  display: none;
}
.learning-invitations .site-language select option {
  background: #092f4c;
  color: #e1f3e3;
}
.learning-invitations .site-language select:focus-visible {
  outline: 2px solid #a6d7ac;
  outline-offset: 3px;
}
.learning-invitations .site-language [role="status"]:empty {
  display: none;
}
.learning-bar .learning-purpose {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  min-height: 44px;
  padding: 7px 13px 7px 8px;
  color: #f7deb0;
  background: linear-gradient(110deg, #ecd3971c, #ecd39708);
  border: 1px solid #e3c58b66;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 #ffffff0d;
}
.learning-purpose-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ecc677;
  color: #163849;
  flex-shrink: 0;
}
.learning-purpose-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.learning-purpose-copy {
  display: grid;
  gap: 2px;
}
.learning-purpose-copy strong {
  font-size: 12px;
  font-weight: 700;
}
.learning-purpose-copy > span {
  font-size: 10px;
  color: #d4e1e6;
}
.learning-bar .learning-purpose:hover,
.learning-bar .learning-purpose[aria-current="page"] {
  background: #e3c58b26;
  border-color: #ecc677;
  color: #fff0d0;
}
body.home .learning-purpose {
  animation: course-invitation 1.6s ease-in-out infinite;
}
@keyframes course-invitation {
  0%,
  100% {
    background-color: transparent;
    border-color: #e3c58b66;
    box-shadow: 0 0 0 0 #ecc67700;
  }
  50% {
    background-color: #ecc67738;
    border-color: #ffe5a8;
    box-shadow: 0 0 14px 2px #ecc67740;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.home .learning-purpose {
    animation: none;
    border-color: #ecc677;
  }
}
.learning-bar a:hover {
  color: #fff1cb;
}
.learning-bar a:focus-visible {
  outline: 2px solid #ecc677;
  outline-offset: 5px;
  border-radius: 4px;
}

body.learning-page {
  background: #f6f7f3;
  color: #163849;
}
.learning-intro {
  width: min(1160px, calc(100% - 40px));
  margin: 44px auto 28px;
}
.learning-intro h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(32px, 5vw, 48px);
  margin: 8px 0 12px;
  line-height: 1.15;
}
.learning-intro p {
  max-width: 650px;
}
#learning-overview {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
  font-size: 16px;
  line-height: 1.65;
}
#learning-overview > * {
  min-width: 0;
}
.learning-card {
  background: #fff;
  padding: 28px;
  border: 1px solid #dce5e6;
  border-radius: 18px;
}
#learning-overview h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 25px;
  line-height: 1.25;
  margin: 4px 0 16px;
}
#learning-overview h3 {
  font-size: 17px;
  margin: 0;
}
#learning-overview p {
  margin: 10px 0 18px;
}
.learning-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #446570;
  font-weight: 700;
}
.learning-persona-control {
  margin: 12px 0;
}
.learning-persona-control label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.learning-persona-control select {
  font: inherit;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid #869da3;
  border-radius: 8px;
  background: #fff;
}
.learning-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 24px 0;
}
.learning-metrics > div {
  display: grid;
}
.learning-metrics strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 32px;
  line-height: 1.2;
  color: #17675e;
}
.learning-metrics span {
  font-size: 13px;
  color: #526873;
}
.learning-suggestion {
  background: #eaf3ef;
  border-color: #d5e5dc;
}
#learning-overview a {
  color: #12645d;
  text-underline-offset: 3px;
}
#learning-overview .learning-action {
  display: inline-block;
  padding: 10px 18px;
  color: white;
  background: #125e58;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}
#learning-overview a:focus-visible,
#learning-overview summary:focus-visible {
  outline: 3px solid #b37918;
  outline-offset: 4px;
}
.learning-theory {
  grid-column: 1 / -1;
  margin: 10px 0;
}
.learning-chapter {
  border: 1px solid #dce5e6;
  border-radius: 12px;
  background: white;
  margin-top: 10px;
}
.learning-chapter summary {
  cursor: pointer;
  padding: 17px 20px;
  font-weight: 700;
}
.learning-chapter summary::marker {
  color: #17776c;
}
.learning-chapter-score {
  float: right;
  margin-left: 16px;
  font-size: 13px;
  font-weight: 500;
  color: #526873;
}
.learning-topics {
  list-style: none;
  margin: 0;
  padding: 0 20px 12px;
}
.learning-topics li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid #e6eded;
}
.learning-topics li > span {
  flex-shrink: 0;
  font-size: 13px;
  color: #526873;
}
.learning-game {
  padding: 16px 0;
  border-top: 1px solid #e6eded;
}
#learning-overview .learning-game p {
  margin: 5px 0;
}
.learning-game a {
  font-size: 14px;
}
#learning-overview > .learning-chapter {
  align-self: start;
  margin: 0;
}
#learning-overview > .learning-chapter p {
  padding: 0 20px 10px;
}
.learning-warning {
  border-left: 4px solid #bd7524;
  padding: 12px;
  background: #fff1dd;
}
@media (max-width: 700px) {
  .learning-bar {
    gap: 10px;
  }
  .learning-bar .learning-next {
    display: none;
  }
  .learning-bar .learning-summary {
    flex: 1 1 100%;
    gap: 7px;
  }
  .learning-invitations {
    margin-left: 0;
    width: 100%;
  }
  .learning-invitations .site-language select {
    width: 88px;
    font-size: 11px;
    padding: 5px 2px;
  }
  .learning-invitations .site-language {
    max-width: 88px;
  }
  .learning-invitations > a {
    flex: 1;
    min-width: 0;
  }
  .learning-bar .learning-purpose {
    padding: 7px;
    gap: 6px;
  }
  .learning-purpose-icon {
    width: 24px;
    height: 24px;
  }
  .learning-purpose-icon svg {
    width: 20px;
    height: 20px;
  }
  .learning-purpose-copy strong {
    font-size: 11px;
  }
  .learning-purpose-copy > span {
    display: none;
  }
  .learning-arrow {
    margin-left: auto;
  }
  .learning-intro {
    margin-top: 28px;
  }
  #learning-overview {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .learning-card {
    padding: 22px;
  }
  .learning-chapter-score {
    float: none;
    display: block;
    margin: 4px 0 0 16px;
  }
  .learning-topics li {
    display: grid;
    gap: 4px;
  }
  .learning-topics li > span {
    padding-left: 0;
  }
}
@media (max-width: 400px) {
  .learning-invitations .learning-purpose-icon {
    display: none;
  }
  .learning-bar .learning-arrow {
    display: none;
  }
  .learning-ring {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
  }
  .learning-lines > span {
    font-size: 11px;
  }
}
