:root {
  font-family: var(--body-font);
  --header-height: 76px;
  --page-gutter: 46px;
  --radius: 12px;
  --shadow: 0 12px 25px -19px #29346859;
  background: var(--paper);
  color: var(--ink);
  scroll-padding-top: calc(var(--header-height) + 12px);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.6;
}
::selection {
  color: var(--navy-deep);
  background: var(--accent);
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
}
a,
button,
summary {
  -webkit-tap-highlight-color: #384dc924;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
summary {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
img {
  display: block;
  max-width: 100%;
}
form,
figure,
dl,
dd {
  margin: 0;
}
h1,
h2,
h3,
p {
  margin: 0 0 0.65em;
}
p:last-child {
  margin-bottom: 0;
}
h1,
h2,
h3 {
  overflow-wrap: anywhere;
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.06em;
}
h1 {
  font-size: clamp(3.2rem, 5.3vw, 5.6rem);
}
h2 {
  font-size: clamp(2.6rem, 4.3vw, 4rem);
}
h3 {
  font-size: 1.16rem;
  line-height: 1.24;
  letter-spacing: -0.028em;
  font-weight: 800;
}
h3 a {
  text-decoration: none;
}
h3 a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
main:focus {
  outline: none;
}
.wrap {
  width: min(1272px, calc(100% - 2 * var(--page-gutter)));
  margin-inline: auto;
}
.section {
  padding-block: clamp(37px, 6.1vw, 98px);
}
.page-top {
  min-height: 54vh;
}
.page-top > h1 {
  margin-bottom: 0.22em;
}
.lead {
  max-width: 65ch;
  font-size: 1.08rem;
}
.muted,
.lead,
.meta {
  color: var(--muted);
}
.meta,
.small-text {
  font-size: 0.84rem;
}
.meta {
  font-weight: 650;
}
.break {
  overflow-wrap: anywhere;
}
.visually-hidden,
.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip:focus {
  z-index: 10;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  clip-path: none;
  padding: 10px;
  background: var(--surface);
}
.icon {
  display: inline-block;
  width: 1.24em;
  height: 1.24em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  vertical-align: middle;
}
.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--mist);
  color: var(--blue);
  flex: none;
}
.icon-tile .icon {
  width: 21px;
  height: 21px;
}
.button,
.nav-icon,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 45px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1.25;
  text-align: center;
  transition:
    background-color 150ms,
    color 150ms,
    border-color 150ms;
}
.button {
  background: var(--primary);
  color: #fcfff5;
}
.button:hover {
  background: var(--primary-hover);
}
.button:active {
  background: var(--navy-deep);
}
.button.outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.button.outline:hover,
.nav-icon:hover,
.icon-button:hover {
  background: var(--mist);
  color: var(--blue);
  border-color: var(--line-strong);
}
.button.bright,
.button.light {
  background: var(--accent);
  color: var(--navy-deep);
}
.button.bright:hover,
.button.light:hover {
  background: var(--accent-hover);
}
.button.small {
  min-height: 39px;
  padding: 8px 12px;
}
.button.wide {
  width: 100%;
}
.nav-icon,
.icon-button {
  color: var(--ink);
  width: 44px;
  min-height: 44px;
  padding: 0;
  background: transparent;
}
.icon-button {
  border-color: var(--line);
}
.icon-button.add-item {
  color: var(--primary-hover);
  background: #e9edff;
  border-color: #dce1fa;
}
.icon-button.add-item:hover {
  background: var(--primary);
  color: #fff;
}
.text-link,
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary-hover);
  font-weight: 800;
  text-decoration: none;
}
.text-link:hover,
.text-button:hover {
  text-decoration: underline;
}
.text-button {
  border: 0;
  background: none;
  padding: 4px 0;
}
.actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.inline-actions {
  flex-wrap: nowrap;
  gap: 5px;
}

