:root {
  --ink: #10233e;
  --ink-soft: #53647c;
  --blue: #1456d9;
  --blue-deep: #0c3da7;
  --blue-light: #eaf2ff;
  --sky: #7bb8ff;
  --yellow: #f7c642;
  --yellow-soft: #fff4c7;
  --mint: #0d8f75;
  --mint-soft: #ddf7ef;
  --orange: #ed7e35;
  --orange-soft: #ffeadb;
  --violet: #7455d9;
  --violet-soft: #eee9ff;
  --paper: #ffffff;
  --canvas: #f6f8fc;
  --line: #dce3ee;
  --shadow-sm: 0 10px 30px rgba(18, 48, 96, 0.08);
  --shadow-lg: 0 24px 70px rgba(3, 28, 78, 0.2);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --container: 1180px;
  --sans: Tahoma, Verdana, Arial, sans-serif;
  --serif: Tahoma, Verdana, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: 18px;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-is-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
[hidden] { display: none !important; }

.site-container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 10000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  color: var(--paper);
  background: var(--ink);
  clip: auto;
}

.icon { width: 24px; height: 24px; flex: 0 0 auto; }

.announcement {
  min-height: 38px;
  color: #cddcff;
  background: #08265f;
  font-size: 0.8125rem;
  font-weight: 600;
}

.announcement__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.announcement span,
.announcement a { display: inline-flex; align-items: center; gap: 8px; }
.announcement .icon { width: 15px; height: 15px; color: var(--yellow); }
.announcement a { color: var(--paper); text-decoration: underline; text-decoration-color: rgba(255,255,255,.5); text-underline-offset: 3px; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(16,35,62,.09);
  backdrop-filter: blur(14px);
}

.admin-bar .site-header { top: 32px; }
.header__inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }

.brand__mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.brand__mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand__text { display: grid; line-height: 1.1; }
.brand__text strong { font-size: 1rem; letter-spacing: -.025em; white-space: nowrap; }
.brand__text small { margin-top: 5px; color: var(--ink-soft); font-size: .68rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: 24px; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; }
.nav-list > li { position: relative; }

.nav-list a {
  position: relative;
  display: block;
  padding: 8px 0;
  color: #2a3b53;
  font-size: .9rem;
  font-weight: 650;
}

.nav-list a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.nav-list > .menu-item-has-children > a { padding-right: 17px; }

.nav-list > .menu-item-has-children > a::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 1px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
}

.nav-list .sub-menu {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 50%;
  min-width: 230px;
  margin: 0;
  padding: 9px;
  list-style: none;
  visibility: hidden;
  opacity: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%,-7px);
  transition: visibility 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.nav-list .sub-menu a {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: .82rem;
  white-space: nowrap;
}

.nav-list .sub-menu a::after { display: none; }
.nav-list .sub-menu a:hover,
.nav-list .sub-menu a:focus-visible { color: var(--blue); background: var(--blue-light); }

.nav-list > .menu-item-has-children:hover > .sub-menu,
.nav-list > .menu-item-has-children:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%,0);
}

.header-search {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  color: var(--paper);
  background: var(--blue);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 750;
  transition: background 180ms ease, transform 180ms ease;
}

.header-search:hover { background: var(--blue-deep); transform: translateY(-1px); }
.header-search .icon { width: 18px; height: 18px; }

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  color: var(--ink);
  background: var(--blue-light);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}

.menu-icon--close,
.menu-toggle[aria-expanded="true"] .menu-icon--open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-icon--close { display: block; }

.hero { position: relative; overflow: hidden; color: var(--paper); background: var(--blue); }

.hero::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -250px;
  top: -300px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.02);
}

.hero__pattern {
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image: radial-gradient(rgba(255,255,255,.38) .8px, transparent .8px);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
}

.hero__grid {
  position: relative;
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(360px,.8fr);
  align-items: center;
  gap: 72px;
  padding-top: 70px;
  padding-bottom: 76px;
}

.eyebrow { margin: 0 0 14px; color: var(--blue); font-size: .75rem; font-weight: 800; letter-spacing: .16em; line-height: 1.4; }
.eyebrow--light { display: flex; align-items: center; gap: 9px; color: #dce8ff; }
.eyebrow--light span { width: 26px; height: 2px; background: var(--yellow); }

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem,4vw,3.5rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.03;
  white-space: nowrap;
}

