/* Shared monochrome tokens. Local font fallbacks keep the plugin self contained. */
.wu-app {
  --wu-paper: #fff;
  --wu-ink: #000;
  --wu-muted: #f5f5f5;
  --wu-secondary: #525252;
  --wu-line: #e5e5e5;
  --wu-display: "Playfair Display", Georgia, "Noto Serif TC", "Source Han Serif TC", "PMingLiU", serif;
  --wu-body: "Source Serif 4", Georgia, "Noto Serif TC", "Microsoft JhengHei", serif;
  --wu-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  color: var(--wu-ink);
  background: var(--wu-paper);
  font-family: var(--wu-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: .015em;
  max-width: 1152px;
  margin: 40px auto;
  padding: clamp(20px, 4vw, 48px);
  text-align: start;
  isolation: isolate;
}
.wu-app *, .wu-app *::before, .wu-app *::after { box-sizing: border-box; }
.wu-app :is(h1, h2, h3, p, a, label, li, td, th, strong, span) {
  overflow-wrap: anywhere;
  word-break: normal;
}
.wu-app :is(h1, h2, h3) {
  color: var(--wu-ink);
  font-family: var(--wu-display);
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.5;
  margin: 0 0 20px;
  padding: 0;
  text-wrap: pretty;
}
.wu-app h1 { font-size: clamp(30px, 4vw, 48px); }
.wu-app h2 { font-size: clamp(25px, 3vw, 36px); }
.wu-app h3 { font-size: clamp(21px, 2.3vw, 28px); }
.wu-app p { margin: 0 0 20px; line-height: 1.85; }
.wu-app p:last-child { margin-bottom: 0; }
.wu-app a { color: var(--wu-ink); text-underline-offset: 5px; }
.wu-app img { max-width: 100%; height: auto; }
.wu-app :is(form, div, section, article, aside) { min-width: 0; }
.wu-hero {
  position: relative;
  border: 0;
  border-top: 4px solid #000;
  border-bottom: 1px solid #000;
  padding: clamp(32px, 6vw, 72px) 0;
  margin-bottom: 48px;
  background: #fff;
  box-shadow: none;
}
.wu-hero::before {
  content: "LEARN";
  display: block;
  font: 400 clamp(64px, 11vw, 128px)/1.1 var(--wu-display);
  letter-spacing: -.02em;
  margin-bottom: 32px;
}
.wu-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: repeating-linear-gradient(0deg, transparent 0 3px, #000 3px 4px);
  opacity: .015;
}
.wu-hero :is(h1, h2) { font-size: clamp(30px, 5vw, 56px); line-height: 1.5; max-width: 20em; margin-top: 24px; }
.wu-hero h2 span { background: none; }
.wu-hero p { font-size: 18px; color: var(--wu-secondary); max-width: 44em; }
.wu-badge {
  display: inline-block;
  max-width: 100%;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  padding: 7px 12px;
  font: 400 12px/1.7 var(--wu-mono);
  letter-spacing: .06em;
  box-shadow: none;
  vertical-align: middle;
}
.wu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 32px; align-items: stretch; }
.wu-card { background: #fff; border: 1px solid #000; box-shadow: none; height: 100%; overflow: hidden; }
.wu-card:hover { transform: none; box-shadow: none; }
.wu-cover { aspect-ratio: 16/9; overflow: hidden; background: #f5f5f5; border-bottom: 1px solid #000; }
.wu-cover img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.wu-poster, .wu-card:nth-child(2n) .wu-poster {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  font: 400 clamp(36px, 5vw, 56px)/1.2 var(--wu-display);
  text-align: center;
}
.wu-card-body { padding: 28px; }
.wu-card h3 { margin: 24px 0 16px; }
.wu-card-body > p { color: var(--wu-secondary); }
.wu-card-body strong { color: #000; }
.wu-app .wu-button, .wu-app button.wu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  min-height: 48px;
  height: auto;
  padding: 12px 22px;
  border: 1px solid #000;
  border-radius: 0;
  background: #000;
  color: #fff;
  font: 500 15px/1.7 var(--wu-body);
  letter-spacing: .04em;
  text-align: center;
  white-space: normal;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 100ms, color 100ms;
}
.wu-app .wu-button:hover, .wu-app button.wu-button:hover { color: #000; background: #fff; box-shadow: none; }
.wu-button:active { transform: none; box-shadow: none; }
.wu-app :focus-visible { outline: 3px solid #000; outline-offset: 3px; }
.wu-panel { padding: clamp(24px, 3vw, 36px); margin: 0 0 32px; border: 1px solid #000; background: #fff; box-shadow: none; }
.wu-intro { background: #fff; }
.wu-app :is(input:not([type]), input[type=text], input[type=email], input[type=search], input[type=number], input[type=password], input[type=url], input[type=date], input[type=datetime-local], select, textarea) {
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  height: auto;
  border: 1px solid #000;
  border-radius: 0;
  background-color: #fff;
  color: #000;
  padding: 10px 12px;
  font: 400 16px/1.65 var(--wu-body);
  letter-spacing: .015em;
  box-shadow: none;
}
.wu-app textarea { display: block; width: 100%; min-height: 120px; resize: vertical; }
.wu-app input::placeholder, .wu-app textarea::placeholder { color: #525252; opacity: 1; }
.wu-app :is(input, select, textarea):focus { border-color: #000; box-shadow: inset 0 -2px 0 #000; }
.wu-app label { line-height: 1.9; }
.wu-search { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 40px; }
.wu-search input { flex: 1 1 220px; }
.wu-search label { flex: 0 0 auto; }
.wu-classroom { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr); gap: 32px; align-items: start; }
.wu-lessons { margin: 24px 0 0; padding-left: 24px; }
.wu-lessons li { padding: 8px 0; border-bottom: 1px solid #e5e5e5; }
.wu-lessons a { display: block; padding: 10px 12px; line-height: 1.9; text-decoration: none; }
.wu-lessons a:hover { text-decoration: underline; }
.wu-lessons a[aria-current], .wu-pagination a[aria-current] { background: #000; color: #fff; border-color: #000; }
.wu-lesson-content :is(iframe, video), .wu-body img { max-width: 100%; }
.wu-lesson-content iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 1px solid #000; }
.wu-body { margin: 32px 0; overflow-wrap: anywhere; }
.wu-app progress { display: block; width: 100%; height: 12px; border: 1px solid #000; border-radius: 0; background: #fff; accent-color: #000; }
.wu-app progress::-webkit-progress-bar { background: #fff; }
.wu-app progress::-webkit-progress-value { background: #000; }
.wu-app progress::-moz-progress-bar { background: #000; }
.wu-progress-label { margin-top: 24px !important; }
.wu-pagination { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0; }
.wu-empty { grid-column: 1/-1; padding: 32px; border: 1px solid #000; background: #f5f5f5; }
.wu-app table { width: 100%; border: 1px solid #000; border-collapse: collapse; font-size: 15px; line-height: 1.8; }
.wu-app :is(th, td) { color: #000; padding: 16px; text-align: start; border-bottom: 1px solid #e5e5e5; vertical-align: top; }
.wu-app th { background: #f5f5f5; font-weight: 600; }
.wu-table-scroll { overflow-x: auto; max-width: 100%; margin: 24px 0; border-bottom: 1px solid #000; scrollbar-gutter: stable; }
.wu-table-scroll table { min-width: 680px; margin: 0; }
@media (max-width: 900px) { .wu-classroom { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .wu-app { margin: 24px auto; padding: 20px; }
  .wu-grid { grid-template-columns: 1fr; gap: 24px; }
  .wu-panel, .wu-card-body { padding: 24px; }
  .wu-hero { margin-bottom: 32px; }
  .wu-hero::before { font-size: clamp(52px, 18vw, 90px); }
  .wu-search { align-items: stretch; }
  .wu-search > * { width: 100%; }
  .wu-search .wu-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .wu-app *, .wu-app *::before, .wu-app *::after { transition: none !important; animation: none !important; } }
