.academy {
  --ink: #37252d;
  --muted-ink: #725c65;
  --wine: #812843;
  --rose: #a03e5c;
  --line: #e8d9dd;
  --blush: #f8edf0;
  color: var(--ink);
  font: 16px/1.58 "Segoe UI", "Myanmar Text", "Noto Sans Myanmar", system-ui, sans-serif;
}
.academy *, .academy *::after, .academy *::before { box-sizing: border-box; }
.academy button, .academy input, .academy select { font: inherit; }
.academy button, .academy select { cursor: pointer; }
.academy button { color: var(--ink); }
.academy button:disabled { opacity: .55; cursor: default; }
.academy :focus-visible { outline: 3px solid #b5446a; outline-offset: 3px; }
.academy a { color: var(--wine); }
.academy-layout {
  width: min(1200px, 100% - 64px);
  margin: 36px auto 60px;
  display: grid;
  align-items: start;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
}
.drive-sidebar {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 12px 12px;
}
.drive-sidebar .sidebar-heading {
  margin: 0 10px 15px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  color: var(--wine);
}
.drive-sidebar nav { display: grid; gap: 3px; }
.drive-sidebar .nav {
  padding: 9px 12px;
  color: var(--muted-ink);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
  border-radius: 8px;
}
.drive-sidebar .nav:hover { background: #fcf6f8; }
.drive-sidebar .nav[aria-current] { background: var(--blush); color: var(--wine); font-weight: 700; }
.drive-page { min-width: 0; }
.drive-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 18px; min-width: 0; }
.drive-tools .context { margin: 0; color: var(--muted-ink); font-weight: 600; font-size: 13px; }
.drive-tools .context span { margin: 0 6px; color: #b89ba6; }
.jump-label { display: none; }
.academy .toggle, .academy select {
  color: var(--wine);
  background: white;
  border: 1px solid #d9c3cb;
  border-radius: 9px;
  line-height: 1.5;
  padding: 8px 12px;
  max-width: 100%;
  font-size: 14px;
}
.academy[lang="my"] { font-family: "Myanmar Text", "Noto Sans Myanmar", system-ui, sans-serif; line-height: 1.85; }
.academy[lang="my"] :is(.title, .hero h1, .section, .sidebar-heading) {
  font-family: inherit;
  letter-spacing: 0;
  line-height: 1.65;
}
.academy[lang="my"] :is(.eyebrow,.num,.small,.nav,.pill,.tag,.button,.choice,.course strong,.signcard strong,.stat span) {
  letter-spacing: 0;
  line-height: 1.75;
}
.academy[lang="my"] :is(.card,.course,.signcard) { word-break: normal; }
.academy .title, .academy .hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.1;
  color: var(--wine);
  margin: 8px 0 12px;
}
.academy .title { font-size: clamp(34px, 3.5vw, 52px); }
.academy .hero h1 { font-size: clamp(38px, 4vw, 60px); }
.academy .eyebrow, .academy .num {
  color: var(--rose);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.academy .sub { margin: 0 0 22px; color: var(--muted-ink); }
.academy .card, .academy .course, .academy .signcard {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(16px, 2vw, 26px);
  min-width: 0;
  overflow-wrap: anywhere;
}
.academy .hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  align-items: center;
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
}
.hero-copy { padding: clamp(22px, 2.3vw, 37px); }
.academy .hero p { margin: 0; color: var(--muted-ink); }
.hero-car { min-width: 0; display: flex; align-items: center; margin: 16px 16px 16px 0; border-radius: 14px; overflow: hidden; }
.hero-car img { display: block; width: 100%; height: auto; min-height: 0; object-fit: contain; }
.academy .button {
  padding: 10px 16px;
  border: 1px solid var(--wine);
  border-radius: 9px;
  background: var(--wine);
  color: white;
  font-weight: 650;
  font-size: 14px;
  line-height: 1.55;
}
.academy .button:not(:disabled):hover { background: #652139; }
.academy .button.secondary { background: white; color: var(--wine); border-color: #d9c3cb; }
.academy .button.secondary:not(:disabled):hover { background: var(--blush); }
.academy .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.academy .section { font-size: clamp(20px, 2vw, 25px); margin: 28px 0 12px; letter-spacing: -.03em; line-height: 1.3; }
.academy .grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.academy .grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.academy .stat strong { display: block; color: var(--wine); font-family: Georgia, serif; font-size: clamp(28px, 3vw, 38px); font-weight: 500; line-height: 1.1; margin-bottom: 6px; }
.academy .small, .academy .stat span { color: var(--muted-ink); font-size: 13px; }
.academy .progress-card { margin-top: 12px; }
.academy .progress-card p { margin: 10px 0 0; }
.academy .course { text-align: left; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.academy .course:hover { border-color: #bf8398; }
.academy .course strong { font-size: 17px; line-height: 1.4; }
.academy .course .small { margin-top: auto; color: var(--rose); }
.academy .course .mm { margin: 0 0 3px; font-size: 13px; }
.academy .mm { font-family: "Myanmar Text", "Noto Sans Myanmar", sans-serif; color: #755565; font-size: 15px; line-height: 1.75; margin-top: 5px; }
.academy .progress { height: 7px; background: var(--blush); border-radius: 99px; overflow: hidden; margin: 10px 0; }
.academy .progress i { display: block; height: 100%; background: var(--rose); border-radius: inherit; }
.academy .row { display: flex; justify-content: space-between; align-items: center; gap: 9px; flex-wrap: wrap; }
.academy .pill, .academy .tag { display: inline-block; border-radius: 30px; font-weight: 700; padding: 3px 9px; color: var(--wine); background: var(--blush); font-size: 12px; }
.academy .tag { color: #245b47; background: #edf5f0; }
.academy .note { background: #fff4f0; color: #68483f; border-left: 3px solid #ce9a88; padding: 13px 16px; border-radius: 0 10px 10px 0; font-size: 14px; }
.academy .lesson-point { padding: 15px 0; border-bottom: 1px solid var(--line); }
.academy .lesson-point:first-child { padding-top: 0; }
.academy .lesson-point:last-child { border: 0; padding-bottom: 0; }
.academy .lesson-point p { margin: 5px 0 10px; }
.academy .en { font-weight: 700; font-size: 17px; }
.academy .signs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.academy .signcard { padding: 15px; text-align: center; }
.academy .signcard svg { width: 85px; max-width: 100%; height: 85px; margin-bottom: 8px; }
.academy .signcard strong { display: block; font-size: 14px; line-height: 1.4; }
.academy .signcard p { margin: 5px 0 0; font-size: 13px; color: var(--muted-ink); }
.academy .signcard .mm { font-size: 13px; }
.academy .choice { width: 100%; padding: 13px 15px; margin: 5px 0; border-radius: 10px; border: 1px solid #d9c3cb; background: white; text-align: left; }
.academy .choice:hover, .academy .choice.selected { border-color: var(--rose); background: #fdf3f7; }
.academy .choice.correct { background: #edf7f1; border-color: #67a288; }
.academy .choice.wrong { background: #ffedf0; border-color: #c7667b; }
.academy .check { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.academy .check label { flex: 1; cursor: pointer; }
.academy .check input { accent-color: var(--wine); width: 18px; height: 18px; margin-top: 4px; }
.academy #clock { font-variant-numeric: tabular-nums; color: var(--wine); }
.drive-footer { margin: 30px 0 0; padding: 15px 0 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted-ink); }
@media (min-width: 901px) and (max-width: 1100px) {
  .academy-layout { grid-template-columns: 170px minmax(0,1fr); width: calc(100% - 40px); gap: 20px; }
  .academy .hero { grid-template-columns: 1fr .85fr; }
}
@media (max-width: 900px) {
  .academy-layout { grid-template-columns: minmax(0,1fr); width: min(100% - 40px,760px); margin-top: 20px; }
  .drive-sidebar { display: none; }
  .drive-tools .context { display: none; }
  .jump-label { min-width: 0; display: flex; align-items: center; gap: 8px; }
  .jump-label span { font-size: 13px; font-weight: 600; color: var(--muted-ink); }
}
@media (max-width: 620px) {
  .academy-layout { width: calc(100% - 32px); }
  .academy .hero { grid-template-columns: 1fr; }
  .hero-car { aspect-ratio: 2 / 1; height: auto; margin: 0; border-radius: 0; }
  .hero-car img { width: 100%; height: auto; object-fit: contain; }
  .academy .hero-copy { padding: 21px; }
  .academy .hero h1 { font-size: 40px; }
  .academy .grid.courses { grid-template-columns: 1fr; }
  .academy .signs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .academy .stat { padding: 12px; }
  .academy .stat strong { font-size: 27px; }
  .academy .grid.statgrid { gap: 7px; }
  .academy .stat span { display: block; font-size: 12px; line-height: 1.35; }
  .jump-label span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .academy .course { gap: 6px; }
}
@media (max-width: 390px) {
  .academy .stat { padding-inline: 8px; }
  .academy .stat strong { font-size: clamp(20px, 6vw, 24px); }
  .academy .stat:last-child strong { white-space: nowrap; }
}
@media print {
  body > [data-hub-header], .drive-tools, .drive-sidebar, .academy .actions, .drive-footer { display: none !important; }
  .academy-layout { display: block; width: 100%; margin: 0; }
  .academy .card { border: 0; }
  .academy .check { break-inside: avoid; }
}
