/* Learning and points use GUTL's existing academy blue, typography and controls. */
.gp-page {
  --gp-tint: #eaf1f8;
  --gp-mint: #eaf2eb;
  --gp-mute: #535e6b;
  padding-bottom: clamp(48px, 7vw, 94px);
  font-family: var(--font-ui);
}

.gp-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0 0 26px;
  padding: 8px 0 0;
  border-bottom: 1px solid var(--line);
}
.gp-nav a {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 44px;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.gp-nav a .icon { width: 17px; height: 17px; }
.gp-nav a:is(:hover, [aria-current]) { border-color: var(--academy); color: var(--academy); }

.gp-hero {
  display: grid;
  align-items: end;
  gap: 24px;
  padding: clamp(32px, 5.2vw, 74px);
  border-radius: 6px;
  color: #fff;
  background: radial-gradient(ellipse at 90% 10%, #2461a0 0%, transparent 63%), var(--academy);
}
.gp-hero.has-aside { grid-template-columns: minmax(0, 1fr) minmax(190px, 270px); }
.gp-hero h1, .gp-lesson-heading h1 {
  margin: 0 0 14px;
  font: 600 clamp(34px, 5.4vw, 65px)/1.12 var(--font-display);
  letter-spacing: -0.035em;
}
.gp-hero h1 { color: #fff; }
.gp-hero p { max-width: 53ch; margin: 0; color: #e2ecf7; font-size: clamp(15px, 1.6vw, 18px); }
.gp-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.gp-hero .gp-actions { margin-top: 24px; }
.gp-hero .btn {
  min-height: 42px;
  color: #fff;
  border-color: #a8c7e6;
  background: transparent;
}
.gp-hero .btn.primary, .gp-hero .btn:hover { color: var(--academy); background: #fff; border-color: #fff; }
.gp-hero .btn:focus-visible { outline-color: #baddff; }
.gp-balance {
  display: grid;
  gap: 5px;
  align-content: center;
  min-height: 155px;
  padding: 20px 22px;
  border-radius: 5px;
  background: #fff;
  color: var(--academy);
}
.gp-balance > span:first-child { display: flex; align-items: center; gap: 8px; font-weight: 750; }
.gp-balance > strong { font: 600 clamp(32px, 4vw, 52px)/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.gp-balance small { color: var(--gp-mute); font: 600 13px/1.5 var(--font-ui); }
.gp-balance .gp-state { justify-self: start; }
.gp-demo-note { display: flex; align-items: start; gap: 8px; margin: 13px 0 26px; color: var(--gp-mute); font-size: 13px; }
.gp-demo-note .icon { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; color: var(--academy); }

.gp-panel { min-width: 0; padding: clamp(16px, 2.2vw, 28px); border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.gp-layout, .gp-community { display: grid; grid-template-columns: minmax(0, 1fr) minmax(225px, 300px); gap: 22px; align-items: start; }
.gp-layout > div > .gp-panel + .gp-panel, .gp-side > .gp-panel + .gp-panel { margin-top: 18px; }
.gp-panel h2, .gp-section-heading h2 { margin: 0; color: var(--academy); font: 650 clamp(19px, 2.3vw, 28px)/1.3 var(--font-display); }
.gp-panel h3 { color: var(--academy); }
.gp-section-heading { margin-bottom: 15px; }
.gp-section-heading p { margin: 5px 0 0; color: var(--gp-mute); }
.gp-section-row { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; }
.gp-section-row .gp-section-heading { margin: 0 0 12px; }
.gp-boost-card > p { margin: 10px 0; color: var(--gp-mute); }
.gp-boost-card > a:first-of-type { margin-top: 8px; }
.gp-boost-card > .gp-text-link { display: flex; width: fit-content; }
.gp-boost-card > .gp-text-link + .gp-text-link { margin-top: 10px; }
.gp-stat { padding: 17px 22px; min-width: 0; }
.gp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.gp-stat + .gp-stat { border-inline-start: 1px solid var(--line); }
.gp-stat dt { color: var(--gp-mute); font-weight: 650; }
.gp-stat dd, .gp-number { margin: 3px 0 0; color: var(--academy); font: 600 clamp(25px, 3.2vw, 40px)/1.25 var(--font-display); font-variant-numeric: tabular-nums; }
.gp-number { display: block; margin-top: 12px; }
.gp-muted, .gp-empty { color: var(--gp-mute); }
.gp-state { display: inline-block; width: fit-content; padding: 4px 8px; border-radius: 3px; background: var(--gp-tint); color: var(--academy); font-size: 12px; line-height: 1.35; font-weight: 750; }
.gp-state.positive, .gp-pass { background: var(--gp-mint); color: #245641; }
.gp-state.pending { background: #faf0de; color: #74472c; }
.gp-text-link { display: inline-flex; align-items: center; gap: 7px; min-height: 27px; color: var(--academy); font-size: 14px; font-weight: 750; }
.gp-text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.gp-text-link .icon { flex: 0 0 15px; width: 15px; height: 15px; }
.gp-page progress { display: block; appearance: none; width: 100%; height: 7px; margin: 8px 0 4px; border: 0; border-radius: 5px; overflow: hidden; background: var(--gp-tint); color: var(--action); }
.gp-page progress::-webkit-progress-bar { background: var(--gp-tint); }
.gp-page progress::-webkit-progress-value { background: var(--action); }
.gp-page progress::-moz-progress-bar { background: var(--action); }

.gp-table-wrap { overflow-x: auto; }
.gp-table { width: 100%; border-collapse: collapse; text-align: left; }
.gp-table th, .gp-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.gp-table thead th { color: var(--gp-mute); font-size: 12px; white-space: nowrap; }
.gp-table thead th:first-child, .gp-table tbody > tr > :first-child { padding-inline-start: 0; }
.gp-table tbody th { color: var(--academy); font-weight: 700; }
.gp-table tbody th small { display: block; color: var(--gp-mute); font-size: 12px; font-weight: 500; }
.gp-table tbody tr:last-child > * { border-bottom: 0; }
.gp-table :is(td, th):not(:first-child) { font-variant-numeric: tabular-nums; }
.gp-ledger th:first-child { width: 55%; }
.gp-ledger :is(td, th):not(:first-child) { text-align: right; white-space: nowrap; }
.gp-pending { padding-top: 12px; border-top: 1px solid var(--line); }
.gp-pending h3 { margin: 0 0 7px; }
.gp-pending ul, .gp-score-factor + p { margin-top: 5px; }
.gp-pending li { margin-bottom: 5px; }
.gp-rank { font-weight: 800; color: var(--academy); }
.gp-ranking td { white-space: nowrap; }
.gp-ranking progress { margin-top: 4px; min-width: 60px; max-width: 118px; height: 5px; }
.gp-ranking .gp-own-row > * { background: var(--gp-tint); }
.gp-ranking .gp-own-row > :first-child { padding-inline-start: 5px; }
.gp-score-factor { margin: 14px 0; }
.gp-score-factor > div, .gp-multiplier-list > div { display: flex; justify-content: space-between; gap: 8px; }
.gp-score-factor strong, .gp-tier-rate, .gp-multiplier-list dd { color: var(--academy); }
.gp-explain { padding-inline-start: 21px; margin: 0; }
.gp-explain li + li { margin-top: 10px; }
.gp-multiplier-list { margin: 8px 0 0; }
.gp-multiplier-list > div { padding: 7px 0; border-bottom: 1px solid var(--line); }
.gp-multiplier-list > div:last-child { border-bottom: 0; }
.gp-multiplier-list dt { color: var(--gp-mute); }
.gp-multiplier-list dd { margin: 0; font-weight: 800; }
.gp-rookies, .gp-invites { padding: 0; margin: 0 0 12px; list-style: none; }
.gp-rookies li, .gp-invites li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.gp-rookies li:last-child, .gp-invites li:last-child { border-bottom: 0; }
.gp-rookies li > span, .gp-invites li small { display: block; color: var(--gp-mute); }
.gp-demo-clock > span { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin: 10px 0; font-weight: 750; color: var(--academy); }
.gp-demo-clock .icon { width: 17px; height: 17px; }
.gp-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.gp-filter :is(a,button) { min-height: 37px; padding: 7px 11px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--academy); font: 750 13px/1.5 var(--font-ui); cursor: pointer; }
.gp-filter :is(a,button):is([aria-current],[aria-pressed="true"],:hover) { border-color: var(--academy); background: var(--gp-tint); color: var(--academy); }

.gp-home { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: clamp(20px, 4vw, 68px); align-items: center; margin: 34px 0 38px; padding: clamp(20px, 4vw, 52px); border: 1px solid #c7d5e2; border-radius: 6px; background: #edf3f9; }
.gp-home-mark { display: flex; align-items: center; gap: 8px; color: var(--academy); font-weight: 750; }
.gp-home-intro h2 { max-width: 23ch; margin: 0.22em 0 0.25em; font: 650 clamp(26px, 3.4vw, 47px)/1.23 var(--font-display); color: var(--academy); }
.gp-home-intro p { margin: 0 0 18px; color: var(--muted); }
.gp-home-links { display: grid; gap: 7px; }
.gp-home-links a { display: grid; grid-template-columns: 26px minmax(0, 1fr) 18px; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid #c7d5e2; border-radius: 5px; background: #fff; color: var(--academy); }
.gp-home-links a:hover { border-color: var(--academy); }
.gp-home-links a small { display: block; color: var(--muted); }
.gp-home-links a > .icon:last-child { width: 16px; height: 16px; }

.gp-stages { list-style: none; padding: 0; margin: 0; }
.gp-stage { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; position: relative; }
.gp-stage:not(:last-child) { padding-bottom: 16px; }
.gp-stage:not(:last-child)::before { content: ""; position: absolute; left: 18px; top: 33px; bottom: 0; width: 1px; background: #b9cbdd; }
.gp-stage-mark { position: relative; z-index: 1; display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; background: var(--academy); color: #fff; font-weight: 800; }
.gp-stage.locked .gp-stage-mark { background: #d5e2ee; color: var(--academy); }
.gp-stage-head, .gp-stage-title { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.gp-stage-title > .icon { color: var(--academy); margin-top: 3px; }
.gp-stage-title h3 { margin: 0; font: 650 clamp(20px, 2.2vw, 26px)/1.23 var(--font-display); }
.gp-stage-title p { margin: 5px 0 0; color: var(--gp-mute); }
.gp-stage-head > .gp-state { flex: 0 0 auto; }
.gp-lessons { margin: 13px 0 0; padding: 0; list-style: none; }
.gp-lessons li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 15px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.gp-lessons li small { display: block; color: var(--gp-mute); }
.gp-lesson-credit { font-weight: 750; font-size: 12px; color: var(--academy); white-space: nowrap; }
.gp-glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin: 0; }
.gp-glossary dt { color: var(--academy); font: 650 20px/1.3 var(--font-display); }
.gp-glossary dd { margin: 6px 0; }
.gp-glossary div > small { color: var(--gp-mute); }
.gp-reading, .gp-stage-links { display: grid; gap: 9px; list-style: none; margin: 10px 0 0; padding: 0; }
.gp-reading a { color: var(--academy); text-decoration: underline; text-underline-offset: 2px; }
.gp-reading .icon, .gp-stage-links .icon { width: 15px; height: 15px; margin-inline-start: 4px; }
.gp-stage-links li { display: flex; align-items: start; justify-content: space-between; }
.gp-stage-links a { padding: 3px 0; color: var(--academy); }
.gp-stage-links a[aria-current] { font-weight: 800; }
.gp-breadcrumb { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--gp-mute); }
.gp-lesson-heading { display: flex; justify-content: space-between; align-items: end; gap: 15px; padding: 24px 0 18px; }
.gp-lesson-heading h1 { color: var(--academy); margin: 0; font-size: clamp(28px, 4.4vw, 52px); }
.gp-lesson-heading p { margin: 8px 0 0; color: var(--gp-mute); }
.gp-lesson-heading > .gp-state { flex: 0 0 auto; }
.gp-lesson-body > p { max-width: 72ch; font-size: 16px; line-height: 1.75; }
.gp-worked { border-inline-start: 3px solid var(--action); padding: 12px 16px; margin: 18px 0; background: var(--gp-tint); border-radius: 0 4px 4px 0; }
.gp-worked h3 { margin: 0; font-size: 16px; }
.gp-worked p { margin: 5px 0; }
.gp-quiz { padding-top: 15px; border-top: 1px solid var(--line); }
.gp-quiz > p { margin: 5px 0 11px; color: var(--gp-mute); }
.gp-options { border: 0; min-width: 0; padding: 0; margin: 14px 0; }
.gp-options legend { padding: 0; margin: 0 0 8px; font-weight: 800; color: var(--academy); }
.gp-options label { display: flex; gap: 10px; align-items: start; min-height: 41px; padding: 9px 12px; margin-bottom: 4px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.gp-options label:has(input:checked) { border-color: var(--action); background: var(--gp-tint); }
.gp-options input { accent-color: var(--academy); margin: 3px 0 0; flex: 0 0 auto; }
.gp-pass { display: flex; align-items: start; gap: 8px; padding: 12px; border-radius: 5px; margin: 12px 0; }
.gp-pass > .icon { flex: 0 0 20px; }
.gp-pass :is(ol, p) { margin: 0; }
.gp-pass ol { margin-top: 6px; padding-inline-start: 20px; }

.gp-task-list { list-style: none; margin: 0; padding: 0; }
.gp-task { display: grid; grid-template-columns: 37px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.gp-task:last-child { border-bottom: 0; padding-bottom: 0; }
.gp-task:first-child { padding-top: 0; }
.gp-task-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 5px; background: var(--gp-tint); color: var(--academy); }
.gp-task-icon .icon { width: 19px; height: 19px; }
.gp-task-copy h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0; font-size: 16px; line-height: 1.4; }
.gp-task-copy p { margin: 3px 0 0; color: var(--gp-mute); }
.gp-task-action { display: grid; justify-items: end; color: var(--academy); white-space: nowrap; }
.gp-detail-stack { display: grid; gap: 16px; }
.gp-task-detail { max-width: 830px; width: 100%; }
.gp-form .btn, .gp-task-detail form .btn, .gp-quiz form .btn { margin-top: 8px; }
.gp-field { display: grid; gap: 4px; margin: 10px 0; color: var(--academy); font-size: 14px; font-weight: 700; }
.gp-field :is(input, textarea, select) { display: block; min-width: 0; width: 100%; padding: 8px 10px; border: 1px solid #a9b4bf; border-radius: 4px; color: var(--ink); background: #fff; font: inherit; font-weight: 500; }
.gp-field textarea { resize: vertical; }
.gp-field select { max-width: 240px; }
.gp-form-error { margin: 6px 0; color: var(--red); font-weight: 700; }
.gp-form-error:empty { display: none; }

.gp-community { grid-template-columns: minmax(190px, 245px) minmax(0, 1fr); }
.gp-channel-menu { display: grid; gap: 5px; }
.gp-channel-menu h2 { margin-bottom: 8px; }
.gp-channel-menu > a:not(.gp-text-link) { display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 7px; border-radius: 4px; color: var(--academy); font-weight: 750; }
.gp-channel-menu > a:not(.gp-text-link):is(:hover,[aria-current]) { background: var(--gp-tint); }
.gp-channel-menu .icon { width: 17px; height: 17px; }
.gp-channel-menu > a:not(.gp-text-link) .icon:last-child { margin-inline-start: auto; }
.gp-channel-menu > .gp-text-link { margin-top: 8px; }
.gp-community-feed { min-width: 0; display: grid; gap: 15px; }
.gp-thread article { padding: 13px 0; border-top: 1px solid var(--line); }
.gp-thread article:last-child { padding-bottom: 0; }
.gp-thread article h3 { margin: 0; font-size: 16px; }
.gp-thread article p { margin: 6px 0 0; }
.gp-thread article small { color: var(--gp-mute); }
.gp-post-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.gp-moderation { margin-top: 10px; padding: 8px 10px; border-radius: 4px; background: var(--gp-tint); }
.gp-thread .gp-moderation p { margin: 0 0 8px; }

.gp-reward-filter { margin-bottom: 22px; }
.gp-reward-section { margin-bottom: 34px; }
.gp-gifts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.gp-gift-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.gp-gift-symbol { display: grid; place-items: center; min-height: 96px; color: var(--academy); background: var(--gp-tint); }
.gp-gift-symbol .icon { width: 37px; height: 37px; }
.gp-gift-card .campus-product-photo { margin: 0; }
.gp-gift-card .campus-product-photo img { display: block; width: 100%; height: auto; max-height: 250px; object-fit: contain; background: #eeede8; }
.gp-gift-card .campus-product-photo figcaption { padding-inline: 8px; }
.gp-gift-detail { display: flex; flex: 1; flex-direction: column; align-items: start; gap: 8px; padding: 14px; }
.gp-gift-detail h3 { margin: 0; font-size: 18px; }
.gp-gift-detail p { flex: 1; margin: 0; color: var(--gp-mute); }
.gp-gift-detail .btn:disabled { cursor: default; }
.gp-gift-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; color: var(--gp-mute); }
.gp-gift-price strong { color: var(--academy); font-size: 19px; }
.gp-gift-price small, .gp-gift-price > span { font-size: 12px; }

@media (min-width: 981px) and (max-width: 1380px) {
  .topbar .brand img { width: 112px; height: 44px; }
  .main-nav { gap: 12px; }
  .main-nav a { font-size: 13px; }
  .main-nav a > .icon, .nav-search-btn kbd { display: none; }
}
@media (max-width: 980px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-menu.open { display: flex; position: fixed; inset: 80px 0 0; z-index: 60; flex-direction: column; gap: 7px; overflow-y: auto; padding: 20px max(18px, calc((100vw - 880px) / 2)) 32px; background: var(--paper); }
  .mobile-menu.open a { min-height: 42px; }
}
@media (max-width: 850px) { .mobile-menu.open { top: 72px; } }
@media (max-width: 800px) {
  .gp-layout, .gp-community { grid-template-columns: minmax(0, 1fr); }
  .gp-community .gp-channel-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gp-channel-menu h2 { grid-column: 1 / -1; }
  .gp-lesson-layout .gp-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gp-lesson-layout .gp-side > .gp-panel + .gp-panel { margin-top: 0; }
}
@media (max-width: 630px) {
  .gp-hero.has-aside, .gp-home { grid-template-columns: minmax(0, 1fr); }
  .gp-hero { gap: 14px; padding: 23px 17px; }
  .gp-hero.has-aside .gp-balance { min-height: 96px; padding: 13px 16px; }
  .gp-nav { gap: 1px 12px; margin-bottom: 16px; }
  .gp-nav a { font-size: 13px; }
  .gp-stage { grid-template-columns: 29px minmax(0, 1fr); gap: 8px; }
  .gp-stage-mark { width: 28px; height: 28px; font-size: 12px; }
  .gp-stage:not(:last-child)::before { left: 13px; top: 24px; }
  .gp-stage-head { flex-direction: column; }
  .gp-lessons li { grid-template-columns: minmax(0, 1fr) auto; }
  .gp-lessons li > :first-child { grid-column: 1 / -1; }
  .gp-gifts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .gp-table th, .gp-table td { padding: 8px 6px; }
  .gp-stat { padding: 10px 8px; }
  .gp-task { grid-template-columns: 33px minmax(0, 1fr); }
  .gp-task-action { grid-column: 2; display: flex; justify-content: space-between; align-items: center; gap: 5px; }
  .gp-lesson-heading { flex-wrap: wrap; align-items: start; }
  .gp-glossary { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .mobile-menu.open { top: 64px; }
  .topbar .brand img { width: min(24vw, 104px); }
  .topbar .nav-tools { flex: 0 0 auto; }
  .topbar .nav-tools > .btn, .topbar .nav-tools .nav-search-btn { min-width: 35px; min-height: 44px; padding-inline: 6px; }
  .topbar .nav-tools .language-toggle { padding-inline: 5px; }
  .gp-global-wallet > span { display: none; }
  .gp-field :is(input,textarea,select) { font-size: 16px; }
}
@media (max-width: 360px) {
  .gp-nav { gap: 0 9px; }
  .gp-nav a .icon { display: none; }
  .gp-gifts, .gp-lesson-layout .gp-side { grid-template-columns: minmax(0, 1fr); }
}
