@font-face {
  font-family: Plex;
  src: url('/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url('/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2') format('woff2');
  font-weight: 600 900;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: #f7f7f4;
  color: #202521;
  font:
    16px/1.85 Plex,
    Arial,
    sans-serif;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  touch-action: manipulation;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button,
a,
input,
summary {
  outline-offset: 5px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #1f6b50;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h2 {
  font-size: 25px;
}
h3 {
  font-size: 20px;
}
button {
  color: inherit;
}
input {
  border: 1px solid #bfc8c1;
  border-radius: 10px;
  background: white;
  padding: 13px 16px;
  width: 100%;
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}
.skip {
  position: absolute;
  inset-block-start: -100px;
  background: white;
  z-index: 5;
  padding: 14px;
}
.skip:focus {
  inset-block-start: 5px;
}
.learn-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px max(24px, calc((100vw - 1320px) / 2));
  background: #fff;
  border-bottom: 1px solid #e1e5df;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.wordmark b {
  font-family: Arial, sans-serif;
  letter-spacing: 2px;
}
.wordmark > span:last-child {
  font-size: 14px;
  border-inline-start: 1px solid #ddd;
  padding-inline-start: 12px;
}
.brand-dot {
  background: #ff7900;
  color: #fff;
  border-radius: 9px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font: bold 24px Arial;
}
.back-app {
  font-size: 14px;
  text-decoration: none;
  color: #3c5548;
}
main {
  max-width: 1320px;
  margin: auto;
  padding: 40px 24px;
}
.learn-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 70px;
  padding: 35px 0 55px;
  align-items: center;
}
.eyebrow {
  color: #566b5e;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 12px;
}
h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.35;
  letter-spacing: -1px;
}
h1 span {
  color: #246348;
}
.learn-intro > div > p:not(.eyebrow) {
  max-width: 530px;
  color: #657066;
  margin-top: 20px;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: #235a43;
  color: white;
  border: 1px solid #235a43;
  border-radius: 9px;
  text-decoration: none;
  padding: 11px 22px;
  font-weight: 600;
}
.learn-intro .primary {
  margin-top: 26px;
}
.intro-map {
  background: #eef1e9;
  border: 1px solid #dce3d7;
  padding: 30px;
  border-radius: 18px;
}
.intro-map ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.intro-map li {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #d9e0d5;
}
.intro-map li > span {
  font-size: 22px;
  color: #81947e;
  font-family: Arial;
}
.intro-map b,
.intro-map small {
  display: block;
}
.intro-map small {
  color: #63715e;
}
.intro-map > p:last-child {
  font-size: 12px;
}
.learn-tools {
  padding: 28px;
  background: white;
  border: 1px solid #e0e5dd;
  border-radius: 14px;
}
.paths {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.paths button {
  background: #fff;
  border: 1px solid #dce2d9;
  border-radius: 9px;
  padding: 10px 17px;
  text-align: start;
  flex: 1;
  min-width: 140px;
}
.paths button b,
.paths button small {
  display: block;
}
.paths button small {
  font-size: 11px;
  color: #657066;
}
.paths button[aria-pressed='true'] {
  background: #edf4ed;
  border-color: #377653;
}
.progress-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}
.progress-row label {
  font-size: 13px;
  margin: 0;
  white-space: nowrap;
}
.progress-row strong {
  margin-inline-start: 10px;
}
.progress-row progress {
  flex: 1;
  min-width: 40px;
  height: 9px;
  accent-color: #36794d;
}
.progress-row button {
  border: 0;
  background: transparent;
  font-size: 12px;
  text-decoration: underline;
}
.storage-note {
  font-size: 11px;
  color: #687368;
  margin-top: 9px;
}
.learning-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 38px;
  margin-top: 40px;
}
#lesson-nav {
  align-self: start;
  position: sticky;
  top: 20px;
  max-height: 90vh;
  overflow: auto;
}
#lesson-nav h2 {
  font-size: 15px;
  margin-bottom: 16px;
}
#lesson-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 9px 12px;
  font-size: 13px;
  border-inline-start: 2px solid transparent;
  color: #5b675c;
}
#lesson-nav a span {
  font: 11px Arial;
  color: #8a978a;
}
#lesson-nav a small {
  margin-inline-start: auto;
}
#lesson-nav a[aria-current] {
  background: #e9f0e7;
  border-color: #276248;
  color: #20492e;
}
#results-status {
  font-size: 13px;
  color: #626e63;
  margin-bottom: 16px;
}
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.lesson-card {
  display: block;
  position: relative;
  background: #fff;
  border: 1px solid #e0e5dd;
  border-radius: 12px;
  padding: 27px;
  text-decoration: none;
}
.lesson-card:hover {
  border-color: #749981;
  box-shadow: 0 4px 18px #263e2910;
}
.card-number {
  font: bold 26px Arial;
  color: #b6c6b8;
  display: block;
  margin-bottom: 20px;
}
.lesson-card > small {
  font-size: 11px;
  color: #63735f;
}
.lesson-card h2 {
  font-size: 21px;
  margin: 8px 0;
}
.lesson-card p {
  color: #626d62;
  font-size: 14px;
}
.card-foot {
  display: block;
  font-size: 12px;
  color: #326244;
  margin-top: 25px;
}
#lesson-detail {
  background: #fff;
  border: 1px solid #e0e5dd;
  border-radius: 14px;
  padding: 36px;
}
.lesson-breadcrumb {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #6b746b;
  margin-bottom: 25px;
}
#lesson-title {
  font-size: 36px;
  line-height: 1.4;
}
.lesson-intro {
  color: #627061;
  margin: 16px 0 22px;
}
.before {
  border-inline-start: 3px solid #718866;
  background: #f4f6f0;
  padding: 15px 20px;
  font-size: 14px;
}
.before p {
  margin-top: 5px;
}
figure {
  margin: 30px 0;
}
.image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid #dde3d9;
  border-radius: 10px;
  overflow: hidden;
  background: #f7f9f5;
  cursor: zoom-in;
}
.image-button img {
  display: block;
  width: 100%;
  height: auto;
}
figcaption {
  font-size: 11px;
  color: #687768;
  margin-top: 10px;
}
.lesson-steps {
  list-style: none;
  counter-reset: steps;
  padding: 0;
}
.lesson-steps li {
  counter-increment: steps;
  position: relative;
  padding: 0 49px 25px 0;
  margin: 22px 0;
  border-bottom: 1px solid #edf0ea;
}
.lesson-steps li:before {
  content: counter(steps);
  position: absolute;
  right: 0;
  top: 0;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #edf3e9;
  color: #30573a;
  text-align: center;
  font-weight: 600;
}
.lesson-steps p {
  color: #59665a;
  font-size: 15px;
  margin-top: 8px;
}
.caution {
  background: #fff6e8;
  border-inline-start: 3px solid #d8983b;
  padding: 20px;
  font-size: 14px;
}
.practice {
  margin: 25px 0;
  padding: 24px;
  background: #eff5ed;
  border: 1px solid #dce9d5;
  border-radius: 9px;
}
.practice p {
  margin: 8px 0;
}
.practice small {
  color: #62765e;
  font-size: 12px;
}
.lesson-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
}
.open-section {
  color: #315d41;
}
.reference-section,
.faq {
  margin-top: 48px;
}
.reference-section > p {
  color: #687267;
  font-size: 14px;
  margin: 12px 0 22px;
}
.reference-section label {
  font-size: 14px;
}
#reference-status {
  font-size: 12px;
  margin: 12px 0;
  color: #657462;
}
details {
  border: 1px solid #dde4d9;
  background: white;
  border-radius: 8px;
  margin: 10px 0;
  padding: 0 20px;
}
summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 0;
}
summary small {
  float: left;
  color: #71816a;
  font-weight: 400;
}
details > p {
  font-size: 14px;
  color: #63705f;
  padding-bottom: 17px;
}
dl {
  margin: 0 0 18px;
}
dl > div {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 15px;
  border-top: 1px solid #edf0e9;
  padding: 10px 0;
  font-size: 13px;
}
dd {
  margin: 0;
  color: #67775f;
}
.faq h2 {
  margin-bottom: 18px;
}
footer {
  border-top: 1px solid #dfe5da;
  max-width: 1272px;
  margin: 30px auto 0;
  padding: 25px 24px;
  font-size: 12px;
  color: #687665;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
dialog {
  max-width: 95vw;
  max-height: 95vh;
  border: 0;
  border-radius: 12px;
  padding: 18px;
  background: #fff;
  color: #243c29;
}
dialog::backdrop {
  background: #0e241bd9;
}
dialog img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
}
dialog button {
  display: block;
  margin-bottom: 15px;
  background: #edf2e9;
  border: 1px solid #cddbc5;
  border-radius: 6px;
  padding: 8px 18px;
}
dialog p {
  font-size: 12px;
  margin-top: 10px;
}
[hidden] {
  display: none !important;
}
.empty {
  padding: 25px;
  background: #fff;
  border: 1px dashed #b4c4ad;
  border-radius: 10px;
}
@media (max-width: 850px) {
  .learn-intro {
    gap: 30px;
  }
  .learning-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 20px;
  }
  .lesson-card {
    padding: 20px;
  }
  #lesson-detail {
    padding: 22px;
  }
}
@media (max-width: 650px) {
  .learn-header {
    padding: 14px 16px;
  }
  .wordmark > span:last-child {
    display: none;
  }
  .back-app {
    font-size: 12px;
  }
  main {
    padding: 22px 16px;
  }
  .learn-intro {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 15px 0 30px;
  }
  .intro-map {
    padding: 22px;
  }
  .learn-tools {
    padding: 18px;
  }
  .paths button {
    min-width: 125px;
  }
  .progress-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .progress-row label {
    width: 100%;
  }
  .learning-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 24px;
  }
  #lesson-nav {
    position: static;
    max-height: 190px;
    border: 1px solid #dce4d6;
    padding: 15px;
    border-radius: 9px;
  }
  .lesson-grid {
    grid-template-columns: 1fr;
  }
  .lesson-card {
    padding: 24px;
  }
  .card-number {
    margin-bottom: 10px;
  }
  #lesson-title {
    font-size: 29px;
  }
  #lesson-detail {
    padding: 20px;
  }
  .lesson-controls {
    align-items: stretch;
    flex-direction: column;
  }
  .lesson-controls .primary {
    justify-content: center;
  }
  .lesson-steps li {
    padding-right: 42px;
  }
  .reference-section h2,
  .faq h2 {
    font-size: 22px;
  }
  footer {
    flex-direction: column;
  }
  dl > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media print {
  .learn-header,
  .learn-tools,
  #lesson-nav,
  .lesson-controls,
  .reference-section,
  .faq,
  footer,
  #lesson-grid,
  #results-status {
    display: none !important;
  }
  .learning-layout {
    display: block;
  }
  main,
  #lesson-detail {
    padding: 0;
    border: 0;
  }
  body {
    background: white;
  }
  .image-button {
    border: 0;
  }
  details {
    break-inside: avoid;
  }
  .lesson-steps li {
    break-inside: avoid;
  }
}

