:root {
  --yalla-primary: #1260f5;
  --yalla-accent: #ffcf3d;
  --yalla-page-bg: #fff;
  --yalla-text: #142544;
  --yalla-header-bg: #1260f5;
  --yalla-header-text: #fff;
  --yalla-announcement-bg: #0d4fce;
  --yalla-announcement-fg: #fff;
  --yalla-footer-bg: #102347;
  --yalla-footer-text: #eaf0ff;
  --yalla-font-family: "Cairo", Tahoma, Arial, sans-serif;
  --yalla-muted: #7585a5;
  --yalla-line: #e1e8f4;
  --yalla-pale: #f3f6fc;
  --yalla-radius: 17px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  direction: rtl;
  background: var(--yalla-page-bg);
  color: var(--yalla-text);
  font-family: var(--yalla-font-family);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--yalla-primary); text-decoration: none; }
a:hover { color: #0c46bd; }
:focus-visible { outline: 3px solid var(--yalla-accent); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
.site-container { width: min(100% - 40px, 1148px); margin-inline: auto; }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px;
  overflow: hidden; position: absolute !important; width: 1px; white-space: nowrap;
}
.screen-reader-text:focus {
  clip: auto !important; clip-path: none; height: auto; width: auto; background: #fff;
  color: #000; padding: 12px 16px; z-index: 100000; right: 8px; top: 8px;
}

.announcement-bar {
  background: var(--yalla-announcement-bg);
  color: var(--yalla-announcement-fg);
  min-height: 28px;
  font-size: 12px;
  font-weight: 600;
}
.announcement-bar__inner { text-align: center; line-height: 28px; }
.site-header { position: relative; z-index: 20; background: var(--yalla-header-bg); color: var(--yalla-header-text); }
.site-header__inner {
  min-height: 66px; display: flex; align-items: center; gap: 22px;
}
.site-branding { flex: 0 0 auto; order: 0; }
.site-branding__link {
  color: var(--yalla-header-text); display: inline-flex; align-items: center; gap: 7px;
  font-weight: 800; font-size: 19px; line-height: 1; white-space: nowrap;
}
.site-branding__link:hover { color: var(--yalla-header-text); opacity: .86; }
.site-branding__mark { width: 37px; height: 32px; }
.custom-logo-link { display: flex; align-items: center; }
.custom-logo { max-height: 46px; width: auto; }
.site-header__tools { order: 1; flex: 0 1 365px; min-width: 185px; }
.header-search {
  display: flex; align-items: center; height: 44px; overflow: hidden; border-radius: 12px;
  background: #fff; box-shadow: 0 3px 10px rgb(4 29 89 / 9%);
}
.header-search input {
  width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  color: var(--yalla-text); padding: 0 15px; font-size: 13px;
}
.header-search input::placeholder { color: #8190ae; }
.header-search button {
  border: 0; border-radius: 10px 0 0 10px; background: var(--yalla-accent);
  color: #102347; width: 51px; height: 100%; display: grid; place-items: center; cursor: pointer;
}
.header-search button:hover { filter: brightness(.96); }
.header-search svg, .hero-search svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.primary-navigation { order: 2; margin-inline-start: auto; }
.primary-navigation__list { display: flex; align-items: center; gap: 22px; }
.primary-navigation a {
  display: block; color: var(--yalla-header-text); font-size: 13px; line-height: 1.4;
  font-weight: 700; white-space: nowrap; transition: opacity .18s ease;
}
.primary-navigation a:hover { color: var(--yalla-header-text); opacity: .76; }
.primary-navigation li { position: relative; }
.primary-navigation .sub-menu {
  position: absolute; top: 100%; right: 0; z-index: 30; display: none; min-width: 190px;
  padding: 7px; border-radius: 12px; background: var(--yalla-header-bg);
  box-shadow: 0 12px 24px rgb(0 0 0 / 18%);
}
.primary-navigation li:hover > .sub-menu,
.primary-navigation li:focus-within > .sub-menu { display: block; }
.primary-navigation .sub-menu a { padding: 9px 11px; border-radius: 7px; }
.primary-navigation .sub-menu a:hover { background: rgb(255 255 255 / 12%); }
.menu-toggle { display: none; }

.site-hero {
  position: relative; min-height: 386px; overflow: hidden; isolation: isolate;
  background: var(--yalla-primary); color: #fff; text-align: center;
}
.site-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgb(255 255 255 / 7%) 1px, transparent 1px);
  background-size: 100% 36px;
}
.site-hero::after {
  content: ""; position: absolute; z-index: -1; bottom: -88px; right: -3%;
  width: 41%; height: 172px; opacity: .24;
  border: 31px solid #a8c8ff; border-bottom: 0; border-radius: 55% 55% 0 0;
  transform: rotate(-8deg);
  box-shadow: -720px -7px 0 -14px rgb(168 200 255 / 75%);
}
.site-hero__content { position: relative; padding: 55px 20px 89px; }
.site-hero__eyebrow { display: none; }
.site-hero h1 {
  margin: 0; color: #fff; font-size: clamp(32px, 4vw, 43px); line-height: 1.35;
  font-weight: 800; letter-spacing: -.04em;
}
.site-hero__description { margin: 0 0 25px; font-size: 17px; color: rgb(255 255 255 / 90%); }
.hero-search {
  width: min(100%, 688px); height: 64px; margin: 0 auto; display: flex; align-items: center;
  gap: 12px; padding: 6px; border: 0; border-radius: 16px; background: #fff;
  box-shadow: 0 14px 32px rgb(4 35 105 / 18%); color: #526380;
}
.hero-search svg { flex: 0 0 21px; margin-inline-start: 12px; }
.hero-search input {
  min-width: 0; flex: 1; height: 100%; border: 0; outline: 0; background: transparent;
  color: var(--yalla-text); font-size: 14px;
}
.hero-search input::placeholder { color: #8291af; }
.hero-search button {
  flex: 0 0 auto; align-self: stretch; border: 0; border-radius: 12px;
  padding: 0 26px; background: var(--yalla-accent); color: #142544; font-weight: 800;
  cursor: pointer; transition: transform .18s ease, filter .18s ease;
}
.hero-search button:hover { transform: translateY(-1px); filter: brightness(.97); }
.popular-grades {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 8px; margin: 17px auto 0; color: rgb(255 255 255 / 88%); font-size: 12px;
}
.popular-grades a {
  padding: 5px 13px; color: #fff; border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 999px; font-size: 12px; font-weight: 650; transition: background .2s ease;
}
.popular-grades a:hover { background: rgb(255 255 255 / 16%); color: #fff; }

.home-content { position: relative; z-index: 2; padding-bottom: 60px; }
.quick-categories {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: -30px; padding: 8px;
  border: 1px solid var(--yalla-line); border-radius: 20px; background: #fff;
  box-shadow: 0 14px 30px rgb(22 43 82 / 8%);
}
.quick-category {
  display: flex; align-items: center; gap: 12px; min-height: 74px; padding: 11px 13px;
  color: var(--yalla-text); border-inline-start: 1px solid var(--yalla-line);
  transition: background .2s ease, transform .2s ease;
}
.quick-category:last-child { border-inline-start: 0; }
.quick-category:hover { color: var(--yalla-primary); background: #f8faff; transform: translateY(-2px); border-radius: 12px; }
.quick-category__icon {
  flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 13px; background: #edf3ff; color: var(--yalla-primary);
  font-size: 22px; font-weight: 800; line-height: 1;
}
.quick-category__copy { display: flex; flex-direction: column; gap: 1px; }
.quick-category__copy strong { font-size: 14px; font-weight: 800; }
.quick-category__copy small { color: var(--yalla-muted); font-size: 11px; line-height: 1.5; }

.content-section { margin-top: 43px; }
.section-heading {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px;
}
.section-heading h2 {
  display: inline; margin: 0; padding-bottom: 2px; color: #102347; font-size: 23px;
  line-height: 1.5; font-weight: 850; box-shadow: inset 0 -7px 0 color-mix(in srgb, var(--yalla-accent) 80%, transparent);
}
.section-heading > a { font-size: 13px; font-weight: 700; white-space: nowrap; }
.grades-section { margin-top: 39px; }
.grade-row {
  display: flex; align-items: center; gap: 20px; min-height: 72px;
  padding: 10px 18px; margin-top: 9px; border-radius: 15px; background: var(--yalla-pale);
}
.grade-row h3 {
  flex: 0 0 145px; display: flex; align-items: center; gap: 9px; margin: 0;
  color: #24385f; font-size: 13px; font-weight: 800;
}
.grade-row h3 span { color: var(--yalla-primary); font-size: 16px; }
.grade-row__links { display: flex; flex-wrap: wrap; gap: 8px; }
.grade-row__links a {
  min-height: 42px; display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 15px; border: 1px solid #dce5f4; border-radius: 999px; background: #fff;
  color: #142544; font-size: 12px; font-weight: 650; transition: border .18s ease, color .18s ease, transform .18s ease;
}
.grade-row__links a:hover { border-color: var(--yalla-primary); color: var(--yalla-primary); transform: translateY(-1px); }

.resource-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 19px;
}
.resource-card { min-width: 0; animation: resource-arrive .45s both; }
.resource-card__cover-link { display: block; overflow: hidden; border-radius: 12px; background: #f0f4fb; }
.resource-card__cover {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5.1; object-fit: cover;
  transition: transform .3s ease, filter .3s ease;
}
.resource-card:hover .resource-card__cover { transform: scale(1.035); filter: saturate(1.04); }
.resource-card__placeholder {
  aspect-ratio: 4 / 5.1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 15px; overflow: hidden; position: relative; isolation: isolate;
  background:
    radial-gradient(ellipse at 85% 10%, rgb(255 255 255 / 65%), transparent 46%),
    linear-gradient(145deg, #dceaff 0%, #eff4fc 55%, #d2def2 100%);
  color: #244570; text-align: center;
}
.resource-card:nth-child(4n + 2) .resource-card__placeholder {
  background: radial-gradient(ellipse at 15% 10%, rgb(255 255 255 / 64%), transparent 50%), linear-gradient(150deg, #fff0c8, #f7dfad 62%, #e9c98b);
  color: #79541a;
}
.resource-card:nth-child(4n + 3) .resource-card__placeholder {
  background: radial-gradient(ellipse at 90% 90%, rgb(255 255 255 / 54%), transparent 48%), linear-gradient(155deg, #e7e0ff, #c9c2f3 60%, #aa9ee8);
  color: #40377a;
}
.resource-card:nth-child(4n) .resource-card__placeholder {
  background: radial-gradient(ellipse at 5% 80%, rgb(255 255 255 / 60%), transparent 48%), linear-gradient(150deg, #d8f0e7, #a9d9c8 62%, #78bda5);
  color: #225a49;
}
.resource-card__placeholder::before {
  content: ""; position: absolute; inset: 11px; border: 1px solid currentColor; opacity: .26; border-radius: 8px; z-index: -1;
}
.resource-card__placeholder-mark {
  width: 61px; height: 61px; display: grid; place-items: center; border: 2px solid currentColor;
  border-radius: 50%; color: inherit; font-size: 27px; font-weight: 850;
}
.resource-card__placeholder-label { max-width: 150px; font-size: 11px; font-weight: 800; line-height: 1.8; }
.resource-card__body { padding: 10px 2px 0; }
.resource-card__type {
  display: inline-block; margin-bottom: 3px; color: var(--yalla-primary); font-size: 10px;
  font-weight: 750; line-height: 1.5;
}
.resource-card__title {
  display: -webkit-box; overflow: hidden; margin: 0; color: var(--yalla-text);
  font-size: 12px; font-weight: 750; line-height: 1.7; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.resource-card__title a { color: inherit; }
.resource-card__title a:hover { color: var(--yalla-primary); }
.resource-card__meta { margin: 4px 0 0; color: var(--yalla-muted); font-size: 10px; }
.empty-resources {
  display: flex; align-items: center; gap: 12px; min-height: 88px; padding: 18px 20px;
  border: 1px dashed #cbd7ea; border-radius: 15px; background: #fafcff; color: var(--yalla-muted);
}
.empty-resources p { margin: 0; font-size: 13px; }
.empty-resources__icon {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  background: #eaf1ff; color: var(--yalla-primary); font-size: 19px; font-weight: 600;
}
.ad-slot {
  width: 100%; margin: 27px 0; text-align: center; overflow: hidden;
}
.ad-slot:empty { display: none; }
.ad-slot img { max-width: 100%; height: auto; }
.ad-slot ins { margin-inline: auto; }

.archive-page { min-height: 62vh; padding-top: 48px; padding-bottom: 72px; }
.archive-heading {
  display: flex; align-items: end; justify-content: space-between; gap: 28px;
  padding: 30px; margin-bottom: 24px; border-radius: 20px;
  background: linear-gradient(115deg, #edf4ff, #f9fbff);
}
.archive-heading h1 { margin: 2px 0 5px; color: #102347; font-size: clamp(27px, 3vw, 38px); font-weight: 850; }
.archive-heading p { margin: 0; color: var(--yalla-muted); }
.eyebrow { margin: 0; color: var(--yalla-primary) !important; font-size: 12px; font-weight: 800; }
.archive-search { flex: 0 0 min(100%, 410px); display: flex; min-height: 50px; padding: 5px; border: 1px solid var(--yalla-line); border-radius: 13px; background: #fff; }
.archive-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding-inline: 13px; background: transparent; }
.archive-search button { border: 0; border-radius: 9px; padding: 0 18px; background: var(--yalla-primary); color: #fff; font-weight: 750; cursor: pointer; }
.archive-description { margin-top: 8px; color: var(--yalla-muted); }
.resource-grid--archive { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 28px; }
.back-link { display: inline-block; margin: 0 0 17px; font-size: 13px; font-weight: 700; }
.pagination { margin-top: 35px; }
.pagination .nav-links, .pagination .page-numbers { display: flex; align-items: center; justify-content: center; gap: 8px; }
.pagination .page-numbers {
  min-width: 39px; min-height: 39px; align-items: center; justify-content: center;
  border: 1px solid var(--yalla-line); border-radius: 10px; color: var(--yalla-text);
}
.pagination .current { background: var(--yalla-primary); border-color: var(--yalla-primary); color: #fff; }
.empty-resources--large { min-height: 230px; flex-direction: column; justify-content: center; text-align: center; }
.empty-resources--large h2, .empty-resources--large h1 { margin: 0; color: var(--yalla-text); font-size: 23px; }

.single-page { min-height: 65vh; padding-top: 38px; padding-bottom: 70px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 25px; color: var(--yalla-muted); font-size: 12px; }
.breadcrumbs a { font-weight: 650; }
.resource-detail {
  display: grid; grid-template-columns: minmax(210px, 310px) minmax(0, 1fr);
  align-items: start; gap: clamp(24px, 5vw, 58px); padding: 32px;
  border: 1px solid var(--yalla-line); border-radius: 22px; background: #fff;
  box-shadow: 0 16px 46px rgb(19 48 94 / 6%);
}
.resource-detail__cover { overflow: hidden; border-radius: 15px; background: var(--yalla-pale); }
.resource-detail__cover > img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5.1; object-fit: cover; }
.resource-card__placeholder--large { min-height: 350px; }
.resource-card__placeholder--large > span { font-size: 54px; font-weight: 850; }
.resource-card__placeholder--large > small { font-size: 14px; font-weight: 750; }
.resource-detail__content h1 { margin: 5px 0 22px; color: #102347; font-size: clamp(26px, 3.5vw, 37px); font-weight: 850; line-height: 1.5; }
.resource-detail__facts { display: grid; gap: 0; margin: 0 0 22px; }
.resource-detail__facts p { display: grid; grid-template-columns: 145px 1fr; gap: 15px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--yalla-line); }
.resource-detail__facts strong { color: #7383a0; font-size: 12px; }
.resource-detail__facts span { font-size: 13px; font-weight: 650; }
.button {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; border-radius: 11px; padding: 11px 22px; font-weight: 800; cursor: pointer;
}
.button--primary { background: var(--yalla-primary); color: #fff; }
.button--primary:hover { background: #0c4bc7; color: #fff; }
.button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notice { padding: 12px 15px; border-radius: 10px; background: #fff5dc; color: #674c15; }
.resource-detail__description { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--yalla-line); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content img { border-radius: 12px; }
.article-card { padding: 22px; border: 1px solid var(--yalla-line); border-radius: 16px; }
.article-card h2 { margin-top: 0; }
.page-content, .single-post { max-width: 850px; margin-inline: auto; padding: clamp(20px, 4vw, 42px); }
.page-content h1, .single-post h1 { margin-top: 0; color: #102347; font-size: clamp(27px, 3.5vw, 38px); font-weight: 850; }
.single-post__image { margin: 20px 0; }
.single-post__image img { display: block; width: 100%; height: auto; border-radius: 14px; }
.not-found-page { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-block: 60px; }
.not-found-page h1 { margin: 5px 0; font-size: 34px; }
.not-found-page > p:not(.eyebrow) { color: var(--yalla-muted); margin-bottom: 25px; }

.site-footer { background: var(--yalla-footer-bg); color: var(--yalla-footer-text); }
.site-footer__grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 34px; padding-block: 45px 40px;
}
.site-footer__brand { display: inline-block; color: #fff; font-size: 21px; font-weight: 850; }
.site-footer__about p { max-width: 280px; margin: 11px 0 0; color: rgb(234 240 255 / 78%); font-size: 13px; }
.site-footer__links h2, .footer-widget__title { margin: 0 0 12px; color: #fff; font-size: 14px; font-weight: 800; }
.footer-menu { display: grid; gap: 8px; }
.footer-menu a, .site-footer .widget a { color: rgb(234 240 255 / 80%); font-size: 12px; }
.footer-menu a:hover, .site-footer .widget a:hover { color: #fff; }
.site-footer .widget { margin: 0 0 12px; }
.site-footer__bottom { border-top: 1px solid rgb(234 240 255 / 13%); }
.site-footer__bottom-inner { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: rgb(234 240 255 / 65%); font-size: 11px; }

@keyframes resource-arrive {
  from { opacity: .35; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .site-header__inner { gap: 16px; }
  .primary-navigation__list { gap: 15px; }
  .site-header__tools { flex-basis: 280px; }
  .resource-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .resource-grid--archive { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .site-container { width: min(100% - 32px, 680px); }
  .site-header__inner { min-height: 63px; gap: 12px; }
  .site-branding { margin-inline-start: auto; }
  .site-branding__link { font-size: 17px; }
  .site-branding__mark { width: 32px; }
  .site-header__tools { flex: 1 1 auto; max-width: 350px; }
  .header-search { height: 40px; }
  .header-search input { font-size: 12px; }
  .primary-navigation {
    display: none; position: absolute; inset: 100% 0 auto; padding: 11px 20px 17px;
    background: var(--yalla-header-bg); box-shadow: 0 12px 20px rgb(0 0 0 / 14%);
  }
  .primary-navigation.is-open { display: block; }
  .primary-navigation__list { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-navigation a { padding: 11px 5px; border-top: 1px solid rgb(255 255 255 / 16%); }
  .primary-navigation .sub-menu {
    position: static; display: block; min-width: 0; padding: 0 12px 5px;
    border-radius: 0; background: transparent; box-shadow: none;
  }
  .primary-navigation .sub-menu a { padding: 9px 5px; }
  .menu-toggle {
    width: 40px; height: 40px; order: 3; display: flex; flex: 0 0 40px;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    border: 1px solid rgb(255 255 255 / 28%); border-radius: 10px; background: transparent; cursor: pointer;
  }
  .menu-toggle > span:not(.screen-reader-text) { width: 17px; height: 2px; background: #fff; border-radius: 2px; }
  .site-hero { min-height: 367px; }
  .site-hero__content { padding-top: 48px; padding-bottom: 78px; }
  .quick-categories { grid-template-columns: repeat(2, 1fr); }
  .quick-category:nth-child(2) { border-inline-start: 0; }
  .quick-category:nth-child(-n+2) { border-bottom: 1px solid var(--yalla-line); }
  .grade-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .grade-row h3 { flex: none; }
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
  .archive-heading { flex-direction: column; align-items: stretch; }
  .archive-search { flex-basis: auto; }
}
@media (max-width: 560px) {
  .site-container { width: min(100% - 26px, 500px); }
  .announcement-bar { min-height: 25px; }
  .announcement-bar__inner { line-height: 25px; font-size: 10px; }
  .site-header__inner { gap: 9px; min-height: 60px; }
  .site-branding__link { gap: 4px; font-size: 15px; }
  .site-branding__mark { width: 27px; height: 27px; }
  .site-header__tools { min-width: 0; }
  .header-search { height: 37px; border-radius: 10px; }
  .header-search input { padding-inline: 9px; font-size: 10px; }
  .header-search button { width: 37px; }
  .header-search svg { width: 16px; height: 16px; }
  .menu-toggle { width: 35px; height: 35px; flex-basis: 35px; }
  .site-hero { min-height: 355px; }
  .site-hero__content { padding: 41px 0 72px; }
  .site-hero h1 { font-size: 32px; }
  .site-hero__description { max-width: 320px; margin: 1px auto 21px; font-size: 14px; }
  .hero-search { height: 56px; gap: 7px; padding: 5px; border-radius: 13px; }
  .hero-search svg { width: 18px; height: 18px; margin-inline-start: 6px; }
  .hero-search input { font-size: 11px; }
  .hero-search button { padding-inline: 16px; border-radius: 10px; font-size: 12px; }
  .popular-grades { gap: 6px; margin-top: 13px; font-size: 10px; }
  .popular-grades a { padding: 4px 9px; font-size: 10px; }
  .quick-categories { margin-top: -27px; padding: 6px; border-radius: 15px; }
  .quick-category { min-height: 67px; gap: 8px; padding: 8px 6px; }
  .quick-category__icon { flex-basis: 35px; width: 35px; height: 35px; border-radius: 10px; font-size: 18px; }
  .quick-category__copy strong { font-size: 11px; }
  .quick-category__copy small { font-size: 9px; line-height: 1.45; }
  .content-section { margin-top: 31px; }
  .section-heading { margin-bottom: 13px; }
  .section-heading h2 { font-size: 19px; }
  .section-heading > a { font-size: 11px; }
  .grade-row { min-height: unset; padding: 12px; margin-top: 7px; gap: 9px; border-radius: 12px; }
  .grade-row h3 { font-size: 12px; }
  .grade-row__links { gap: 6px; }
  .grade-row__links a { min-height: 34px; padding: 6px 10px; font-size: 10px; }
  .resource-grid, .resource-grid--archive { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .resource-card__body { padding-top: 7px; }
  .resource-card__title { font-size: 11px; }
  .resource-card__type { font-size: 9px; }
  .archive-page { padding-top: 25px; padding-bottom: 45px; }
  .archive-heading { padding: 22px 17px; gap: 15px; border-radius: 15px; }
  .archive-heading h1 { font-size: 27px; }
  .archive-heading p { font-size: 12px; }
  .archive-search { min-height: 45px; }
  .archive-search input { font-size: 11px; }
  .archive-search button { padding-inline: 13px; font-size: 12px; }
  .resource-detail { grid-template-columns: 1fr; gap: 23px; padding: 18px; border-radius: 16px; }
  .resource-detail__cover { width: min(100%, 250px); margin-inline: auto; }
  .resource-card__placeholder--large { min-height: 310px; }
  .resource-detail__content h1 { margin-bottom: 15px; font-size: 25px; }
  .resource-detail__facts p { grid-template-columns: 110px 1fr; gap: 8px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 22px 15px; padding-block: 32px; }
  .site-footer__about { grid-column: 1 / -1; }
  .site-footer__about p { max-width: 360px; }
  .site-footer__bottom-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; padding-block: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
