/* Performance/accessibility refinements; existing brand, copy and URLs remain. */
.ct-navigation { flex: 1; min-width: 0; }
.ct-header .ct-desktop-nav { display: flex; width: auto; }
.ct-mobile-nav { display: none; }
.ct-header { position: relative; z-index: 20; }
.ct-site .ct-hero-visual { flex: 0 1 340px; max-width: 340px; padding-bottom: 0; }
.ct-site .ct-visual-label { position: static; width: fit-content; max-width: 100%; margin-bottom: 14px; font-size: 9px; }
.ct-site .ct-tutor-card { margin: 0; padding: 18px; }
.ct-site .ct-tutor-card > img { width: 66px; height: 66px; aspect-ratio: 1; flex-shrink: 0; }
.ct-site .ct-hero-copy .ct-intro { min-height: 102px; }
.ct-site[lang=en] .ct-hero-copy .ct-intro { min-height: 92px; }
.ct-site .ct-hero h1 { min-height: 162px; }
.ct-site[lang=en] .ct-hero h1 { min-height: 128px; }
.ct-site .ct-course-families p, .ct-site .ct-method-steps p { color: #45566f; }
.cc-site [aria-invalid=true] { border-color: #a82b2b; outline: 2px solid #f4caca; }
.cc-cell-label { display: none; }
@media (max-width: 800px) {
  .ct-site .ct-header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'brand brand' 'actions navigation'; gap: 8px 12px; padding-block: 12px; min-height: 0; }
  .ct-site .ct-header-inner > .ct-brand { grid-area: brand; justify-self: start; min-width: 0; font-size: 20px; }
  .ct-site .ct-header-inner .ct-brand-symbol { width: 36px !important; height: 36px !important; flex-shrink: 0; }
  .ct-site .ct-header-actions { grid-area: actions; justify-self: start; width: auto; margin: 0; gap: 8px; flex-wrap: nowrap; }
  .ct-site .ct-header-actions > a { min-height: 44px; font-size: 13px; padding: 8px 12px; }
  .ct-header .ct-navigation { grid-area: navigation; width: auto; justify-self: end; order: initial; }
  .ct-header .ct-desktop-nav { display: none !important; }
  .ct-mobile-nav { display: block; }
  .ct-mobile-nav summary { list-style: none; display: flex; gap: 7px; align-items: center; justify-content: center; min-height: 44px; padding: 8px 11px; border: 1.5px solid #91a6c4; background: white; border-radius: 9px; color: #132a4a; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
  .ct-mobile-nav summary::-webkit-details-marker { display: none; }
  .ct-mobile-nav summary:focus-visible { outline: 3px solid #315ce8; outline-offset: 3px; }
  .ct-header .ct-mobile-nav nav { position: absolute; inset-inline: 20px; top: calc(100% - 3px); z-index: 30; display: grid; grid-template-columns: 1fr; width: auto; gap: 8px; padding: 12px; background: white; border: 1px solid #b6c6dc; border-radius: 12px; box-shadow: 0 12px 25px #132a4a1c; max-height: 65vh; overflow-y: auto; }
  .ct-header .ct-mobile-nav nav a { min-height: 44px; }
  .ct-site .ct-hero-visual { flex-basis: auto; width: 100%; max-width: 420px; margin-block: 18px 0; padding: 0; }
  .ct-site .ct-hero h1 { min-height: 119px; }
  .ct-site[lang=en] .ct-hero h1 { min-height: 105px; }
  .ct-site .ct-hero-copy .ct-intro { min-height: 136px; }
  .ct-site[lang=en] .ct-hero-copy .ct-intro { min-height: 130px; }
  .cc-table-scroll { overflow-x: visible; }
  .cc-table-scroll table, .cc-table-scroll tbody { display: block; width: 100%; }
  .cc-table-scroll thead { position: absolute; width: 1px; height: 1px; margin: -1px; clip: rect(0,0,0,0); overflow: hidden; }
  .cc-table-scroll tr { display: block; border: 1px solid #b6c9f4; border-radius: 9px; padding: 6px 11px; margin-bottom: 10px; }
  .cc-table-scroll td { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; white-space: normal; padding: 8px 0; border: 0; }
  .cc-cell-label { display: inline; color: #344961; font-weight: 700; font-size: 12px; direction: inherit; }
  .cc-cell-value { min-width: 0; overflow-wrap: anywhere; text-align: end; }
}
@media (max-width: 350px) {
  .ct-site .ct-header-inner { gap: 8px; }
  .ct-site .ct-header-inner > .ct-brand { font-size: 19px; }
  .ct-site .ct-hero h1 { font-size: 29px; min-height: 106px; }
  .ct-site .ct-hero-copy .ct-intro { min-height: 170px; }
  .ct-site[lang=en] .ct-hero-copy .ct-intro { min-height: 160px; }
}
/* Student header uses the same native mobile menu while keeping share controls. */
.site .ct-navigation { flex: 1; }
.site .ct-desktop-nav { display: flex; }
@media (max-width: 800px) {
  .site .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; min-height: 0; padding-block: 12px; }
  .site .header-inner > .brand { grid-column: 1 / -1; }
  .site .ct-desktop-nav { display: none !important; }
  .site .ct-mobile-nav { display: block; }
  .site .ct-navigation { grid-column: 2; grid-row: 2; }
  .site .share-button { grid-column: 1; grid-row: 2; width: auto; min-height: 44px; padding: 8px; font-size: 12px; }
  .site-header { position: relative; z-index: 20; }
  .site .ct-mobile-nav nav { position: absolute; inset-inline: 20px; top: calc(100% - 3px); z-index: 30; display: grid; grid-template-columns: 1fr; width: auto; padding: 12px; gap: 8px; background: white; border: 1px solid #b6c6dc; border-radius: 12px; max-height: 65vh; overflow-y: auto; }
  .site .ct-mobile-nav nav .preply-link { display: flex; }
}

/* Arabic glyphs stay Noto; Latin in mixed paragraphs uses Inter's stable metrics. */
.ct-site[lang=ar] { font-family: Inter, 'Noto Sans Arabic', sans-serif; }

/* Stable two/three-line headline and paragraph geometry while Arabic fonts arrive. */
@media (max-width: 800px) {
  .ct-site[lang=ar] .ct-hero h1 { font-size: clamp(28px, 7vw, 34px); line-height: 1.5; height: 140px; min-height: 140px; }
  .ct-site[lang=ar] .ct-hero-copy .ct-intro { height: 170px; min-height: 170px; }
}