.hero h1 em { display: block; color: var(--yellow); font-weight: inherit; }
.hero__lead { max-width: 610px; margin: 26px 0 30px; color: #d8e5ff; font-size: 1.08rem; line-height: 1.65; }

.hero-search {
  max-width: 720px;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(160px,1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 20px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.hero-search__icon { color: var(--blue); }
.hero-search__icon .icon { width: 23px; height: 23px; }
.hero-search input,
.hero-search select { min-width: 0; height: 50px; color: var(--ink); background: transparent; border: 0; outline: 0; }
.hero-search input { font-size: 1rem; }
.hero-search input::placeholder { color: #7a899e; }
.hero-search select { padding: 0 34px 0 16px; border-left: 1px solid var(--line); color: #42536c; font-size: .9rem; font-weight: 650; cursor: pointer; }

.hero-search button {
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: var(--ink);
  background: var(--yellow);
  border: 0;
  border-radius: 11px;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.hero-search button:hover { background: #ffd25d; transform: translateY(-1px); }
.hero-search button .icon { display: none; width: 20px; height: 20px; }
.quick-searches { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 18px; color: #bdd1f8; font-size: .81rem; }
.quick-searches span { font-weight: 700; }
.quick-searches a { padding: 4px 10px; color: #eff5ff; border: 1px solid rgba(255,255,255,.22); border-radius: 99px; transition: border-color 180ms ease, background 180ms ease; }
.quick-searches a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.45); }
.hero__feature { position: relative; }

.feature-card {
  position: relative;
  z-index: 1;
  padding: 28px;
  color: var(--ink);
  background: #f9fbff;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 8px 28px 28px 28px;
  box-shadow: var(--shadow-lg);
}

.feature-card::before { content: ""; position: absolute; width: 6px; top: 28px; bottom: 28px; left: 0; background: var(--yellow); }
.feature-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feature-card__eyebrow { color: var(--blue); font-size: .69rem; font-weight: 800; letter-spacing: .13em; }
.feature-card__badge { padding: 5px 9px; color: #086954; background: var(--mint-soft); border-radius: 99px; font-size: .67rem; font-weight: 800; }
.feature-card h2 { margin: 20px 0 18px; font-family: var(--serif); font-size: clamp(1.6rem,2.8vw,2.15rem); letter-spacing: -.035em; line-height: 1.16; }
.feature-list { border-top: 1px solid var(--line); }
.feature-list > a { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.feature-list > a > .icon { width: 19px; height: 19px; color: var(--blue); transition: transform 180ms ease; }
.feature-list > a:hover > .icon { transform: translateX(4px); }
.feature-list__number { width: 32px; height: 32px; display: grid; place-items: center; color: var(--blue); background: var(--blue-light); border-radius: 8px; font-size: .71rem; font-weight: 850; }
.feature-list a > span:nth-child(2) { display: grid; gap: 2px; }
.feature-list strong { font-size: .9rem; }
.feature-list small { color: var(--ink-soft); font-size: .75rem; }
.feature-card__footer { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 22px; }
.feature-card__footer span { display: grid; color: var(--ink-soft); font-size: .69rem; text-align: center; }
.feature-card__footer span + span { border-left: 1px solid var(--line); }
.feature-card__footer strong { color: var(--ink); font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; }

.hero-sticker {
  position: absolute;
  z-index: 2;
  right: -28px;
  bottom: -32px;
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--yellow);
  border: 6px solid var(--blue);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 800;
  transform: rotate(7deg);
}

.section { padding: 94px 0; }
.section-heading { max-width: 650px; margin-bottom: 42px; }
.section-heading--split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.section-heading--split > p { max-width: 420px; margin: 0 0 5px; color: var(--ink-soft); }

.section-heading h2,
.trust-grid h2,
.teacher-card h2,
.archive-header h1 { margin: 0; font-family: var(--serif); font-size: clamp(2.25rem,4vw,3.55rem); letter-spacing: -.045em; line-height: 1.08; }

.section-heading > p:last-child:not(.eyebrow) { margin: 16px 0 0; color: var(--ink-soft); }
.grade-explorer { background: var(--paper); }
.grade-explorer .section-heading h2 { font-size: clamp(1.9rem,3vw,2.65rem); }

@media (min-width: 681px) {
  .grade-explorer .section-heading h2 { white-space: nowrap; }
}

.grade-tabs {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin-bottom: 24px;
  padding: 8px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.grade-tab { min-height: 66px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 20px; color: var(--ink-soft); background: transparent; border: 0; border-radius: 12px; cursor: pointer; }
.grade-tab span { font-size: .95rem; font-weight: 800; }
.grade-tab small { color: #7d8ba0; font-size: .74rem; font-weight: 700; }
.grade-tab.is-active { color: var(--paper); background: var(--blue); box-shadow: 0 8px 24px rgba(20,86,217,.22); }
.grade-tab.is-active small { color: #d9e6ff; }
.grade-panel { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.grade-panel[data-grade-panel="secondary"] { grid-template-columns: repeat(4,1fr); }
.grade-panel[data-grade-panel="high"] { grid-template-columns: repeat(3,1fr); }

.grade-card {
  position: relative;
  min-height: 255px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.grade-card::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 130px; height: 130px; border: 22px solid currentColor; border-radius: 50%; opacity: .06; }
.grade-card:hover { z-index: 1; transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.grade-card--mint { color: #076d59; background: var(--mint-soft); border-color: #c7ecdf; }
.grade-card--blue { color: #1749a8; background: var(--blue-light); border-color: #d4e3ff; }
.grade-card--orange { color: #a84d16; background: var(--orange-soft); border-color: #f8d6bf; }
.grade-card__kicker { font-size: .7rem; font-weight: 850; letter-spacing: .16em; }
.grade-card > strong { margin: 8px 0 13px; font-family: var(--serif); font-size: 4rem; line-height: 1; }
.grade-card > small { max-width: 145px; color: var(--ink-soft); font-size: .75rem; line-height: 1.55; }
.grade-card__link { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; font-size: .75rem; font-weight: 800; }
.grade-card__link .icon { width: 16px; height: 16px; }
.resource-section { background: var(--canvas); }
.resource-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }

.resource-card {
  position: relative;
  min-height: 330px;
  padding: 28px;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.resource-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow-sm); }
.resource-card__icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; }
.resource-card__number { position: absolute; top: 26px; right: 26px; color: #9aa6b6; font-family: var(--serif); font-size: 1rem; font-weight: 700; }
.resource-card h3 { max-width: 180px; margin: 55px 0 12px; font-family: var(--serif); font-size: 1.45rem; letter-spacing: -.025em; line-height: 1.2; }
.resource-card p { margin: 0; color: var(--ink-soft); font-size: .88rem; }
.resource-card__link { position: absolute; bottom: 26px; display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 800; }
.resource-card__link .icon { width: 17px; height: 17px; transition: transform 180ms ease; }
.resource-card:hover .resource-card__link .icon { transform: translate(3px,-3px); }
.resource-card--violet .resource-card__icon { color: var(--violet); background: var(--violet-soft); }
.resource-card--orange .resource-card__icon { color: var(--orange); background: var(--orange-soft); }
.resource-card--mint .resource-card__icon { color: var(--mint); background: var(--mint-soft); }
.resource-card--blue .resource-card__icon { color: var(--blue); background: var(--blue-light); }
.section-heading--compact { margin-bottom: 34px; }

.outline-link { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; padding: 0 16px; border: 1px solid var(--line); border-radius: 99px; font-size: .82rem; font-weight: 750; }
.outline-link:hover { border-color: var(--blue); color: var(--blue); }
.outline-link .icon { width: 17px; height: 17px; }
.document-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.document-card { min-width: 0; padding: 25px 24px 24px; }
.document-card + .document-card { border-left: 1px solid var(--line); }
.document-card__head,
.document-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.document-card__head > span:first-child { padding: 5px 9px; border-radius: 99px; font-size: .65rem; font-weight: 850; letter-spacing: .08em; }
.document-card__head > span:last-child { color: #8b98aa; }
.document-card__head .icon { width: 20px; height: 20px; }
.document-card h3 { min-height: 96px; margin: 34px 0 13px; font-family: var(--serif); font-size: 1.25rem; letter-spacing: -.025em; line-height: 1.35; }
.document-card h3 a { background-image: linear-gradient(var(--blue),var(--blue)); background-position: 0 100%; background-repeat: no-repeat; background-size: 0 1px; transition: background-size 180ms ease; }
.document-card h3 a:hover { background-size: 100% 1px; }
.document-card > p { min-height: 26px; margin: 0 0 32px; color: var(--ink-soft); font-size: .8rem; }
.document-card__footer { padding-top: 18px; border-top: 1px solid var(--line); color: #77879b; font-size: .72rem; }
.document-card__footer a { width: 34px; height: 34px; display: grid; place-items: center; color: var(--paper); background: var(--ink); border-radius: 50%; }
.document-card__footer .icon { width: 16px; height: 16px; }
.document-card--blue .document-card__head > span:first-child { color: var(--blue); background: var(--blue-light); }
.document-card--mint .document-card__head > span:first-child { color: var(--mint); background: var(--mint-soft); }
.document-card--orange .document-card__head > span:first-child { color: var(--orange); background: var(--orange-soft); }
.document-card--violet .document-card__head > span:first-child { color: var(--violet); background: var(--violet-soft); }
.teacher-section { padding: 30px 0 94px; }

.teacher-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 70px;
  padding: 66px;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius-lg);
}

.teacher-card::before { content: ""; position: absolute; width: 430px; height: 430px; right: -250px; top: -210px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 60px rgba(255,255,255,.025), 0 0 0 120px rgba(255,255,255,.018); }
.teacher-card__copy,
.teacher-card__topics { position: relative; z-index: 1; }
.teacher-card h2 { font-size: clamp(2.25rem,4vw,3.25rem); }
.teacher-card__copy > p:not(.eyebrow) { max-width: 560px; margin: 22px 0 28px; color: #bcc9db; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 20px; border: 0; border-radius: 11px; font-size: .85rem; font-weight: 800; }
.button .icon { width: 17px; height: 17px; }
.button--light { color: var(--ink); background: var(--yellow); }
.button--primary { color: var(--paper); background: var(--blue); }
.teacher-card__topics { overflow: hidden; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); border-radius: 18px; }
.teacher-card__topics a { display: grid; grid-template-columns: 40px 1fr; gap: 2px 13px; padding: 18px 20px; }
.teacher-card__topics a + a { border-top: 1px solid rgba(255,255,255,.12); }
.teacher-card__topics a > span { grid-row: span 2; width: 38px; height: 38px; display: grid; place-items: center; color: var(--yellow); background: rgba(247,198,66,.13); border-radius: 10px; }
.teacher-card__topics .icon { width: 19px; height: 19px; }
.teacher-card__topics strong { font-size: .91rem; }
.teacher-card__topics small { color: #9fb0c7; font-size: .75rem; }
.trust-section { padding-top: 20px; }
.trust-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; padding-top: 74px; border-top: 1px solid var(--ink); }
.trust-list > div { display: grid; grid-template-columns: 50px 1fr; gap: 18px; padding: 0 0 22px; }
.trust-list > div + div { padding-top: 22px; border-top: 1px solid var(--line); }
.trust-list span { width: 44px; height: 44px; display: grid; place-items: center; color: var(--blue); background: var(--blue-light); border-radius: 12px; font-family: var(--serif); font-size: .86rem; font-weight: 750; }
.trust-list p { display: grid; gap: 3px; margin: 0; color: var(--ink-soft); font-size: .9rem; }
.trust-list strong { color: var(--ink); font-size: 1rem; }
.site-footer { color: #aebbd0; background: #071c3d; }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 60px; padding-top: 65px; padding-bottom: 55px; }
.brand--footer { color: var(--paper); }
.brand--footer .brand__mark { background: transparent; }
.brand--footer .brand__text small { color: #94a6c3; }
.footer__brand > p { max-width: 320px; margin: 22px 0 0; font-size: .86rem; }
.footer__grid h2 { margin: 7px 0 18px; color: var(--paper); font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; }
.footer__grid ul { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; font-size: .83rem; }
.footer__grid a:hover { color: var(--paper); }
.footer__bottom { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .74rem; }
.footer__bottom p { margin: 0; }
.footer__bottom a { color: var(--paper); }
.content-layout { min-height: 70vh; padding-top: 80px; padding-bottom: 100px; }
.elementary-archive { background: var(--paper); }
.elementary-hero { padding: 78px 0 62px; background: linear-gradient(135deg,#f3f8ff 0%,#fff 58%,#edf9f5 100%); border-bottom: 1px solid var(--line); }
.elementary-hero h1 { max-width: 780px; margin: 0; font-family: var(--serif); font-size: clamp(2.35rem,5vw,4.25rem); letter-spacing: -.05em; line-height: 1.02; }
.elementary-hero__lead { max-width: 680px; margin: 22px 0 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.75; }
.elementary-grades { padding: 64px 0 78px; }
.elementary-latest { padding: 74px 0 100px; background: var(--canvas); border-top: 1px solid var(--line); }
.elementary-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 32px; }
.elementary-section-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(1.75rem,3vw,2.55rem); letter-spacing: -.04em; line-height: 1.1; }
.elementary-section-heading > p { max-width: 450px; margin: 0 0 4px; color: var(--ink-soft); }
.grade-panel--elementary { grid-template-columns: repeat(5,minmax(0,1fr)); }
.elementary-post-list { padding-top: 0; }
.elementary-content-card { padding: 0; overflow: hidden; }
.elementary-content-card__image { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--blue-light); }
.elementary-content-card__image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 220ms ease; }
.elementary-content-card:hover .elementary-content-card__image img { transform: scale(1.035); }
.elementary-content-card__body { padding: 24px; }
.elementary-content-card h3 { margin: 14px 0 11px; font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; }
.elementary-content-card h3 a:hover { color: var(--blue); }
.elementary-content-card__body > p:not(.content-card__meta) { color: var(--ink-soft); font-size: .86rem; }
.elementary-latest ul.page-numbers { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px; margin: 38px 0 0; padding: 0; }
.elementary-latest .page-numbers li { margin: 0; }
.elementary-latest .page-numbers li > a,
.elementary-latest .page-numbers li > span { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 13px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; font-weight: 800; line-height: 1; box-shadow: 0 5px 14px rgba(15,35,65,.06); transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease; }
.elementary-latest .page-numbers li > a:hover { color: var(--paper); background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.elementary-latest .page-numbers .current { color: var(--paper); background: var(--blue); border-color: var(--blue); box-shadow: 0 7px 18px rgba(20,86,217,.22); }
.elementary-latest .page-numbers .next,
.elementary-latest .page-numbers .prev { padding-right: 18px; padding-left: 18px; }
.archive-header { padding-bottom: 38px; border-bottom: 1px solid var(--line); }
.archive-header > p:last-child { margin: 14px 0 0; color: var(--ink-soft); }
.archive-description { max-width: 720px; margin-top: 14px; color: var(--ink-soft); }
.archive-description p { margin: 0; }
.post-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; padding-top: 34px; }
.content-card { padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.content-card__meta { margin: 0; color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.content-card h2 { margin: 16px 0 12px; font-family: var(--serif); font-size: 1.45rem; line-height: 1.3; }
.content-card > p:not(.content-card__meta) { color: var(--ink-soft); font-size: .88rem; }
.text-link { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-size: .8rem; font-weight: 800; }
.text-link .icon { width: 16px; height: 16px; }
.empty-state { grid-column: 1/-1; display: grid; justify-items: center; padding: 70px 30px; text-align: center; background: var(--canvas); border-radius: var(--radius); }
.empty-state > span { width: 58px; height: 58px; display: grid; place-items: center; color: var(--blue); background: var(--blue-light); border-radius: 16px; }
.empty-state h2 { margin: 20px 0 6px; font-family: var(--serif); }
.empty-state p { margin: 0 0 22px; color: var(--ink-soft); }
.navigation.pagination { grid-column: 1/-1; width: 100%; margin-top: 18px; }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px; }
.navigation.pagination .page-numbers { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 13px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; font-weight: 800; line-height: 1; box-shadow: 0 5px 14px rgba(15,35,65,.06); transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease; }
.navigation.pagination a.page-numbers:hover { color: var(--paper); background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.navigation.pagination .page-numbers.current { color: var(--paper); background: var(--blue); border-color: var(--blue); box-shadow: 0 7px 18px rgba(20,86,217,.22); }
.navigation.pagination .page-numbers.next,
.navigation.pagination .page-numbers.prev { padding-right: 18px; padding-left: 18px; }

/* Single post */
.single-main {
  min-height: 70vh;
  padding: 42px 0 96px;
  background: var(--canvas);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin-bottom: 28px;
  color: #718096;
  font-size: .78rem;
}

.breadcrumbs a { color: var(--blue); font-weight: 700; }
.breadcrumbs > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.single-grid { display: grid; grid-template-columns: minmax(0,1fr) 330px; align-items: start; gap: 30px; }

.single-article {
  min-width: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.single-header { padding: 48px 52px 38px; border-bottom: 1px solid var(--line); }
.single-categories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.single-categories a { padding: 5px 10px; color: var(--blue); background: var(--blue-light); border-radius: 99px; font-size: .7rem; font-weight: 800; }
.single-header h1 { margin: 0; font-family: var(--serif); font-size: clamp(1.125rem,2.1vw,1.75rem); letter-spacing: -.04em; line-height: 1.2; }
.single-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 20px; color: var(--ink-soft); font-size: .78rem; }
.single-featured { margin: 0; }
.single-featured img { width: 100%; max-height: 520px; object-fit: cover; }

.single-content { padding: 42px 52px 54px; color: #283a53; font-size: .94rem; line-height: 1.82; }
.single-content > *:first-child { margin-top: 0; }
.single-content > *:last-child { margin-bottom: 0; }
.single-content h2,
.single-content h3,
.single-content h4 { scroll-margin-top: 110px; color: var(--ink); font-family: var(--serif); letter-spacing: -.025em; line-height: 1.3; }
.single-content h2 { margin: 1.5em 0 .6em; font-size: 1.25rem; }
.single-content h3 { margin: 1.3em 0 .5em; font-size: 1.05rem; }
.single-content h4 { margin: 1.7em 0 .55em; font-size: 1.25rem; }
.single-content p,
.single-content ul,
.single-content ol { margin-top: 0; margin-bottom: 1.35em; }
.single-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.single-content img { height: auto; border-radius: var(--radius-sm); }
.single-content blockquote { margin: 1.8em 0; padding: 18px 22px; background: var(--blue-light); border-left: 4px solid var(--blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.single-content pre { max-width: 100%; overflow-x: auto; padding: 20px; color: #edf4ff; background: var(--ink); border-radius: var(--radius-sm); }
.single-content table { width: 100%; margin: 1.8em 0; border-collapse: collapse; }
.single-content th,
.single-content td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.single-content th { background: var(--blue-light); }

/* Static pages */
.page-main .breadcrumbs,
.page-main .page-article {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
}

.post-toc { margin: 0 0 34px; overflow: hidden; background: #f8faff; border: 1px solid #cfdcf3; border-radius: 14px; }
.post-toc summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px; color: var(--ink); cursor: pointer; list-style: none; }
.post-toc summary::-webkit-details-marker { display: none; }
.post-toc summary span { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; }
.post-toc summary small { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-size: .72rem; font-weight: 800; }
.post-toc summary small::after { content: "+"; width: 23px; height: 23px; display: grid; place-items: center; color: var(--paper); background: var(--blue); border-radius: 50%; font-size: 1rem; line-height: 1; }
.post-toc[open] summary { border-bottom: 1px solid #cfdcf3; }
.post-toc[open] summary small::after { content: "−"; }
.post-toc ol { margin: 0; padding: 17px 22px 18px 42px; }
.post-toc__empty { margin: 0 !important; padding: 16px 18px; color: var(--ink-soft); font-size: .85rem; }
.post-toc li { margin: 5px 0; color: var(--ink-soft); font-size: .87rem; line-height: 1.55; }
.post-toc li::marker { color: var(--blue); font-weight: 800; }
.post-toc a { color: inherit; text-decoration: none; }
.post-toc a:hover { color: var(--blue); }
.post-toc__level-3 { margin-left: 16px !important; }
.post-toc__level-4 { margin-left: 32px !important; }

.single-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 52px; color: var(--ink-soft); background: #fafbfd; border-top: 1px solid var(--line); font-size: .78rem; }
.single-tags a { color: var(--blue); }

.post-sidebar { position: sticky; top: 106px; display: grid; gap: 22px; }
.admin-bar .post-sidebar { top: 138px; }
.sidebar-panel { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.sidebar-panel__heading { display: flex; align-items: center; gap: 12px; padding: 20px 20px 17px; border-bottom: 1px solid var(--line); }
.sidebar-panel__heading > span { width: 31px; height: 31px; display: grid; place-items: center; color: var(--blue); background: var(--blue-light); border-radius: 9px; font-family: var(--serif); font-size: .7rem; font-weight: 800; }
.sidebar-panel__heading h2 { margin: 0; font-family: var(--serif); font-size: 1.15rem; letter-spacing: -.02em; }
.sidebar-posts { list-style: none; margin: 0; padding: 0 20px; }
.sidebar-posts li { display: flex; gap: 13px; padding: 16px 0; }
.sidebar-posts li + li { border-top: 1px solid var(--line); }
.sidebar-posts h3 { margin: 0 0 5px; font-size: .84rem; line-height: 1.42; }
.sidebar-posts h3 a:hover { color: var(--blue); }
.sidebar-posts small { color: #8390a2; font-size: .68rem; }
.sidebar-rank { flex: 0 0 28px; color: #9aa8b9; font-family: var(--serif); font-size: .95rem; font-weight: 700; }
.sidebar-thumb { flex: 0 0 68px; height: 58px; overflow: hidden; background: var(--blue-light); border-radius: 9px; }
.sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; }

.related-posts { margin-top: 72px; padding-top: 52px; border-top: 1px solid var(--line); }
.related-posts__heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.related-posts__heading h2 { margin: 3px 0 0; font-family: var(--serif); font-size: clamp(2rem,4vw,2.7rem); letter-spacing: -.035em; }
.related-posts__heading > a { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-size: .78rem; font-weight: 800; }
.related-posts__heading .icon { width: 16px; height: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.related-card { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.related-card__image { display: block; height: 180px; overflow: hidden; background: var(--blue-light); }
.related-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease; }
.related-card:hover .related-card__image img { transform: scale(1.035); }
.related-card__body { padding: 23px; }
.related-card time { color: var(--blue); font-size: .68rem; font-weight: 800; }
.related-card h3 { margin: 10px 0 9px; font-family: var(--serif); font-size: 1.25rem; line-height: 1.32; }
.related-card h3 a:hover { color: var(--blue); }
.related-card p { margin: 0; color: var(--ink-soft); font-size: .8rem; }
.related-posts__empty { padding: 24px; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); }

@media (max-width: 1080px) {
  .nav-list { gap: 18px; }
  .nav-list a { font-size: .82rem; }
  .hero__grid { grid-template-columns: minmax(0,1fr) 360px; gap: 40px; }
  .hero h1 { font-size: clamp(2.3rem,4.5vw,3.1rem); }
  .grade-panel { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .grade-card { min-height: 235px; padding: 20px; }
  .grade-card > strong { font-size: 3.45rem; }
  .resource-card { min-height: 350px; padding: 23px; }
}

@media (max-width: 900px) {
  .admin-bar .site-header { top: 46px; }
  .menu-toggle { display: grid; }
  .primary-nav { position: fixed; top: 116px; right: 20px; left: 20px; display: none; max-height: calc(100vh - 140px); align-items: stretch; overflow-y: auto; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); }
  .admin-bar .primary-nav { top: 162px; }
  .primary-nav.is-open { display: grid; }
  .nav-list { display: grid; gap: 0; }
  .nav-list > li + li { border-top: 1px solid var(--line); }
  .nav-list a { padding: 13px 4px; font-size: .95rem; }
  .nav-list a::after { display: none; }
  .nav-list > .menu-item-has-children > a { padding-right: 24px; }
  .nav-list .sub-menu {
    position: static;
    min-width: 0;
    margin: 0 0 8px;
    padding: 0 0 0 17px;
    visibility: visible;
    opacity: 1;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }
  .nav-list .sub-menu a { padding: 10px 8px; color: var(--ink-soft); font-size: .86rem; white-space: normal; }
  .header-search { border-radius: 11px; }
  .hero__grid { grid-template-columns: 1fr; gap: 50px; padding-top: 64px; padding-bottom: 78px; }
  .hero__content { max-width: 760px; }
  .hero__feature { max-width: 600px; }
  .section { padding: 76px 0; }
  .grade-panel,
  .grade-panel[data-grade-panel="secondary"],
  .grade-panel[data-grade-panel="high"] { grid-template-columns: repeat(3,1fr); }
  .grade-panel--elementary { grid-template-columns: repeat(3,1fr); }
  .resource-grid,
  .document-grid { grid-template-columns: repeat(2,1fr); }
  .resource-card { min-height: 300px; }
  .document-card:nth-child(3) { border-left: 0; }
  .document-card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .teacher-card { grid-template-columns: 1fr; gap: 42px; padding: 50px; }
  .trust-grid { gap: 50px; }
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
  .footer__grid > div:last-child { grid-column: 2; }
  .post-list { grid-template-columns: repeat(2,1fr); }
  .single-grid { grid-template-columns: 1fr; }
  .post-sidebar { position: static; grid-template-columns: repeat(2,1fr); }
  .related-card__image { height: 150px; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 80px; }
  .site-container { width: min(calc(100% - 30px),var(--container)); }
  .announcement__inner { justify-content: center; text-align: center; }
  .announcement a,
  .announcement .icon { display: none; }
  .header__inner { min-height: 68px; }
  .brand__mark { width: 44px; height: 44px; }
  .brand__text strong { font-size: .84rem; }
  .brand__text small { display: none; }
  .primary-nav { top: 116px; right: 15px; left: 15px; }
  .admin-bar .primary-nav { top: 162px; }
  .hero__grid { min-height: 0; gap: 42px; padding-top: 50px; padding-bottom: 60px; }
  .hero h1 { font-size: clamp(1.7rem,8.2vw,2.25rem); line-height: 1.08; }
  .hero__lead { margin: 20px 0 24px; font-size: 1rem; }
  .hero-search { grid-template-columns: auto minmax(0,1fr) 52px; gap: 8px; padding: 7px 7px 7px 15px; }
  .hero-search select { grid-column: 1/-1; grid-row: 2; width: 100%; height: 44px; padding: 0 10px; border-top: 1px solid var(--line); border-left: 0; }
  .hero-search button { width: 52px; padding: 0; }
  .hero-search button span { display: none; }
  .hero-search button .icon { display: block; }
  .quick-searches { gap: 8px; }
  .feature-card { padding: 24px 20px; }
  .feature-card::before { top: 22px; bottom: 22px; width: 4px; }
  .feature-card__eyebrow { font-size: .62rem; }
  .hero-sticker { right: -8px; bottom: -24px; width: 74px; height: 74px; font-size: 1.15rem; }
  .section { padding: 62px 0; }
  .elementary-hero { padding: 48px 0 42px; }
  .elementary-hero h1 { font-size: clamp(2.15rem,11vw,3rem); }
  .elementary-hero__lead { margin-top: 17px; font-size: .92rem; }
  .elementary-grades,
  .elementary-latest { padding: 54px 0 62px; }
  .elementary-section-heading { display: block; margin-bottom: 26px; }
  .elementary-section-heading h2 { font-size: 1.55rem; }
  .elementary-section-heading > p { margin-top: 13px; font-size: .88rem; }
  .elementary-latest ul.page-numbers { gap: 7px; margin-top: 30px; }
  .elementary-latest .page-numbers li > a,
  .elementary-latest .page-numbers li > span { min-width: 38px; height: 38px; padding: 0 11px; font-size: .76rem; }
  .navigation.pagination { margin-top: 12px; }
  .navigation.pagination .nav-links { gap: 7px; }
  .navigation.pagination .page-numbers { min-width: 38px; height: 38px; padding: 0 11px; font-size: .76rem; }
  .section-heading { margin-bottom: 30px; }
  .section-heading--split { display: block; }
  .section-heading--split > p { margin-top: 14px; }
  .section-heading h2,
  .trust-grid h2,
  .archive-header h1 { font-size: clamp(2rem,10vw,2.75rem); }
  .grade-tabs {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 6px;
    padding: 6px;
    overflow: visible;
  }
  .grade-tab {
    min-width: 0;
    min-height: 84px;
    flex-direction: column;
    gap: 3px;
    padding: 8px 5px;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
  }
  .grade-tab span { font-size: .78rem; }
  .grade-tab small { font-size: .64rem; }
  .grade-panel,
  .grade-panel[data-grade-panel="secondary"],
  .grade-panel[data-grade-panel="high"] { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .grade-panel--elementary { grid-template-columns: repeat(2,1fr); }
  .grade-card { min-height: 220px; padding: 18px; }
  .grade-card > strong { font-size: 3.1rem; }
  .grade-card > small { font-size: .68rem; }
  .grade-card__link { font-size: .7rem; }
  .resource-grid,
  .document-grid,
  .post-list { grid-template-columns: 1fr; }
  .resource-card { min-height: 280px; }
  .document-grid { border: 0; gap: 12px; }
  .document-card { border: 1px solid var(--line) !important; border-radius: var(--radius-sm); }
  .document-card h3 { min-height: 0; }
  .teacher-section { padding: 10px 0 62px; }
  .teacher-card { gap: 34px; padding: 38px 24px; border-radius: 22px; }
  .teacher-card h2 { font-size: clamp(2rem,10vw,2.75rem); }
  .teacher-card__topics a { padding: 16px; }
  .trust-section { padding-top: 0; }
  .trust-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 52px; }
  .footer__grid { grid-template-columns: repeat(2,1fr); gap: 38px 28px; padding-top: 50px; }
  .footer__brand { grid-column: 1/-1; }
  .footer__grid > div:last-child { grid-column: auto; }
  .footer__bottom { align-items: flex-start; flex-direction: column; justify-content: center; padding-top: 20px; padding-bottom: 20px; }
  .content-layout { padding-top: 54px; padding-bottom: 70px; }
  .single-main { padding: 28px 0 68px; }
  .breadcrumbs { margin-bottom: 20px; }
  .single-header { padding: 32px 24px 28px; }
  .single-header h1 { font-size: clamp(1rem,5vw,1.375rem); }
  .single-content { padding: 31px 24px 40px; font-size: .9rem; }
  .single-content h2 { font-size: 1.15rem; }
  .single-content h3 { font-size: 1rem; }
  .single-tags { padding: 18px 24px; }
  .post-sidebar { grid-template-columns: 1fr; }
  .related-posts { margin-top: 54px; padding-top: 40px; }
  .related-posts__heading { align-items: flex-start; }
  .related-grid { grid-template-columns: 1fr; }
  .related-card { display: grid; grid-template-columns: 130px 1fr; }
  .related-card__image { height: 100%; min-height: 150px; }
  .related-card__body { padding: 20px; }
}

@media (max-width: 390px) {
  .grade-tabs { grid-template-columns: 1fr; }
  .grade-tab {
    min-height: 56px;
    flex-direction: row;
    gap: 8px;
    padding: 8px 12px;
  }
  .grade-tab span { font-size: .9rem; }
  .grade-tab small { font-size: .72rem; }
  .grade-panel,
  .grade-panel[data-grade-panel="secondary"],
  .grade-panel[data-grade-panel="high"] { grid-template-columns: 1fr; }
  .grade-panel--elementary { grid-template-columns: 1fr; }
  .grade-card { min-height: 200px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
  .related-card { grid-template-columns: 1fr; }
  .related-card__image { height: 190px; }
}

/* Homepage H2 headings: 50% of their original scale. */
body.home .feature-card h2 {
  font-size: clamp(.8rem,1.4vw,1.075rem);
}

body.home .section-heading h2,
body.home .trust-grid h2 {
  font-size: clamp(1.125rem,2vw,1.775rem);
}

body.home .grade-explorer .section-heading h2 {
  font-size: clamp(.95rem,1.5vw,1.325rem);
}

body.home .teacher-card h2 {
  font-size: clamp(1.125rem,2vw,1.625rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Elementary archive filters. */
.elementary-filter {
  display: grid;
  grid-template-columns: minmax(120px,.72fr) minmax(190px,1.3fr) minmax(180px,1.2fr) minmax(150px,.9fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 32px;
  padding: 15px;
  background: rgba(255,255,255,.92);
  border: 1px solid #d9e3f1;
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(15,35,65,.07);
}

.elementary-filter__field {
  min-width: 0;
}

.elementary-filter__field label {
  display: block;
  margin: 0 0 6px 3px;
  color: var(--ink);
  font-size: .7rem;
  font-weight: 800;
}

.elementary-filter__field select {
  width: 100%;
  height: 46px;
  padding: 0 36px 0 13px;
  color: #283a53;
  background-color: #f8faff;
  border: 1px solid #cfd9e8;
  border-radius: 10px;
  font-size: .79rem;
  outline: 0;
  cursor: pointer;
}

.elementary-filter__field select:focus {
  background-color: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20,86,217,.12);
}

.elementary-filter__submit {
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 10px;
  font-size: .78rem;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.elementary-filter__submit:hover {
  background: #0f47b7;
  box-shadow: 0 8px 18px rgba(20,86,217,.2);
  transform: translateY(-1px);
}

.elementary-filter__submit .icon {
  width: 17px;
  height: 17px;
}

@media (max-width: 900px) {
  .elementary-filter {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .elementary-filter__submit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .elementary-filter {
    grid-template-columns: 1fr;
    gap: 11px;
    margin-top: 25px;
    padding: 13px;
  }

  .elementary-filter__submit {
    grid-column: auto;
  }
}
