:root {
  --explore-paper: var(--world-paper);
  --explore-surface: var(--world-surface);
  --explore-ink: var(--world-ink);
  --explore-muted: var(--world-muted);
  --explore-accent: var(--world-accent);
  --explore-line: var(--world-line);
  --explore-soft: var(--world-soft);
  --explore-sun: var(--world-sun);
  --ink: var(--explore-ink);
  --muted: var(--explore-muted);
  --paper: var(--explore-surface);
  --bg: var(--explore-paper);
  --green: var(--explore-accent);
  --line: var(--explore-line);
  --orange: var(--explore-accent);
  --nb-ink: var(--explore-ink);
  --nb-paper: var(--explore-surface);
  --nb-desk: var(--explore-paper);
  --nb-rule: var(--explore-line);
}

body.explore-ui {
  margin: 0;
  background: var(--explore-paper) !important;
  color: var(--explore-ink);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}
.explore-ui :is(p, button, input, textarea, select, label, summary, small, .utilities, .nav) {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif !important;
}
.explore-ui::before, .explore-ui::after { display: none !important; }
.explore-ui a { text-underline-offset: .24em; }
.explore-ui :is(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid #a48a2e;
  outline-offset: 4px;
}
.explore-ui :is(.header, .nav, #main, .footer) {
  width: min(1160px, calc(100% - 80px));
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 0;
}
.explore-ui .header {
  min-height: 94px;
  padding-block: 20px;
  background: transparent !important;
  border: 0;
  gap: 24px;
}
.explore-ui .brand {
  gap: 12px;
  color: var(--explore-ink);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif !important;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.explore-ui .brand small {
  margin-top: 2px;
  color: var(--explore-muted);
  font: 11px/1.5 "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: .12em;
}
.explore-ui .color-emblem { gap: 4px; transform: none; }
.explore-ui .color-emblem b {
  width: 8px;
  border-radius: 2px;
  background: var(--explore-accent) !important;
}
.explore-ui .utilities {
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
}
.explore-ui .utilities a { display: inline-flex !important; align-items: center; min-height: 44px; padding-block: 8px; }
.explore-ui .utilities span { background: var(--explore-soft); }
.explore-ui .nav {
  gap: 32px;
  min-height: 48px;
  background: transparent !important;
  border-bottom: 1px solid var(--explore-line);
  box-shadow: none;
}
.explore-ui .nav a {
  padding: 10px 0 12px;
  border-radius: 0 !important;
  border-bottom: 2px solid transparent;
  background: transparent !important;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.explore-ui .nav a[aria-current="page"] {
  color: var(--explore-accent);
  border-color: var(--explore-accent);
}
.explore-ui #main { padding-block: 32px 44px; min-height: 58vh; }
.explore-ui #main:focus-visible { outline: 2px solid var(--explore-line); outline-offset: 7px; }
.explore-ui h1, .explore-ui h2, .explore-ui h3 { color: var(--explore-ink); font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif !important; }
.explore-ui h1 {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif !important;
  font-size: clamp(30px, 3.4vw, 42px) !important;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -.025em;
}
.explore-ui h2 { font-size: 23px; line-height: 1.5; }
.explore-ui h3 { font-size: 19px; line-height: 1.5; }
.explore-ui :is(.eyebrow, .small, .hint, small) { color: var(--explore-muted); }
.explore-ui :is(.button, .button.secondary, .solid) {
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--explore-accent);
  border-radius: 5px;
  background: var(--explore-accent);
  color: var(--explore-surface);
  box-shadow: none;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.explore-ui :is(.button.secondary, .quiet) {
  background: transparent;
  color: var(--explore-accent);
}
.explore-ui :is(input, textarea, select) {
  max-width: 100%;
  border-color: #b8c6d8;
  border-radius: 5px;
  background: var(--explore-surface);
  color: var(--explore-ink);
}
.explore-ui textarea { line-height: 1.75; }
.explore-ui :is(.panel, .reader, .banner, .notebook, .guide-card) {
  border-color: var(--explore-line);
  border-radius: 7px;
  background-color: var(--explore-surface);
  box-shadow: none;
}
.explore-ui .banner { padding: 24px; }
.explore-ui .paper-title, .explore-ui .page-head {
  padding: 8px 0 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--explore-line);
  background: transparent !important;
}
.explore-ui .paper-title::before, .explore-ui .paper-title::after { display: none; }
.explore-ui .paper-title h1 { margin-bottom: 0; }
.explore-ui .paper-title .eyebrow { margin-bottom: 8px; }
.explore-ui .notebook-heading { border-bottom: 1px solid var(--explore-line) !important; }
.explore-ui .notebook-heading::after { display: none !important; }
.explore-ui .classroom-language { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.explore-ui .classroom-language > span { padding: 0; background: transparent; white-space: nowrap; font-size: 12px; }
.explore-ui .classroom-language select { width: 170px; min-width: 0; min-height: 40px; font-size: 13px; }
.explore-ui #page-listener { border: 0; background: var(--explore-soft); box-shadow: none; }
.explore-ui #page-listener button { background: var(--explore-accent); color: var(--explore-surface); }
.explore-ui .question-categories button {
  border: 1px solid var(--explore-line);
  border-radius: 5px;
  background: transparent;
  box-shadow: none;
  color: var(--explore-ink);
  font-size: 13px;
}
.explore-ui .paper-doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 28px;
}
.explore-ui .paper-doors > a {
  padding: 0 0 20px;
  overflow: hidden;
  border: 0 !important;
  border-bottom: 1px solid var(--explore-line) !important;
  border-radius: 0 !important;
  background: transparent;
  box-shadow: none !important;
  transform: none !important;
}
.explore-ui .paper-doors > a::before, .explore-ui .paper-doors > a::after { display: none; }
.explore-ui .door-art {
  display: block;
  height: 216px;
  margin: 0 0 16px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--explore-soft);
}
.explore-ui .door-art img { width: 100%; height: 100%; object-fit: cover; }
.explore-ui .door-scene-museum .door-art img { object-fit: contain; padding: 16px; }
.explore-ui .door-caption { padding: 0; }
.explore-ui .door-caption > span { font-size: 12px; color: var(--explore-muted); }
.explore-ui .door-caption h2 { margin-top: 5px; font-size: 24px; }
.explore-ui :is(.question-card, .news-card) { box-shadow: none; border-color: var(--explore-line); }
.explore-ui .question-categories button[aria-pressed="true"] { background: var(--explore-accent); color: #fdfefe; }
.explore-ui .footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding-block: 24px;
  border-top: 1px solid var(--explore-line);
  font-size: 12px;
}
.explore-ui .footer > span { color: var(--explore-ink); }
.explore-ui .footer > small { width: auto !important; flex-basis: auto !important; }
.explore-support { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-left: auto; }
.explore-support .product-actions { margin: 0; }
.explore-support .product-actions button { border: 0; background: transparent; padding: 6px 0; color: var(--explore-muted); font-size: 12px; }
.explore-ui #tw-feedback-dock,
.explore-ui #tw-feedback-open, .explore-ui .ai-launch, .explore-ui #tw-account-button {
  position: static !important;
  inset: auto !important;
  z-index: auto;
  width: auto !important;
  min-width: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: var(--explore-accent) !important;
  box-shadow: none !important;
  text-shadow: none;
  font-family: inherit;
  font-size: 13px;
}
.explore-ui #tw-account-button, .explore-ui .ai-launch {
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid var(--explore-line);
  border-radius: 5px;
}
.explore-ui #tw-feedback-open { padding: 8px 0; min-height: 44px; }
.explore-ui dialog {
  max-width: min(680px, calc(100vw - 32px));
  border: 1px solid var(--explore-line);
  border-radius: 10px;
  background: var(--explore-surface);
  color: var(--explore-ink);
}
.explore-ui dialog::backdrop { background: rgb(27 46 34 / .35); }