.site-header {
  --header-blue: var(--brand-header);
  --header-line: #ffffff35;
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--header-blue);
  color: var(--surface);
  border-bottom: 1px solid #6677e8;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  min-height: calc(var(--header-height) - 1px);
}
.desktop-nav,
.header-actions {
  display: flex;
  align-items: center;
}
.desktop-nav {
  gap: clamp(10px, 1.65vw, 25px);
  align-items: stretch;
  justify-content: center;
  margin-inline: auto;
  align-self: stretch;
}
.desktop-nav a {
  position: relative;
  display: flex;
  align-items: center;
  color: #eff0ff;
  font-size: 0.865rem;
  font-weight: 750;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.desktop-nav a::after {
  position: absolute;
  inset: auto 0 -1px;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transition: transform 170ms ease-out;
}
.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--accent);
}
.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}
.header-actions {
  gap: 4px;
}
.site-header .nav-icon {
  color: var(--surface);
}
.site-header .nav-icon .icon {
  width: 19px;
  height: 19px;
}
.site-header .nav-icon:hover,
.site-header .nav-icon[aria-current],
.site-header details[open] > summary {
  border-color: var(--header-line);
  background: #3544aa;
  color: var(--surface);
}
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--accent);
}
.header-actions .account-link {
  min-height: 42px;
  padding-inline: 12px;
  margin-left: 4px;
  border-color: var(--header-line);
  background: #2d3da4;
  color: var(--surface);
  white-space: nowrap;
}
.header-actions .account-link:hover {
  border-color: #b5c0ff;
  background: #394dbf;
}
.cart-link {
  position: relative;
}
.cart-count {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding-inline: 3px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--navy-deep);
  font-size: 0.65rem;
  font-variant-numeric: tabular-nums;
}
.header-search > summary,
.mobile-nav > summary {
  list-style: none;
}
.header-search > summary::-webkit-details-marker,
.mobile-nav > summary::-webkit-details-marker {
  display: none;
}
.header-search > summary {
  width: auto;
  padding-inline: 10px;
  border-color: var(--header-line);
}
.header-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: max(var(--page-gutter), calc((100% - 1272px) / 2));
  width: min(420px, calc(100% - 2 * var(--page-gutter)));
  max-height: calc(100dvh - var(--header-height) - 22px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 40px -18px #1119468c;
}
.site-header .header-panel :focus-visible {
  outline-color: var(--focus);
}
.search-panel label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.header-search-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.header-search-field input {
  min-width: 0;
  width: 100%;
  height: 45px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
}
.header-search-field input::placeholder {
  color: var(--muted);
}
.search-panel > .text-link {
  margin-top: 12px;
  min-height: 32px;
  font-size: 0.85rem;
}
.launch-search,
.catalog-query {
  position: relative;
}
.catalog-query {
  min-width: 0;
}
.catalog-query input {
  margin-top: 4px;
}
.search-dropdown {
  position: absolute;
  z-index: 4;
  inset: calc(100% + 6px) 0 auto;
  max-height: min(352px, 48dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 14px 28px -13px #17256d70;
}
.search-panel .search-dropdown {
  position: static;
  max-height: none;
  margin-top: 10px;
  border-color: var(--line);
  box-shadow: none;
}
.search-dropdown-label,
.search-dropdown-notice {
  margin: 0;
  padding: 6px 8px;
  color: var(--muted);
  font-size: 0.83rem;
}
.search-dropdown-label {
  font-weight: 800;
}
.course-suggestion {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 49px;
  padding: 6px;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
}
.course-suggestion:not(:first-child) {
  margin-top: 2px;
}
.course-suggestion:hover,
.course-suggestion[aria-selected="true"] {
  background: var(--mist);
  color: var(--primary-hover);
}
.course-suggestion[aria-selected="true"] {
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.course-suggestion > .cover {
  width: 37px;
  height: 37px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.suggestion-copy {
  display: grid;
  line-height: 1.28;
}
.suggestion-copy strong {
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}
.suggestion-copy > span {
  color: var(--muted);
  font-size: 0.79rem;
  overflow-wrap: anywhere;
}
.suggestion-price {
  font-size: 0.79rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.mobile-nav,
.mobile-nav .menu-close-icon,
.mobile-nav[open] .menu-open-icon {
  display: none;
}
.mobile-nav .menu-open-icon,
.mobile-nav[open] .menu-close-icon {
  display: flex;
}
.mobile-links,
.mobile-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}
.mobile-shortcuts {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}
.mobile-links + .mobile-shortcuts {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.mobile-nav nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 770;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.mobile-links a {
  justify-content: space-between;
}
.mobile-links .icon {
  color: var(--blue);
  flex: none;
}
.mobile-nav nav a:hover,
.mobile-nav nav a[aria-current] {
  background: var(--mist);
  color: var(--primary);
}
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 22px;
  font-size: 0.84rem;
  color: var(--muted);
}
.breadcrumbs a {
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--blue);
  text-decoration: underline;
}
.breadcrumbs [aria-current] {
  color: var(--ink);
  font-weight: 780;
}
.breadcrumbs + .page-top {
  padding-top: 32px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 15px;
  margin-bottom: 20px;
}
.section-heading h2 {
  margin-bottom: 5px;
}
.section-heading p {
  color: var(--muted);
  margin: 0;
}
.section-heading > .button {
  flex: none;
}
.course-grid,
.category-grid,
.product-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.course-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.compact,
.bundle-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.listing-grid {
  margin-top: 25px;
}
.course-card,
.category-card,
.product-card,
.panel,
.buy-panel,
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.course-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cover {
  display: block;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.62;
  background: var(--cover);
  color: var(--art);
  text-decoration: none;
}
.cover:focus-visible {
  outline-offset: -3px;
  outline-color: #ffe1a3;
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-1 {
  --cover: #224535;
  --art: #ddeaac;
}
.cover-2 {
  --cover: #8c4c3f;
  --art: #ffdfbc;
}
.cover-3 {
  --cover: #476c67;
  --art: #ecfff1;
}
.cover-4 {
  --cover: #2d4854;
  --art: #e5eced;
}
.cover-5 {
  --cover: #8b6d44;
  --art: #fceac7;
}
.cover-6 {
  --cover: #59483f;
  --art: #f2e3c7;
}
.cover-design {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 24px,
    #f6efde19 24px 25px
  );
}
.cover-orbit {
  position: absolute;
  top: 18%;
  bottom: 17%;
  width: 56%;
  left: 18%;
  border: 1px solid currentColor;
  opacity: 0.45;
  transform: skew(-14deg);
  outline: 1px solid currentColor;
  outline-offset: 8px;
}
.cover-symbol {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.cover-symbol .icon {
  width: 24%;
  height: auto;
  aspect-ratio: 1;
  stroke-width: 1.15;
}
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: #f6f4e7;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.71rem;
}
.course-card:hover,
.product-card:hover {
  border-color: var(--line-strong);
}
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 15px;
  min-width: 0;
}
.course-topic {
  color: var(--primary-hover);
  font-size: 0.79rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.card-body h3 {
  min-height: 2.3em;
  margin-bottom: 10px;
}
.course-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 10px;
  color: var(--muted);
  font-size: 0.77rem;
  margin-bottom: 10px;
}
.course-facts span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 9px;
  margin-top: auto;
  border-top: 1px solid var(--line);
}
.money,
.price {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--ink);
}
.money {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1px 5px;
  line-height: 1.2;
}
.money s,
.price s {
  color: var(--muted);
  font-weight: 650;
  font-size: 0.8rem;
  white-space: nowrap;
}
.card-bottom .icon-button {
  width: 39px;
  min-height: 41px;
}

