:root {
  color-scheme: light;
  --m-primary: #0b63f6;
  --m-primary-dark: #084dc5;
  --m-secondary: #ffcf45;
  --m-page: #fff;
  --m-surface: #f4f7fd;
  --m-text: #13254d;
  --m-muted: #66799f;
  --m-link: #075fe8;
  --m-header: #0b63f6;
  --m-header-text: #fff;
  --m-footer: #10254b;
  --m-footer-text: #eaf0ff;
  --m-container: 1180px;
  --m-gutter: 18px;
  --m-radius: 16px;
  --m-section-gap: 48px;
  --m-header-height: 72px;
  --m-logo-height: 48px;
  --m-font-family: "Tajawal", Tahoma, Arial, sans-serif;
  --m-body-size: 16px;
  --m-heading-size: 28px;
  --m-shadow: 0 12px 32px rgba(17, 44, 91, .09);
  --m-border: #dfe7f5;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--m-header-height) + 20px); }
body { margin: 0; background: var(--m-page); color: var(--m-text); font-family: var(--m-font-family); font-size: var(--m-body-size); line-height: 1.7; text-align: start; }
body, button, input, select, textarea { font-family: var(--m-font-family); }
img { max-width: 100%; height: auto; }
a { color: var(--m-link); text-decoration: none; }
a:hover { color: var(--m-primary-dark); }
button, input, select, textarea { font-size: inherit; }
button { cursor: pointer; }
.mol-container { width: min(calc(100% - 40px), var(--m-container)); margin-inline: auto; }
.screen-reader-text { position: absolute !important; overflow: hidden; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); width: 1px; height: 1px; padding: 0; border: 0; white-space: nowrap; }
.screen-reader-text:focus { clip: auto !important; clip-path: none; width: auto; height: auto; padding: 10px; background: #fff; z-index: 99999; }

/* Header and navigation */
.mol-site-header { position: relative; z-index: 50; min-height: var(--m-header-height); color: var(--m-header-text); background: var(--m-header); }
.has-sticky-header .mol-site-header { position: sticky; top: 0; }
.admin-bar.has-sticky-header .mol-site-header { top: 32px; }
.mol-header-inner { min-height: var(--m-header-height); display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.mol-brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; min-width: max-content; color: var(--m-header-text); font-size: 22px; font-weight: 800; }
.mol-brand:hover { color: var(--m-header-text); opacity: .92; }
.mol-brand .custom-logo-link, .mol-footer-brand .custom-logo-link { display: inline-flex; align-items: center; }
.mol-brand img.custom-logo { display: block; width: auto; max-width: 190px; max-height: var(--m-logo-height); object-fit: contain; }
.mol-brand-name { letter-spacing: -.04em; }
.mol-brand-mark { display: inline-flex; position: relative; width: 35px; height: 25px; align-items: flex-end; justify-content: center; gap: 2px; overflow: hidden; }
.mol-brand-mark span { display: block; width: 10px; border: 2px solid currentColor; border-bottom: 0; border-radius: 100% 100% 0 0; transform: skew(-18deg); }
.mol-brand-mark span:nth-child(1) { height: 11px; }
.mol-brand-mark span:nth-child(2) { height: 19px; }
.mol-brand-mark span:nth-child(3) { height: 14px; }
.mol-primary-nav { flex: 1 1 auto; min-width: 0; }
.mol-menu, .mol-menu ul { list-style: none; padding: 0; margin: 0; }
.mol-menu { display: flex; justify-content: center; align-items: center; gap: clamp(12px, 1.65vw, 26px); }
.mol-menu > li { position: relative; }
.mol-menu > li > a { display: flex; align-items: center; min-height: 48px; color: var(--m-header-text); font-size: 14px; font-weight: 700; white-space: nowrap; }
.mol-menu > li > a:hover, .mol-menu > .current-menu-item > a, .mol-menu > .current-menu-ancestor > a { color: var(--m-secondary); }
.mol-menu .sub-menu { display: none; position: absolute; top: calc(100% - 2px); inset-inline-start: 0; min-width: 205px; padding: 8px; background: #fff; border: 1px solid var(--m-border); border-radius: 12px; box-shadow: var(--m-shadow); }
.mol-menu li:hover > .sub-menu, .mol-menu li:focus-within > .sub-menu { display: block; }
.mol-menu .sub-menu a { display: block; color: var(--m-text); padding: 9px 12px; border-radius: 8px; font-weight: 600; }
.mol-menu .sub-menu a:hover { background: var(--m-surface); color: var(--m-primary); }
.mol-header-search { flex: 0 1 310px; min-width: 180px; }
.mol-search-form { display: flex; min-width: 0; height: 44px; align-items: center; gap: 8px; overflow: hidden; background: #fff; border: 1px solid var(--m-border); border-radius: 12px; }
.mol-search-form .mol-search-icon { color: var(--m-muted); font-size: 22px; padding-inline-start: 14px; line-height: 1; }
.mol-search-form input[type="search"] { width: 100%; min-width: 0; height: 100%; padding: 0 4px; border: 0; outline: none; color: var(--m-text); background: transparent; font-size: 14px; }
.mol-search-form button { align-self: stretch; border: 0; padding: 0 18px; color: var(--m-text); background: var(--m-secondary); font-weight: 800; }
.mol-search-form button:hover { background: #ffd95e; }
.mol-menu-toggle { display: none; }

/* Homepage hero */
.mol-hero { position: relative; overflow: hidden; isolation: isolate; min-height: 355px; padding: 38px 0 68px; color: #fff; text-align: center; background: var(--m-primary); }
.mol-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(150deg, rgba(255,255,255,.05), transparent 44%), repeating-linear-gradient(0deg, transparent 0 34px, rgba(255,255,255,.045) 35px 36px); }
.mol-hero-inner { position: relative; z-index: 2; }
.mol-hero-kicker { display: none; }
.mol-hero h1 { margin: 0; color: #fff; font-size: clamp(36px, 4vw, 54px); line-height: 1.22; font-weight: 800; letter-spacing: -.04em; }
.mol-hero-subtitle { margin: 8px auto 24px; color: rgba(255,255,255,.86); font-size: clamp(16px, 1.5vw, 19px); }
.mol-hero-search { display: flex; width: min(690px, 100%); min-height: 64px; margin: 0 auto; padding: 6px; background: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 17px; box-shadow: 0 15px 40px rgba(3,38,126,.21); }
.mol-hero-search input[type="search"] { flex: 1; min-width: 0; padding: 0 18px; border: 0; outline: 0; color: var(--m-text); background: transparent; }
.mol-hero-search input::placeholder { color: #8593af; }
.mol-hero-search button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 86px; border: 0; border-radius: 12px; color: var(--m-text); background: var(--m-secondary); font-weight: 800; }
.mol-hero-search button span { font-size: 22px; line-height: 1; }
.mol-popular-grades { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; color: rgba(255,255,255,.8); font-size: 13px; }
.mol-popular-grades a { border: 1px solid rgba(255,255,255,.43); border-radius: 99px; padding: 4px 13px; color: #fff; font-weight: 600; }
.mol-popular-grades a:hover { color: var(--m-text); background: #fff; }
.mol-hero-orbit { position: absolute; z-index: 1; bottom: -114px; width: 420px; height: 210px; border: 26px solid rgba(255,255,255,.13); border-bottom: 0; border-radius: 230px 230px 0 0; transform: rotate(-9deg); pointer-events: none; }
.mol-hero-orbit::after { content: ""; position: absolute; inset: 16px 19px -1px; border: 12px solid rgba(255,255,255,.12); border-bottom: 0; border-radius: 200px 200px 0 0; }
.mol-hero-orbit-one { inset-inline-end: -100px; }
.mol-hero-orbit-two { inset-inline-start: -150px; bottom: -155px; transform: rotate(13deg); }

/* Quick links, sections, study taxonomy */
.mol-overlap-section { position: relative; z-index: 3; margin-top: -30px; }
.mol-quick-links { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); padding: 8px; border: 1px solid var(--m-border); border-radius: 20px; background: #fff; box-shadow: var(--m-shadow); }
.mol-quick-link { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 16px 12px; color: var(--m-text); border-inline-start: 1px solid #e7edf7; }
.mol-quick-link:last-child { border-inline-start: 0; }
.mol-quick-link:hover { color: var(--m-primary); background: #fbfcff; border-radius: 14px; }
.mol-quick-icon { display: grid; flex: 0 0 46px; width: 46px; height: 46px; place-items: center; color: var(--m-primary); background: #eaf1ff; border-radius: 13px; font-size: 24px; font-weight: 800; }
.mol-quick-link strong, .mol-quick-link small { display: block; }
.mol-quick-link strong { font-size: 16px; line-height: 1.35; }
.mol-quick-link small { margin-top: 3px; color: var(--m-muted); font-size: 12px; line-height: 1.45; }
.mol-home-section { margin-top: var(--m-section-gap); }
.mol-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
.mol-section-heading h2 { position: relative; margin: 0; font-size: var(--m-heading-size); line-height: 1.35; font-weight: 800; letter-spacing: -.025em; }
.mol-section-heading h2::after { content: ""; position: absolute; z-index: -1; inset-inline-start: 0; bottom: 2px; width: 100%; height: 8px; background: var(--m-secondary); opacity: .82; }
.mol-section-heading > a { flex: 0 0 auto; color: var(--m-link); font-size: 14px; font-weight: 700; }
.mol-section-heading > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mol-stage-list { display: grid; gap: 10px; }
.mol-stage-row { display: flex; align-items: center; gap: 22px; min-height: 72px; padding: 11px 20px; border-radius: 15px; background: var(--m-surface); }
.mol-stage-row h3 { flex: 0 0 160px; margin: 0; font-size: 15px; font-weight: 800; }
.mol-stage-row h3 a { color: var(--m-text); }
.mol-stage-row h3 a:hover { color: var(--m-primary); }
.mol-grade-chips, .mol-subject-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.mol-chip { display: inline-flex; align-items: center; min-height: 42px; padding: 7px 15px; color: var(--m-text); background: #fff; border: 1px solid #dae4f4; border-radius: 100px; font-size: 14px; font-weight: 600; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.mol-chip:hover { color: var(--m-primary); border-color: #aac6ff; box-shadow: 0 5px 14px rgba(17,85,200,.09); transform: translateY(-1px); }

/* Resource cards and archives */
.mol-material-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 18px; }
.mol-material-card { min-width: 0; overflow: hidden; border: 1px solid #edf0f6; border-radius: var(--m-radius); background: #fff; box-shadow: 0 6px 20px rgba(18,44,83,.055); transition: transform .22s ease, box-shadow .22s ease; }
.mol-material-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(18,44,83,.13); }
.mol-card-cover { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: linear-gradient(150deg, #f3f7ff, #e4edff); }
.mol-card-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.mol-material-card:hover .mol-card-cover img { transform: scale(1.035); }
.mol-card-type { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; padding: 4px 9px; color: var(--m-primary-dark); background: rgba(255,255,255,.94); border-radius: 100px; font-size: 11px; font-weight: 800; }
.mol-cover-placeholder { position: relative; display: flex; width: 100%; height: 100%; min-height: 125px; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(145deg, #edf3ff 0%, #dce8ff 72%, #f7f9fd 100%); }
.mol-cover-placeholder::before { content: ""; position: absolute; top: 10%; bottom: 10%; inset-inline-start: 13%; width: 4px; background: rgba(11,99,246,.16); }
.mol-cover-lines { position: absolute; inset: 19% 24% auto; height: 36%; border-block: 2px solid rgba(11,99,246,.2); }
.mol-cover-lines::before, .mol-cover-lines::after { content: ""; position: absolute; inset-inline: 10%; height: 2px; background: rgba(11,99,246,.18); }
.mol-cover-lines::before { top: 32%; }
.mol-cover-lines::after { top: 66%; }
.mol-cover-mark { display: grid; position: relative; z-index: 1; width: 48px; height: 48px; place-items: center; color: #fff; background: var(--m-primary); border-radius: 50%; font-size: 23px; font-weight: 800; box-shadow: 0 8px 24px rgba(11,99,246,.22); }
.mol-card-body { padding: 12px 12px 13px; }
.mol-card-school { display: flex; justify-content: space-between; gap: 6px; color: var(--m-muted); font-size: 11px; }
.mol-card-school a { color: var(--m-primary); }
.mol-card-school > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mol-card-body h3 { display: -webkit-box; min-height: 46px; margin: 7px 0 5px; overflow: hidden; color: var(--m-text); font-size: 14px; line-height: 1.55; font-weight: 800; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.mol-card-body h3 a { color: inherit; }
.mol-card-body h3 a:hover { color: var(--m-primary); }
.mol-card-teacher { overflow: hidden; margin: 0; color: var(--m-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.mol-card-more { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 9px; border-top: 1px solid #edf0f6; color: var(--m-primary); font-size: 12px; font-weight: 700; }
.mol-card-more span { font-size: 16px; transition: transform .2s ease; }
.mol-card-more:hover span { transform: translateX(-3px); }
.mol-page-shell { min-height: 48vh; padding-block: 28px 72px; }
.mol-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0 0 24px; color: var(--m-muted); font-size: 13px; }
.mol-breadcrumbs a { color: var(--m-muted); }
.mol-breadcrumbs a:hover { color: var(--m-primary); }
.mol-breadcrumbs [aria-current="page"] { color: var(--m-text); font-weight: 700; }
.mol-archive-header { margin: 0 0 28px; }
.mol-archive-header h1 { margin: 0; font-size: clamp(28px, 4vw, 38px); line-height: 1.3; font-weight: 800; }
.mol-archive-header h1 span { color: var(--m-primary); }
.mol-eyebrow { margin: 0 0 5px; color: var(--m-primary); font-size: 13px; font-weight: 800; }
.mol-archive-description { max-width: 720px; margin-top: 9px; color: var(--m-muted); }
.mol-subject-links { margin: 0 0 25px; padding: 15px; background: var(--m-surface); border-radius: 15px; }
.mol-subject-links .mol-chip { min-height: 36px; }
.mol-post-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.mol-editorial-card { overflow: hidden; border: 1px solid var(--m-border); border-radius: var(--m-radius); background: #fff; }
.mol-editorial-image { display: block; aspect-ratio: 16/9; background: var(--m-surface); }
.mol-editorial-image img { width: 100%; height: 100%; object-fit: cover; }
.mol-editorial-body { padding: 18px; }
.mol-editorial-body time { color: var(--m-muted); font-size: 12px; }
.mol-editorial-body h2 { margin: 5px 0 7px; font-size: 20px; line-height: 1.45; }
.mol-editorial-body h2 a { color: var(--m-text); }
.mol-editorial-body p { color: var(--m-muted); margin: 0; font-size: 14px; }
.mol-empty-state { display: grid; justify-items: center; align-content: center; min-height: 180px; padding: 24px; color: var(--m-muted); text-align: center; background: var(--m-surface); border: 1px dashed #d6e0ef; border-radius: var(--m-radius); }
.mol-empty-state p { margin: 6px 0 0; }
.mol-empty-state h2 { margin: 8px 0 0; color: var(--m-text); font-size: 20px; }
.mol-empty-state--wide { grid-column: 1/-1; }
.mol-empty-icon { display: grid; width: 42px; height: 42px; place-items: center; color: var(--m-primary); background: #e4edff; border-radius: 50%; font-size: 23px; }
.mol-empty-state .mol-search-form { width: min(540px,100%); margin-top: 18px; }
.navigation.pagination { margin-top: 32px; }
.nav-links { display: flex; justify-content: center; align-items: center; gap: 7px; }
.page-numbers { display: grid; min-width: 40px; height: 40px; place-items: center; padding: 0 10px; border: 1px solid var(--m-border); border-radius: 10px; color: var(--m-text); background: #fff; }
.page-numbers.current, .page-numbers:hover { color: #fff; border-color: var(--m-primary); background: var(--m-primary); }

/* Single content */
.mol-reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 30px; }
.mol-reading-main { min-width: 0; }
.mol-reading-card { min-width: 0; padding: clamp(20px,3vw,36px); border: 1px solid var(--m-border); border-radius: 20px; background: #fff; box-shadow: 0 7px 24px rgba(19,37,77,.045); }
.mol-entry-header { margin-bottom: 20px; }
.mol-entry-header h1 { margin: 8px 0; font-size: clamp(28px,4vw,40px); line-height: 1.32; font-weight: 800; }
.mol-entry-taxonomies { display: flex; flex-wrap: wrap; gap: 6px; }
.mol-label { padding: 4px 10px; color: #fff; background: var(--m-primary); border-radius: 100px; font-size: 12px; font-weight: 700; }
.mol-label--soft { color: var(--m-primary-dark); background: #eaf1ff; }
.mol-entry-meta { display: flex; gap: 15px; color: var(--m-muted); font-size: 13px; }
.mol-featured-image { max-height: 560px; margin: 0 0 24px; text-align: center; background: var(--m-surface); border-radius: 16px; overflow: hidden; }
.mol-featured-image img { max-height: 560px; width: auto; object-fit: contain; }
.mol-material-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin: 20px 0; padding: 15px; background: var(--m-surface); border-radius: 14px; }
.mol-material-details > div { min-width: 0; }
.mol-material-details dt { color: var(--m-muted); font-size: 12px; }
.mol-material-details dd { margin: 1px 0 0; font-size: 14px; font-weight: 700; }
.mol-download-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0; }
.mol-button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 44px; padding: 9px 17px; border: 1px solid transparent; border-radius: 11px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease; }
.mol-button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(17,44,91,.12); }
.mol-button--primary { color: #fff; background: var(--m-primary); }
.mol-button--primary:hover { color: #fff; background: var(--m-primary-dark); }
.mol-button--secondary { color: var(--m-text); background: var(--m-secondary); }
.mol-button--outline { color: var(--m-primary); border-color: #c9d9f6; background: #fff; }
.mol-entry-content { color: var(--m-text); line-height: 1.9; overflow-wrap: anywhere; }
.mol-entry-content > *:first-child { margin-top: 0; }
.mol-entry-content h2, .mol-entry-content h3 { margin-top: 1.6em; line-height: 1.4; }
.mol-entry-content img { border-radius: 12px; }
.mol-entry-content table { width: 100%; border-collapse: collapse; }
.mol-entry-content th, .mol-entry-content td { padding: 9px; border: 1px solid var(--m-border); }
.mol-entry-content blockquote { margin-inline: 0; padding: 12px 18px; border-inline-start: 4px solid var(--m-secondary); background: var(--m-surface); }
.mol-sidebar { position: sticky; top: calc(var(--m-header-height) + 22px); display: grid; gap: 18px; }
.mol-widget { padding: 18px; border: 1px solid var(--m-border); border-radius: 14px; background: #fff; }
.mol-widget-title { margin: 0 0 12px; font-size: 18px; }
.mol-related { margin-top: 35px; }
.mol-related .mol-material-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.mol-error-page { display: flex; min-height: 60vh; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.mol-error-code { color: var(--m-primary); font-size: clamp(72px,15vw,150px); line-height: 1; font-weight: 900; letter-spacing: -.06em; }
.mol-error-page h1 { margin: 12px 0 0; font-size: 30px; }
.mol-error-page > p { max-width: 550px; color: var(--m-muted); }
.mol-error-page .mol-search-form { width: min(600px,100%); margin: 10px 0 18px; }

/* Ads and footer */
.mol-ad { display: flex; justify-content: var(--mol-ad-align,center); width: 100%; max-width: var(--m-container); min-height: 0; margin: 14px auto; padding-inline: var(--m-gutter); }
.mol-ad > * { max-width: var(--mol-ad-width,100%); }
.mol-ad--mobile { display: none; }
.mol-ad--desktop { display: flex; }
.mol-content-ad { margin-block: 22px; }
.mol-site-footer { margin-top: 70px; color: var(--m-footer-text); background: var(--m-footer); }
.mol-footer-main { display: grid; grid-template-columns: minmax(210px,1.2fr) minmax(0,2fr); gap: 50px; padding-block: 48px; }
.mol-footer-about { max-width: 350px; }
.mol-footer-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 21px; font-weight: 800; }
.mol-footer-brand .custom-logo { width: auto; max-width: 180px; max-height: var(--m-logo-height); filter: brightness(0) invert(1); }
.mol-footer-about > p { color: var(--m-footer-text); opacity: .78; font-size: 14px; }
.mol-footer-menus { display: grid; grid-template-columns: repeat(var(--mol-footer-columns,4),minmax(0,1fr)); gap: 18px; }
.mol-footer-menu h2 { margin: 3px 0 12px; color: #fff; font-size: 16px; }
.mol-footer-links { list-style: none; display: grid; gap: 8px; padding: 0; margin: 0; }
.mol-footer-links a { color: var(--m-footer-text); opacity: .78; font-size: 14px; }
.mol-footer-links a:hover { opacity: 1; color: var(--m-secondary); }
.mol-social-links { display: flex; gap: 8px; margin-top: 17px; }
.mol-social-links a { display: grid; width: 34px; height: 34px; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; font-size: 13px; font-weight: 800; }
.mol-social-links a:hover { color: var(--m-text); border-color: var(--m-secondary); background: var(--m-secondary); }
.mol-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.mol-footer-bottom .mol-container { display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 58px; }
.mol-footer-bottom p { margin: 0; color: var(--m-footer-text); opacity: .72; font-size: 13px; }
.mol-footer-bottom a { color: var(--m-footer-text); font-size: 13px; }

@media (min-width: 1500px) {
  .mol-container { width: min(calc(100% - 60px), var(--m-container)); }
}
@media (max-width: 1199px) {
  .mol-header-inner { gap: 15px; }
  .mol-menu { gap: 13px; }
  .mol-menu > li > a { font-size: 13px; }
  .mol-header-search { flex-basis: 250px; }
  .mol-material-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .mol-quick-link { gap: 9px; padding-inline: 9px; }
  .mol-quick-link small { font-size: 11px; }
}
@media (max-width: 900px) {
  :root { --m-section-gap: 38px; }
  .mol-header-inner { flex-wrap: wrap; padding-block: 11px; }
  .mol-site-header, .mol-header-inner { min-height: 64px; }
  .mol-brand { order: 1; }
  .mol-menu-toggle { display: flex; order: 3; width: 42px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; margin-inline-start: auto; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; background: transparent; }
  .mol-menu-toggle > span:not(.screen-reader-text) { display: block; width: 19px; height: 2px; background: #fff; border-radius: 2px; }
  .mol-primary-nav { display: none; order: 4; flex: 0 0 100%; }
  .mol-primary-nav.is-open { display: block; }
  .mol-menu { flex-direction: column; align-items: stretch; gap: 0; padding: 7px 0 5px; }
  .mol-menu > li > a { min-height: 43px; padding: 0 10px; border-top: 1px solid rgba(255,255,255,.12); }
  .mol-menu .sub-menu { display: block; position: static; min-width: 0; padding: 0 13px 6px; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
  .mol-menu .sub-menu a { color: rgba(255,255,255,.87); }
  .mol-menu .sub-menu a:hover { color: var(--m-secondary); background: transparent; }
  .mol-header-search { order: 2; flex: 1 1 auto; min-width: 0; max-width: 380px; margin-inline-start: auto; }
  .mol-header-search .mol-search-form { height: 40px; }
  .mol-hero { min-height: 325px; padding: 39px 0 62px; }
  .mol-quick-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mol-quick-link:nth-child(2) { border-inline-start: 0; }
  .mol-quick-link:nth-child(n+3) { border-top: 1px solid #e7edf7; }
  .mol-stage-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .mol-stage-row h3 { flex: none; }
  .mol-material-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
  .mol-reading-layout { grid-template-columns: minmax(0,1fr); }
  .mol-sidebar { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mol-footer-main { gap: 30px; }
}
@media (max-width: 600px) {
  :root { --m-section-gap: 34px; --m-heading-size: 23px; }
  .mol-container { width: calc(100% - 2 * var(--m-gutter)); }
  .mol-header-inner { gap: 9px; }
  .mol-brand { font-size: 19px; }
  .mol-brand img.custom-logo { max-width: 145px; }
  .mol-header-search { order: 5; flex: 0 0 100%; max-width: none; }
  .mol-header-search .mol-search-form { height: 42px; }
  .mol-menu-toggle { margin-inline-start: auto; }
  .admin-bar.has-sticky-header .mol-site-header { top: 46px; }
  .mol-hero { min-height: 320px; padding: 35px 0 58px; }
  .mol-hero h1 { font-size: 36px; }
  .mol-hero-subtitle { max-width: 330px; margin-bottom: 19px; font-size: 15px; }
  .mol-hero-search { min-height: 56px; border-radius: 14px; }
  .mol-hero-search input[type="search"] { padding-inline: 10px; font-size: 13px; }
  .mol-hero-search button { min-width: 69px; font-size: 13px; }
  .mol-popular-grades { gap: 6px; font-size: 11px; }
  .mol-popular-grades a { padding: 3px 9px; }
  .mol-hero-orbit { opacity: .65; }
  .mol-overlap-section { margin-top: -22px; }
  .mol-quick-links { grid-template-columns: 1fr; padding: 5px; border-radius: 16px; }
  .mol-quick-link { min-height: 65px; padding: 9px; border-inline-start: 0; }
  .mol-quick-link + .mol-quick-link { border-top: 1px solid #e7edf7; }
  .mol-quick-icon { flex-basis: 40px; width: 40px; height: 40px; font-size: 21px; }
  .mol-quick-link strong { font-size: 14px; }
  .mol-section-heading { margin-bottom: 14px; }
  .mol-section-heading h2 { font-size: 23px; }
  .mol-section-heading > a { font-size: 12px; }
  .mol-stage-row { padding: 13px; }
  .mol-grade-chips { gap: 6px; }
  .mol-chip { min-height: 36px; padding: 5px 11px; font-size: 12px; }
  .mol-material-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .mol-card-body { padding: 9px; }
  .mol-card-body h3 { min-height: 43px; font-size: 13px; }
  .mol-card-more { font-size: 11px; }
  .mol-page-shell { padding-block: 20px 50px; }
  .mol-breadcrumbs { margin-bottom: 17px; font-size: 11px; }
  .mol-post-grid { grid-template-columns: 1fr; }
  .mol-reading-card { padding: 18px 14px; border-radius: 15px; }
  .mol-entry-header h1 { font-size: 27px; }
  .mol-material-details { grid-template-columns: 1fr 1fr; padding: 11px; }
  .mol-download-actions .mol-button { flex: 1 1 calc(50% - 8px); padding-inline: 10px; font-size: 13px; }
  .mol-sidebar { grid-template-columns: 1fr; }
  .mol-related .mol-material-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mol-footer-main { grid-template-columns: 1fr; gap: 26px; padding-block: 35px; }
  .mol-footer-menus { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 22px; }
  .mol-footer-bottom .mol-container { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 11px; gap: 3px; }
  .mol-ad--mobile { display: flex; }
  .mol-ad--desktop { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