.channel-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.channel-intro h1 { margin-bottom: 8px; font-size: clamp(28px, 3vw, 38px) !important; letter-spacing: -.03em; line-height: 1.3; }
.channel-intro p { margin: 0; color: var(--explore-muted); font-size: 14px; }
.channel-intro > a { flex-shrink: 0; padding-block: 10px; color: var(--explore-muted); font-size: 12px; text-decoration: none; }
.channel-intro .notebook-heading { padding: 0 !important; margin: 0 !important; border: 0 !important; background: transparent !important; }
.channel-intro .notebook-heading::before, .channel-intro .notebook-heading::after { display: none !important; }
.channel-feature-grid { display: grid; grid-template-columns: 1.5fr 1fr; align-items: stretch; gap: 22px; }
.channel-feature-grid a { color: var(--explore-ink); text-decoration: none; }
.channel-story { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--explore-line); border-radius: 12px; background: var(--explore-surface); }
.channel-story-image { height: 230px; overflow: hidden; background: var(--explore-soft); }
.channel-story-image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 220ms ease-out; }
.channel-story:hover .channel-story-image img { transform: scale(1.025); }
.channel-story-copy { position: relative; flex: 1; padding: 22px 28px 24px; }
.channel-story-copy > p { margin: 0 0 10px; color: var(--explore-muted); font-size: 12px; }
.channel-story-copy cite { font-style: normal; }
.channel-story-copy h2 { margin-bottom: 20px; font-size: 28px; font-weight: 700; line-height: 1.4; letter-spacing: -.025em; }
.channel-story-action { display: inline-flex; justify-content: center; align-items: center; gap: 30px; min-height: 44px; padding: 9px 16px; border-radius: 5px; background: var(--explore-accent); color: var(--explore-surface); font-size: 13px; }
.channel-story-copy > small { margin-left: 16px; color: var(--explore-muted); font-size: 12px; white-space: nowrap; }
.channel-side { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; min-width: 0; }
.channel-museum, .channel-question { position: relative; overflow: hidden; min-height: 0; padding: 26px 28px; border-radius: 12px; }
.channel-museum { display: grid; grid-template-columns: 1fr 124px; gap: 12px; align-items: center; background: var(--explore-soft); }
.channel-museum img { width: 124px; height: 146px; object-fit: contain; }
.channel-label { position: relative; z-index: 1; margin: 0 0 12px; color: var(--explore-muted); font-size: 12px; }
.channel-side h2 { position: relative; z-index: 1; margin: 0 0 18px; font-size: 25px; font-weight: 650; line-height: 1.4; letter-spacing: -.025em; }
.channel-open { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 20px; font-size: 12px; font-weight: 600; }
.channel-question { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: var(--explore-sun); }
.channel-percent { position: absolute; right: 10px; bottom: -25px; color: #d9c489; font: 170px/1 Georgia, serif; pointer-events: none; }
.channel-shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 24px; }
.channel-shortcuts > a { display: flex; align-items: center; gap: 18px; padding: 22px 0; border-block: 1px solid var(--explore-line); color: var(--explore-ink); text-decoration: none; }
.channel-shortcut-label { flex: 0 0 90px; color: var(--explore-accent); font-size: 12px; font-weight: 600; }
.channel-shortcuts strong { display: block; font-size: 14px; font-weight: 600; }
.channel-shortcuts small { display: block; margin-top: 3px; color: var(--explore-muted); font-size: 12px; }
.channel-shortcut-arrow { margin-left: auto; color: var(--explore-accent); }
.explore-section-intro { max-width: 42em; margin: -10px 0 28px; color: var(--explore-muted); font-size: 15px; }
.explore-guide { margin-top: 28px; }