.category-card {
  display: flex;
  gap: 11px;
  align-items: start;
  padding: 16px;
  text-decoration: none;
}
.category-card:hover {
  border-color: var(--line-strong);
  background: var(--mist);
}
.category-content {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
  overflow-wrap: anywhere;
}
.category-content > strong {
  font-weight: 800;
  line-height: 1.23;
}
.category-description {
  color: var(--muted);
  font-size: 0.88rem;
}
.category-card > .icon {
  color: var(--blue);
  width: 16px;
  margin-top: 3px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 22px;
  min-width: 0;
}
.product-card .icon-tile {
  margin-bottom: 14px;
}
.product-card h3 {
  font-size: 1.3rem;
}
.product-copy {
  min-width: 0;
  width: 100%;
}
.product-copy > p {
  color: var(--muted);
}
.product-card .button {
  margin-top: auto;
}
.product-card .price {
  color: var(--ink);
  font-size: clamp(1.55rem, 2.45vw, 2.1rem);
  margin-block: 5px 14px;
}
.price {
  font-size: 1.82rem;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.price > span:not(.status) {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 680;
  letter-spacing: normal;
  white-space: nowrap;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 5px;
  background: #e6eaff;
  color: #222e88;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: normal;
}
.bundle-card {
  isolation: isolate;
  min-height: 208px;
  background: #e6ebff;
  padding-right: clamp(90px, 15vw, 210px);
  overflow: hidden;
}
.bundle-card:nth-child(2n) {
  background: #f2ead9;
}
.bundle-mark {
  position: absolute;
  z-index: -1;
  inset: 17% 7% 14% auto;
  width: 27%;
  min-width: 76px;
}
.bundle-mark i {
  position: absolute;
  display: grid;
  place-items: center;
  inset: 8% 12%;
  border-radius: 3px 9px 9px 3px;
  box-shadow: 0 10px 20px -12px #162d22aa;
  background: #234f40;
  color: var(--accent);
  transform: rotate(13deg);
  border-left: 4px solid #162f26;
}
.bundle-mark i:nth-child(2) {
  transform: translate(-11%, 8%) rotate(-15deg);
  background: #759873;
}
.bundle-mark i:nth-child(3) {
  transform: translate(11%, -3%) rotate(1deg);
  background: #466e56;
}
.bundle-card:nth-child(2n) .bundle-mark i {
  background: #8b5a42;
  border-color: #653f2d;
  color: #f9e2b5;
}
.bundle-card:nth-child(2n) .bundle-mark i:nth-child(2) {
  background: #b98b56;
}
.bundle-mark .icon {
  width: 44%;
  height: 44%;
  stroke-width: 1.3;
}
.bundle-card .product-image {
  max-height: 200px;
}
.product-image,
.article-image {
  width: 100%;
  aspect-ratio: 1.8;
  max-height: 350px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 13px;
}

.faq-band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.faq-items details {
  border-top: 1px solid var(--line-strong);
}
.faq-items details:last-child {
  border-bottom: 1px solid var(--line-strong);
}
summary {
  font-weight: 780;
}
.faq-items summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 14px 2px;
}
.faq-items summary::-webkit-details-marker {
  display: none;
}
.faq-items summary .icon,
.faq-items details[open] summary {
  color: var(--primary-hover);
}
.faq-items details[open] summary .icon {
  transform: rotate(45deg);
}
.faq-items p {
  padding: 0 20px 15px 2px;
  color: var(--muted);
}
.newsletter-band {
  background: linear-gradient(var(--paper) 50%, var(--navy-deep) 50%);
}
.newsletter-band:focus {
  outline: none;
}
main:has(.newsletter-band) ~ .site-footer {
  border-top-color: transparent;
}
.newsletter {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  grid-template-columns: clamp(130px, 15vw, 200px) minmax(0, 1fr) minmax(305px, 1.1fr);
  gap: clamp(15px, 2.4vw, 34px);
  overflow: hidden;
  padding: clamp(24px, 3.1vw, 44px);
  border: 1px solid #6579ed;
  border-radius: 15px;
  background: var(--primary);
  color: var(--surface);
  box-shadow: 0 16px 28px -20px #0d112f9c;
}
.newsletter::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, #99aaff33 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, #99aaff33 0 1px, transparent 1px 26px);
  mask-image: linear-gradient(100deg, #000 8%, transparent 66%);
  content: "";
}
.newsletter-art svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 10px #151b3d6b);
}
.newsletter h2 {
  margin-bottom: 9px;
  font-size: clamp(2.32rem, 3.95vw, 3.75rem);
  letter-spacing: -0.04em;
}
.newsletter h2 span {
  display: block;
}
.newsletter-intro p {
  max-width: 35ch;
  color: #e5eaff;
  font-size: 0.96rem;
}
.newsletter-form {
  min-width: 0;
  padding: clamp(15px, 2vw, 22px);
  border: 1px solid #bfc8ff;
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 12px 28px -20px #10153a;
}
.newsletter-form label {
  display: block;
  margin-bottom: 7px;
}
.newsletter-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.newsletter-field #newsletter-email {
  padding-inline: 12px;
  background: var(--paper);
  font-size: 1rem;
}
.newsletter-field .button .icon {
  transition: transform 160ms ease-out;
}
.newsletter-field .button:hover .icon {
  transform: translate(2px, -2px);
}
.newsletter-feedback {
  margin-top: 12px;
  font-size: 0.865rem;
}
.newsletter-feedback .icon {
  flex: none;
}
.coupon {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

input:not([type="radio"], [type="checkbox"]),
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 45px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
}
input::placeholder,
textarea::placeholder {
  color: #57675c;
  opacity: 1;
}
input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--blue);
}
textarea {
  resize: vertical;
}
label,
legend {
  color: var(--ink);
  font-weight: 770;
  font-size: 0.88rem;
}
label input,
label select,
label textarea {
  margin-top: 4px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
}
.choice input {
  margin: 0;
}
.form {
  display: grid;
  gap: 12px;
  margin-block: 14px;
}
.form p {
  margin: 0;
  min-width: 0;
}
.form p > label {
  display: block;
  margin-bottom: 4px;
}
.form .button {
  justify-self: start;
}
.form .wide {
  justify-self: stretch;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
}
.form-card {
  max-width: 490px;
  margin-inline: auto;
  padding: clamp(20px, 4vw, 34px);
  box-shadow: var(--shadow);
}
.form-card h1,
.account-main h1 {
  font-size: clamp(2.7rem, 4.1vw, 4.25rem);
}
.form-card > .icon-tile {
  margin-bottom: 13px;
}
.form-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 9px;
  padding-top: 13px;
  margin-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}