.card-preview {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: top;
  border: 1px solid #e0e5dd;
  border-radius: 6px;
  margin-bottom: 20px;
}

@font-face {
  font-family: Inter;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
html[lang='en'] body {
  font-family: Inter, Arial, sans-serif;
  line-height: 1.75;
}
html[dir='ltr'] .lesson-steps li {
  padding: 0 0 25px 49px;
}
html[dir='ltr'] .lesson-steps li:before {
  left: 0;
  right: auto;
}
html[dir='ltr'] summary small {
  float: right;
}
.header-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}
#learning-language,
.print-guide {
  background: #fff;
  border: 1px solid #ccd8c9;
  border-radius: 7px;
  padding: 7px 13px;
  font-size: 13px;
}
.coverage-stats {
  display: flex;
  gap: 30px;
  margin: 0 0 25px;
  color: #526a56;
  font-size: 13px;
}
.coverage-stats b {
  font-size: 22px;
  margin-inline-end: 6px;
}
.journey-section {
  margin-top: 30px;
}
.journey-section > p {
  font-size: 14px;
  color: #60735d;
}
.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.journey-grid ol {
  padding-inline-start: 22px;
  font-size: 13px;
}
.journey-grid li {
  padding: 7px 0;
}
.worked-example,
.review-checklist,
.knowledge-check,
.state-guide {
  margin: 28px 0;
  padding: 24px;
  border: 1px solid #dce6d6;
  border-radius: 10px;
  background: #fbfcf8;
}
.worked-example h4,
.state-guide h4 {
  margin: 20px 0 7px;
}
.worked-example p,
.state-guide p {
  color: #566a50;
  font-size: 14px;
}
.worked-example aside {
  padding: 1px 18px 18px;
  background: #fff5e7;
  border-radius: 7px;
  margin-top: 18px;
}
.review-checklist ul {
  padding-inline-start: 23px;
}
.review-checklist li {
  padding: 7px 0;
  font-size: 14px;
}
.knowledge-check fieldset {
  border: 0;
  padding: 0;
  margin-top: 20px;
}
.knowledge-check legend {
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 12px;
}
.knowledge-check button {
  display: block;
  width: 100%;
  text-align: start;
  padding: 12px 16px;
  border: 1px solid #d5e1cd;
  background: white;
  border-radius: 7px;
  margin: 9px 0;
}
.knowledge-check button[aria-pressed='true'] {
  background: #e4f0dd;
  border-color: #56834a;
}
.knowledge-check > p {
  font-size: 13px;
  color: #516d48;
}
#quiz-feedback {
  margin-top: 15px;
}
.field-table-wrap {
  max-width: 100%;
  overflow: auto;
  margin: 20px 0;
}
.field-guide {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 13px;
  text-align: start;
}
.field-guide caption {
  text-align: start;
  font-size: 21px;
  font-weight: 600;
  margin: 12px 0;
}
.field-guide th,
.field-guide td {
  border: 1px solid #dde5d7;
  vertical-align: top;
  text-align: start;
  padding: 14px;
  overflow-wrap: anywhere;
}
.field-guide thead {
  background: #edf3e9;
}
.field-guide th small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: #6d7b65;
  margin-top: 7px;
}
.field-guide th:first-child {
  width: 23%;
}
.field-guide td:last-child {
  width: 24%;
  background: #fafcf7;
}
.field-guide td p {
  margin: 10px 0;
  font-size: 12px;
}
.field-guide td a {
  font-size: 12px;
}
.state-chips {
  list-style: none;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 0;
}
.state-chips li {
  background: #eaf1e5;
  border: 1px solid #d5e1cc;
  padding: 4px 11px;
  border-radius: 6px;
  font-size: 12px;
}
.register-guide-link {
  display: inline-block;
  background: #eff5e9;
  padding: 10px 16px;
  border-radius: 7px;
  font-size: 14px;
  margin-bottom: 18px;
}
.reference-section details > p {
  padding-top: 8px;
}
.reference-section .field-guide caption {
  font-size: 17px;
}
@media (max-width: 650px) {
  .header-controls {
    gap: 10px;
  }
  .back-app {
    max-width: 105px;
  }
  .coverage-stats {
    gap: 12px;
    flex-wrap: wrap;
  }
  .coverage-stats span {
    min-width: 75px;
  }
  .journey-grid {
    grid-template-columns: 1fr;
  }
  .field-guide {
    min-width: 0;
    table-layout: fixed;
    font-size: 11px;
  }
  .field-guide th,
  .field-guide td {
    padding: 8px 6px;
  }
  .field-guide th:first-child {
    width: 25%;
  }
  .field-guide td:last-child {
    width: 25%;
  }
  .worked-example,
  .review-checklist,
  .knowledge-check,
  .state-guide {
    padding: 18px;
  }
  .knowledge-check legend {
    font-size: 15px;
  }
  html[dir='ltr'] .lesson-steps li {
    padding-left: 42px;
  }
}
@media print {
  .journey-section,
  .coverage-stats,
  .print-guide {
    display: none !important;
  }
  .field-guide {
    min-width: 0;
  }
  .worked-example,
  .knowledge-check,
  .state-guide {
    break-inside: avoid;
  }
}

#lesson-title:focus {
  outline: none;
}

.visual-training {
  margin-block: 2rem;
  padding: 1.4rem;
  background: #f3f8f6;
  border: 1px solid #d4e4dc;
  border-radius: 18px;
}
.detail-training-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.visual-review {
  display: grid;
  gap: 0.65rem;
  padding-inline-start: 1.5rem;
}
.visual-training h4 {
  margin-block-end: 0.4rem;
}