@media (max-width: 860px) {
  .explore-ui :is(.header, .nav, #main, .footer) { width: calc(100% - 40px); }
  .explore-ui .header { flex-wrap: wrap; gap: 12px; padding-block: 18px 12px; }
  .explore-ui .utilities { gap: 6px 14px; }
  .explore-ui .nav { gap: 24px; overflow-x: auto; scrollbar-width: none; }
  .explore-ui .nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 620px) {
  .explore-ui :is(.header, .nav, #main, .footer) { width: calc(100% - 36px); }
  .explore-ui .brand { font-size: 22px; }
  .explore-ui .brand small { font-size: 10px; }
  .explore-ui .header { min-height: 0; }
  .explore-ui .utilities { width: 100%; justify-content: flex-start; font-size: 12px; gap: 6px 18px; }
  .explore-ui .utilities #tw-account-button, .explore-ui .utilities .ai-launch { font-size: 12px; min-height: 44px; padding: 5px 10px; }
  .explore-ui .nav { gap: 18px; min-height: 46px; }
  .explore-ui .nav a { font-size: 13px; }
  .explore-ui #main { padding-top: 24px; }
  .explore-ui h1 { font-size: 31px !important; }
  .channel-intro { display: block; margin-bottom: 20px; }
  .channel-intro h1 { font-size: 28px !important; }
  .channel-intro p { font-size: 13px; line-height: 1.7; }
  .channel-intro > a { display: inline-flex; min-height: 44px; padding-block: 8px; font-size: 12px; }
  .channel-feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .channel-story-image { height: 160px; }
  .channel-story-copy { padding: 18px 20px 20px; }
  .channel-story-copy h2 { margin-bottom: 14px; font-size: 23px; }
  .channel-story-copy > small { display: inline-block; margin-left: 10px; font-size: 10px; }
  .channel-story-action { gap: 16px; padding-inline: 12px; font-size: 12px; }
  .channel-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 14px; }
  .channel-museum, .channel-question { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; min-height: 218px; padding: 18px 16px; border-radius: 9px; }
  .channel-label { margin-bottom: 12px; font-size: 10px; line-height: 1.5; }
  .channel-side h2 { margin-bottom: 16px; font-size: 16px; line-height: 1.5; }
  .channel-museum { padding-top: 88px; }
  .channel-museum .channel-label { position: absolute; top: 18px; left: 16px; width: 60px; }
  .channel-museum img { position: absolute; top: 12px; right: 10px; width: 64px; height: 66px; }
  .channel-question { justify-content: space-between; }
  .channel-open { margin-top: auto; gap: 12px; font-size: 11px; }
  .channel-percent { right: -4px; bottom: -12px; font-size: 100px; }
  .channel-shortcuts { grid-template-columns: 1fr; gap: 0; margin-top: 20px; }
  .channel-shortcuts > a { gap: 14px; padding-block: 18px; border-bottom: 0; }
  .channel-shortcuts > a:last-child { border-bottom: 1px solid var(--explore-line); }
  .channel-shortcut-label { flex-basis: 82px; font-size: 11px; }
  .channel-shortcuts strong { font-size: 13px; }
  .channel-shortcuts small { font-size: 11px; }
  .explore-ui .paper-doors { grid-template-columns: 1fr; gap: 18px; }
  .explore-ui .paper-doors > a { display: grid; grid-template-columns: 100px minmax(0, 1fr) !important; gap: 16px; align-items: center; padding: 0 0 18px !important; background: transparent !important; }
  .explore-ui .door-art { height: 106px !important; min-height: 0 !important; max-height: 106px !important; margin: 0 !important; }
  .explore-ui .door-caption h2 { margin-bottom: 0; font-size: 21px; }
  .explore-ui .footer { gap: 12px 18px; padding-block: 22px; }
  .explore-support { width: 100%; margin: 0; }
  .explore-ui .classroom-language { max-width: 100%; }
  .explore-ui .classroom-language select { max-width: 200px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .explore-ui *, .explore-ui *::before, .explore-ui *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.channel-english { grid-column: 1 / -1; }
.channel-question .channel-label { color: var(--explore-ink); }
.channel-open { min-height: 32px; }
@media (max-width: 360px) { .channel-side { grid-template-columns: 1fr; } .channel-side h2 { font-size: 20px; } }

/* English-first cross-subject collection. */
.school-english-entry{margin:20px 0;background:var(--explore-soft,#e5ecdf)}.school-english-entry h2{margin:12px 0}.school-english-entry p{max-width:65ch}.school-english-entry details{margin-top:14px}.school-english-entry .tag{white-space:normal}

/* Direct entry keeps the selected A palette and display type. */
.channel-direct{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:0 0 24px}.channel-direct a{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px 15px;border:1px solid var(--line,#c1d6dd);border-radius:8px;background:#ffffff85;text-decoration:none;font-size:15px;color:inherit}.channel-direct a:hover,.channel-direct a:focus-visible{background:#fff;outline:2px solid #6193a5;outline-offset:2px}@media(max-width:650px){.channel-direct{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.channel-direct a{padding:11px;font-size:13px}.explore-ui>.nav{overflow-x:auto;white-space:nowrap;justify-content:flex-start}}
/* Keep every section visible on a phone instead of hiding later links off-screen. */
@media(max-width:650px){.explore-ui>.nav{flex-wrap:wrap;overflow-x:visible;white-space:normal;gap:0 20px;justify-content:flex-start}.explore-ui>.nav a{min-height:44px;display:inline-flex;align-items:center;padding-block:8px;font-size:14px}}