.form-links a {
  color: var(--primary-hover);
  font-weight: 780;
}
.helptext,
.helptext li {
  font-size: 0.8rem;
  color: var(--muted);
}
.helptext ul {
  margin: 5px 0 0;
  padding-left: 16px;
}
.errorlist {
  color: #972341;
  padding-left: 1.1rem;
  margin: 0;
  font-size: 0.85rem;
}
.filters {
  display: grid;
  grid-template-columns: 1.6fr minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 16px;
  margin-top: 20px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.filters.category-filters {
  grid-template-columns: 1.6fr 1fr auto;
}
.filters label {
  min-width: 0;
}
.filters label > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.filters label .icon {
  color: var(--blue);
}
.result-count,
.pagination {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 680;
}
.result-count {
  margin-block: 16px 12px;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.empty {
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  grid-column: 1 / -1;
  background: var(--surface);
}
.empty > .icon {
  color: var(--blue);
  font-size: 1.28rem;
  margin-bottom: 8px;
}
.empty h2 {
  font-size: 2rem;
}
.empty p {
  color: var(--muted);
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(270px, 1fr);
  grid-template-areas: "title buy" "body buy";
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 0 clamp(20px, 5vw, 73px);
}
.detail-header {
  grid-area: title;
}
.detail-main {
  grid-area: body;
}
.detail-header h1,
.article h1 {
  font-size: clamp(3rem, 5.2vw, 5.3rem);
}
.detail-topic {
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.detail-section {
  margin-top: 26px;
}
.detail-section h2 {
  font-size: clamp(2rem, 3.2vw, 3.2rem);
}
.prose,
.article {
  max-width: 71ch;
}
.article {
  margin-inline: auto;
}
.article p {
  overflow-wrap: anywhere;
}
.buy-panel {
  overflow: hidden;
  position: sticky;
  top: 15px;
  grid-area: buy;
  box-shadow: var(--shadow);
}
.buy-content {
  padding: 17px;
}
.buy-content > * + * {
  margin-top: 9px;
}
.buy-content p {
  margin-bottom: 8px;
}
.buy-content .small-text {
  line-height: 1.5;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  background: var(--surface);
  font-size: 0.8rem;
}
.meta-row .icon {
  color: var(--blue);
}
.checkout-grid,
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(270px, 1fr);
  align-items: start;
  gap: 16px;
}
.panel {
  padding: 20px;
}
.panel h2 {
  font-size: 2rem;
}
.panel + .panel {
  margin-top: 12px;
}
.checkout-grid .panel + .panel,
.profile-grid .panel + .panel {
  margin-top: 0;
}
.record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.record:last-child {
  border-bottom: 0;
}
.record > div {
  min-width: 0;
}
.record h3,
.record p {
  margin: 0;
}
.record h3 {
  font-size: 1rem;
}
.record > span,
.record > strong {
  overflow-wrap: anywhere;
}
.record .button {
  flex: none;
  max-width: 100%;
}
.coupon {
  align-items: end;
  margin-top: 14px;
}
.order-summary {
  background: var(--mist);
}
.order-summary dl {
  display: grid;
  gap: 8px;
  margin-bottom: 13px;
}
.order-summary dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 5px;
}
.order-summary dd {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.order-summary .total {
  border-top: 1px solid var(--line-strong);
  padding-top: 10px;
  font-size: 1.05rem;
}
.payment-form {
  min-height: 145px;
}
.account-main {
  min-width: 0;
}
.account-main h1 {
  margin-bottom: 9px;
}
.flashes:has(.flash) {
  padding-top: 10px;
}
.flash {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  margin-bottom: 5px;
  border-radius: 7px;
  font-weight: 690;
  color: #315244;
  background: #e6eee2;
}
.flash.error {
  background: #fbecef;
  color: #851d39;
}
.flash.success {
  background: #e4f1df;
  color: #234d31;
}
.site-footer {
  background: var(--navy-deep);
  color: var(--surface);
  border-top: 1px solid #7484e35e;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 2.4fr);
  align-items: start;
  gap: clamp(26px, 4vw, 64px);
  padding-block: clamp(32px, 4vw, 58px);
}
.footer-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 20px;
  border: 1px solid #8997ec50;
  border-radius: 12px;
  background: #202b65;
}
.footer-brand-copy {
  position: relative;
}
.footer-engraving {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 46%;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(0deg, #9aa8f42a 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, #9aa8f42a 0 1px, transparent 1px 18px);
  mask-image: linear-gradient(to right, transparent, #000 74%);
}
.footer-engraving::before {
  position: absolute;
  width: 118px;
  aspect-ratio: 1;
  border: 1px solid #9aa8f460;
  border-radius: 50%;
  content: "";
}
.footer-engraving .icon {
  width: 101px;
  height: 101px;
  color: #9aa8f42f;
}
.footer-intro .brand {
  font-size: 1.39rem;
}
.footer-intro p {
  max-width: 25ch;
  margin: 12px 0 9px;
  color: #dee3ff;
  font-size: 0.9rem;
}
.footer-intro .text-link {
  min-height: 34px;
  color: var(--accent);
  font-size: 0.875rem;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 24px clamp(10px, 2vw, 28px);
  padding-block: 6px;
}
.footer-links h2 {
  margin-bottom: 8px;
  color: var(--surface);
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 740;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.footer-links a {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  padding-block: 3px;
  color: #d8defa;
  font-size: 0.87rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.footer-links a:hover,
.footer-bottom a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-block: 12px;
  border-top: 1px solid #8997ec50;
  color: #d8defa;
  font-size: 0.82rem;
}
.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  font-weight: 740;
  text-decoration: none;
}
.footer-top > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #8997ec64;
  border-radius: 7px;
  background: #202b65;
  color: var(--accent);
}

@media (max-width: 1020px) {
  .desktop-nav {
    display: none;
  }
  .header-inner {
    gap: 8px;
  }
  .header-actions {
    margin-left: auto;
  }
  .mobile-nav {
    display: block;
  }
  .mobile-nav > summary {
    border-color: var(--header-line);
  }
}
@media (max-width: 1130px) {
  :root {
    --page-gutter: 28px;
  }
  .course-grid:not(.compact) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .shelf .course-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 930px) {
  .newsletter {
    grid-template-columns: minmax(90px, 0.65fr) minmax(0, 1fr);
  }
  .newsletter-form {
    grid-column: 1 / -1;
  }
  .newsletter-art {
    width: min(175px, 100%);
    justify-self: end;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }
  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shelf .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-grid,
  .checkout-grid {
    grid-template-columns: 1.3fr minmax(200px, 1fr);
  }
}
@media (max-width: 700px) {
  :root {
    --header-height: 64px;
    --page-gutter: 16px;
  }
  .header-inner,
  .header-actions {
    gap: 4px;
  }
  .header-search > summary {
    width: 44px;
    padding: 0;
    border-color: transparent;
  }
  .header-search > summary span,
  .header-actions .header-save,
  .header-actions .account-link {
    display: none;
  }
  .section-heading {
    align-items: start;
    gap: 7px;
    margin-bottom: 15px;
  }
  .section-heading p {
    font-size: 0.91rem;
  }
  .section-heading > .button {
    max-width: 46%;
    padding-inline: 8px;
  }
  .section-heading > .button .icon {
    display: none;
  }
  .course-grid:not(.compact),
  .compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .card-body {
    padding: 9px;
  }
  .card-body h3 {
    font-size: 0.98rem;
  }
  .course-facts,
  .course-topic {
    font-size: 0.73rem;
  }
  .card-bottom {
    flex-wrap: wrap;
    padding-top: 7px;
  }
  .card-bottom .icon-button {
    width: 39px;
    min-height: 44px;
  }
  .product-grid,
  .checkout-grid,
  .profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .bundle-card {
    padding-right: clamp(101px, 32vw, 215px);
  }
  .filters,
  .filters.category-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 11px;
  }
  .filters .catalog-query {
    grid-column: 1 / -1;
  }
  .filters .button {
    width: fit-content;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "buy" "body";
    grid-template-rows: auto;
    gap: 12px;
  }
  .detail-cover {
    max-height: 190px;
  }
  .buy-panel {
    position: static;
  }
  .detail-section {
    margin-top: 16px;
  }
  .panel {
    padding: 13px;
  }
  .record {
    flex-wrap: wrap;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .footer-links a {
    min-height: 42px;
  }

}
@media (max-width: 520px) {
  .newsletter {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
    padding: 18px;
  }
  .newsletter-art {
    width: 108px;
    justify-self: start;
    margin: -4px 0 -9px -4px;
  }
  .newsletter h2 {
    font-size: clamp(2.05rem, 8.7vw, 2.55rem);
  }
  .newsletter-field {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 378px) {
  :root {
    --page-gutter: 11px;
  }
  .site-header .brand {
    gap: 5px;
    font-size: 1rem;
  }
  .site-header .brand-mark {
    width: 31px;
    height: 31px;
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
  .card-bottom .icon-button {
    width: 35px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
  }
}

/* --- Curated Course Bundles (Native Workbench & Studio UI) --- */
.filters.bundle-filters {
  grid-template-columns: 1.5fr minmax(0, 1fr) minmax(0, 1fr);
}
.shelf-filters.bundle-shelf-filters {
  flex-wrap: wrap;
  overflow-x: visible;
  gap: 6px;
  margin: 14px 0 16px;
  padding: 0;
}
.shelf-filters.bundle-shelf-filters a {
  min-height: 40px;
  padding: 6px 11px;
  background: var(--surface);
}
.shelf-filters.bundle-shelf-filters a:hover {
  border-color: #7c8be8;
  background: var(--studio-pale, #e4e9ff);
}
.shelf-filters.bundle-shelf-filters a[aria-current] {
  color: #fff;
  background: var(--studio-blue, #263bc5);
  border-color: var(--studio-blue, #263bc5);
}
.shelf-filters a[aria-current] .meta {
  color: #dce3ff;
}
.bundle-results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 16px;
}
.bundle-results-bar .result-count {
  margin: 0;
}
.bundle-results-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.bundle-trust-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid #d5dcf3;
  border-radius: 6px;
  background: #f3f5ff;
  color: var(--studio-ink, #18246d);
  font-size: 0.79rem;
  font-weight: 740;
}
.bundle-trust-note .icon {
  width: 15px;
  height: 15px;
  color: var(--studio-blue, #263bc5);
}
.bundle-pro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.bundle-pro-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #c9d0ee;
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}
.bundle-pro-card[hidden] {
  display: none !important;
}
.bundle-pro-card:hover {
  border-color: #8796e6;
  box-shadow: 0 14px 28px -20px #293ba77a;
}
.bundle-pro-visual {
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid #d5dcf3;
  background: var(--studio-blue, #263bc5);
}
.bundle-pro-hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms var(--ease-out, ease);
}
@media (hover: hover) and (pointer: fine) {
  .bundle-pro-card .bundle-pro-visual:hover .bundle-pro-hero {
    transform: scale(1.028);
  }
}
.bundle-pro-fan {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.bundle-fan-card {
  width: 42%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: #23318c;
  box-shadow: 0 14px 28px -10px rgba(8, 12, 42, 0.72);
  overflow: hidden;
  flex: none;
}
.bundle-fan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bundle-fan-1 { transform: translateX(18%) rotate(-7deg) scale(0.92); z-index: 1; }
.bundle-fan-2 { transform: translateY(-4px) scale(1.04); z-index: 3; }
.bundle-fan-3 { transform: translateX(-18%) rotate(7deg) scale(0.92); z-index: 2; }
.bundle-pro-badges {
  position: absolute;
  inset: 10px 10px auto 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 4;
  pointer-events: none;
}
.bundle-pro-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 5px;
  background: #17205ae8;
  border: 1px solid #ffffff33;
  color: #fffdf7;
  font-size: 0.73rem;
  font-weight: 800;
}
.bundle-pro-tag .icon {
  width: 14px;
  height: 14px;
}
.bundle-pro-tag.is-featured {
  background: var(--studio-signal, #ffd176);
  border-color: #f3ba58;
  color: #25213f;
}
.bundle-pro-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding: 16px 18px 18px;
}
.bundle-pro-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}
.bundle-pro-cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 0;
  text-decoration: none;
}
.bundle-pro-cat:hover {
  text-decoration: underline;
}
.bundle-pro-cat .icon {
  width: 15px;
  height: 15px;
}
.bundle-pro-body h3 {
  color: var(--studio-ink, #18246d);
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.9vw, 1.42rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}
.bundle-pro-summary {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.48;
  margin-bottom: 12px;
}
.bundle-pro-list {
  list-style: none;
  margin: 0 0 15px;
  padding: 10px 12px;
  border: 1px solid #d5dcf3;
  border-radius: 8px;
  background: #f3f5ff;
  display: grid;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 660;
}
.bundle-pro-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.bundle-pro-list li span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bundle-pro-list .icon {
  width: 15px;
  height: 15px;
  color: var(--studio-blue, #263bc5);
  flex: none;
}
.bundle-pro-more {
  color: var(--studio-ink, #18246d);
  font-weight: 800;
  padding-left: 22px;
}
.bundle-pro-footer {
  padding-top: 12px;
  gap: 10px;
}
.bundle-pro-price {
  gap: 6px;
}
.bundle-pro-price strong {
  color: var(--studio-ink, #18246d);
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.bundle-pro-price s {
  font-size: 0.88rem;
}
.bundle-pro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.bundle-membership-cta {
  margin-top: 28px;
  padding: clamp(18px, 2.8vw, 28px);
  border-radius: 13px;
  border: 1px solid #d3dbf4;
  background: #eef0ff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.bundle-cta-copy {
  min-width: 0;
}
.bundle-cta-copy .course-topic {
  margin-bottom: 4px;
}
.bundle-membership-cta h2 {
  color: var(--studio-ink, #18246d);
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  letter-spacing: -0.035em;
  margin: 0 0 6px;
}
.bundle-membership-cta p:last-child {
  max-width: 64ch;
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0;
}
.bundle-membership-cta p strong {
  color: var(--studio-ink, #18246d);
}
.bundle-cta-actions {
  flex: none;
}
@media (max-width: 860px) {
  .bundle-pro-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  .filters.bundle-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shelf-filters.bundle-shelf-filters a {
    min-height: 38px;
    padding: 5px 9px;
    font-size: 0.81rem;
  }
}
