/* Physical Learn extraction: preserves the a2ky9 editorial system without adding a new template. */
html,
body {
  overflow-x: clip;
}

.learn-main {
  min-height: 100vh;
}

#education {
  --green: #00c896;
  --red: #ff6868;
  --overlay-bg: rgba(8, 8, 7, .82);
  min-width: 0;
  padding: 72px 0;
}

html[data-theme="light"] #education {
  --green: #087d62;
  --red: #b83232;
  --overlay-bg: rgba(245, 240, 231, .9);
}

#education .container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-right: 40px;
  padding-left: 40px;
}

#education .page-section {
  min-width: 0;
}

#education .edu-header {
  max-width: 760px;
  margin: 0 0 56px;
}

#education .label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-soft);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

#education .label::before {
  width: 28px;
  height: 1px;
  background: currentColor;
  content: "";
}

#education h1.display {
  max-width: 100%;
  min-width: 0;
  margin: 12px 0 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(2.125rem, 4vw, 3rem);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.05;
}

#education .serif-italic.large {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  font-style: italic;
  line-height: 1.35;
}

.learn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.learn-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.learn-cta:hover {
  border-color: var(--gold-soft);
  color: var(--gold-soft);
}

.learn-cta:active {
  transform: translateY(1px);
}

#education .edu-grid,
#education .featured-videos {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

#education .edu-card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--surface);
}

#education .edu-card > :not(.edu-thumb) {
  margin-right: 28px;
  margin-left: 28px;
}

#education .edu-card > .edu-card-zh {
  margin-top: 24px;
}

#education .edu-card > .edu-card-link {
  margin-bottom: 28px;
}

#education .edu-thumb,
#education .video-embed-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  background: var(--bg);
}

#education .edu-thumb img,
#education .video-embed-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#education .video-embed {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

#education .video-embed-play,
#education .edu-thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border: 1px solid var(--text);
  border-radius: 50%;
  background: var(--overlay-bg, color-mix(in srgb, var(--bg) 72%, transparent));
  color: var(--text);
}

#education .video-embed-title,
#education .edu-card-zh {
  color: var(--text);
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
}

#education .video-embed-title {
  font-size: 1.5rem;
}

#education .edu-card-zh {
  font-size: 1.375rem;
}

#education .video-embed-sub,
#education .edu-card-en,
#education .edu-card-body {
  color: var(--muted);
}

#education .edu-card-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}

#education .icon {
  width: 16px;
  height: 16px;
}

#education .btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: .78rem;
  font-weight: 650;
}

#education .btn:hover {
  border-color: var(--gold-soft);
  color: var(--gold-soft);
}

#education .a2-prop-retry {
  display: block;
  min-height: 44px;
  margin-top: 12px;
}

#education .a2-drag-scroll {
  cursor: grab;
}

#education .a2-drag-scroll.is-dragging {
  cursor: grabbing;
}

#education .a2-education-toolkit-fragment-state {
  display: grid;
  min-height: 150px;
  grid-column: 1 / -1;
  align-content: center;
  justify-items: start;
  gap: 10px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--border);
  background: var(--surface);
}

#education .a2-education-toolkit-fragment-state p {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

#education .a2-education-toolkit-fragment-state[hidden] {
  display: none;
}

#education .a2-prop-static-fallback {
  display: grid;
  min-height: 150px;
  align-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

#education .a2-prop-static-fallback p {
  margin: 0;
}

#education .a2-prop-static-fallback strong {
  color: var(--text);
}

#education .a2-education-toolkit-live-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.learn-footer-note {
  max-width: 56ch;
  margin: 54px 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.7;
}

.learn-copy-field,
.learn-sr-only {
  position: fixed;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 768px) {
  #education .edu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #education .featured-videos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #education {
    padding-top: 72px;
  }

  #education .container {
    width: 100%;
    padding-right: 24px;
    padding-left: 24px;
  }

  #education .edu-card > :not(.edu-thumb) {
    margin-right: 20px;
    margin-left: 20px;
  }

  .learn-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .learn-cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .learn-cta {
    transition: none;
  }
}

@media print {
  .site-header,
  .legal-footer,
  .skip-link,
  .learn-actions {
    display: none !important;
  }

  #education {
    padding: 0;
  }

  #education .container {
    width: 100%;
  }
}
