:root {
  color-scheme: light;
  --ink: #18201e;
  --muted: #5e6966;
  --line: #dce2df;
  --paper: #ffffff;
  --soft: #f4f6f5;
  --charcoal: #151a19;
  --red: #d74732;
  --red-dark: #b93222;
  --green: #176b5a;
  --yellow: #f2c94c;
  --shell: 1180px;
  --radius: 8px;
  --shadow: 0 16px 38px rgba(15, 24, 21, 0.09);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui,
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(242, 201, 76, 0.95);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--charcoal);
  background: var(--yellow);
  border-radius: 4px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: absolute;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.site-header.is-scrolled {
  position: fixed;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 26px rgba(15, 24, 21, 0.08);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 76px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: var(--red);
  border-radius: 6px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
}

.brand strong {
  font-size: 18px;
  line-height: 1.2;
}

.brand small {
  margin-top: 3px;
  color: currentColor;
  font-size: 11px;
  opacity: 0.72;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 650;
}

.main-nav a,
.header-phone {
  transition: color 160ms ease, opacity 160ms ease;
}

.main-nav a:hover,
.header-phone:hover {
  color: var(--yellow);
}

.generated-mobile-menu {
  display: none;
}

.is-scrolled .main-nav a:hover,
.is-scrolled .header-phone:hover {
  color: var(--red-dark);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 750;
}

.header-phone svg {
  width: 18px;
  height: 18px;
}

.icon-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 6px;
  cursor: pointer;
}

.icon-button svg {
  width: 21px;
  height: 21px;
}

.hero {
  position: relative;
  display: flex;
  height: min(760px, 82svh);
  min-height: 560px;
  align-items: stretch;
  overflow: hidden;
  color: #fff;
  background: #202725;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  object-position: center 42%;
}

.hero-shade {
  background: rgba(10, 17, 15, 0.58);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding-top: 86px;
}

.hero-copy {
  width: min(700px, 100%);
  padding-block: 44px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.eyebrow svg {
  width: 17px;
  height: 17px;
  color: var(--yellow);
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-title {
  margin: 15px 0 0;
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.35;
}

.hero-subtitle {
  max-width: 650px;
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg,
.text-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.button-primary {
  color: #fff;
  background: var(--red);
}

.button-primary:hover {
  background: var(--red-dark);
}

.button-secondary {
  color: #fff;
  background: rgba(0, 0, 0, 0.16);
  border-color: rgba(255, 255, 255, 0.65);
}

.button-secondary:hover {
  background: rgba(0, 0, 0, 0.38);
  border-color: #fff;
}

.button-dark {
  color: #fff;
  background: var(--charcoal);
}

.button-dark:hover {
  background: #2d3532;
}

.hero-stats {
  display: grid;
  width: min(620px, 100%);
  grid-template-columns: repeat(3, 1fr);
  margin: 34px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
}

.hero-stats div {
  padding-right: 22px;
}

.hero-stats div + div {
  padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-stats dt {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.hero-stats dd {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.quick-find {
  color: #fff;
  background: var(--green);
}

.quick-find-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 96px;
  gap: 34px;
}

.quick-find .section-kicker {
  margin-bottom: 1px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 11px;
}

.quick-find strong {
  font-size: 20px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-links a {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 650;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.quick-links a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-size: 14px;
  font-weight: 750;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.section {
  padding: 92px 0;
}

.section-heading {
  margin-bottom: 38px;
}

.section-heading h2,
.topic-heading h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 820;
  line-height: 1.2;
  letter-spacing: 0;
}

.section-heading > p,
.split-heading > p,
.topic-heading > p {
  color: var(--muted);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: 70px;
}

.split-heading > p {
  margin: 0 0 3px;
}

.centered-heading {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.centered-heading > p:last-child {
  margin: 14px auto 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px;
  color: var(--muted);
  background: var(--soft);
  border: 1px dashed #bdc7c3;
  border-radius: 6px;
  text-align: center;
}

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

.service-card:hover {
  border-color: #aeb9b5;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.service-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--red);
  content: "";
}

.service-card:nth-child(2)::after {
  background: var(--green);
}

.service-card:nth-child(3)::after {
  background: var(--yellow);
}

.service-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--red-dark);
  background: #fff2ef;
  border-radius: 6px;
}

.service-card:nth-child(2) .service-icon {
  color: var(--green);
  background: #eaf5f2;
}

.service-card:nth-child(3) .service-icon {
  color: #725b05;
  background: #fff8d9;
}

.service-icon svg {
  width: 25px;
  height: 25px;
}

.service-card h3 {
  margin: 24px 0 10px;
  font-size: 23px;
  line-height: 1.25;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.service-tags span {
  padding: 5px 8px;
  color: #4e5956;
  background: var(--soft);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 650;
}

.service-card .text-link {
  position: absolute;
  right: 28px;
  bottom: 26px;
  left: 28px;
  justify-content: space-between;
  color: var(--red-dark);
}

.process-section {
  background: var(--soft);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-item {
  position: relative;
  padding: 0 26px;
  text-align: center;
}

.process-item + .process-item::before {
  position: absolute;
  top: 27px;
  left: -25%;
  width: 50%;
  height: 1px;
  background: #bdc7c3;
  content: "";
}

.process-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto;
  place-items: center;
  color: #fff;
  background: var(--charcoal);
  border: 6px solid var(--soft);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
}

.process-item h3 {
  margin: 20px 0 7px;
  font-size: 18px;
}

.process-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cities-section {
  color: #fff;
  background: #27302d;
}

.city-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 76px;
}

.city-copy .section-kicker,
.light-kicker {
  color: var(--yellow);
}

.city-copy h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.2;
}

.city-copy > p:not(.section-kicker) {
  margin: 18px 0 26px;
  color: rgba(255, 255, 255, 0.73);
}

.city-copy .button-dark {
  color: var(--charcoal);
  background: #fff;
}

.city-copy .button-dark:hover {
  background: var(--yellow);
}

.city-directory {
  padding: 28px;
  color: var(--ink);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.city-directory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.city-directory-head span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.city-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.city-link {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 650;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.city-link:hover,
.city-link.is-active {
  background: #fff;
  border-color: var(--red);
}

.city-link.is-active {
  color: var(--red-dark);
}

.city-link svg {
  width: 14px;
  height: 14px;
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.teacher-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  min-height: 218px;
  align-content: start;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.teacher-avatar {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 850;
}

.teacher-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-card:nth-child(2) .teacher-avatar {
  background: var(--red);
}

.teacher-card:nth-child(3) .teacher-avatar {
  color: var(--charcoal);
  background: var(--yellow);
}

.teacher-info {
  min-width: 0;
}

.teacher-badge {
  display: inline-flex;
  margin-bottom: 5px;
  padding: 3px 6px;
  color: var(--green);
  background: #eaf5f2;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 750;
}

.teacher-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
}

.teacher-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.teacher-meta {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 7px;
  margin-top: 2px;
}

.teacher-meta span {
  color: #53605c;
  font-size: 12px;
  font-weight: 650;
}

.teacher-meta span + span::before {
  margin-right: 7px;
  color: #a8b2ae;
  content: "·";
}

.claims-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.claim-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: start;
  gap: 10px;
  padding: 16px;
  color: #42504c;
  background: var(--soft);
  border-radius: 6px;
  font-size: 13px;
}

.claim-item svg {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--green);
}

.claim-item p {
  margin: 0;
}

.faq-section {
  background: var(--soft);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: 80px;
}

.faq-heading {
  position: sticky;
  top: 112px;
  margin: 0;
}

.faq-heading > p:last-of-type {
  margin: 16px 0 22px;
}

.strong-link {
  color: var(--red-dark);
}

.faq-list {
  border-top: 1px solid #cbd3d0;
}

.faq-item {
  border-bottom: 1px solid #cbd3d0;
}

.faq-item summary {
  position: relative;
  padding: 22px 48px 22px 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 760;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 24px;
  right: 5px;
  width: 22px;
  height: 22px;
  color: var(--green);
  content: "+";
  font-size: 24px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  max-width: 720px;
  padding: 0 48px 22px 0;
  color: var(--muted);
}

.faq-answer p {
  margin: 0;
}

.article-section {
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.article-hub-heading {
  margin-bottom: 30px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.article-card {
  display: flex;
  min-height: 310px;
  padding: 22px;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
}

.article-card-meta,
.article-meta,
.article-related {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.article-card-meta span,
.article-meta span,
.article-query-badge,
.article-role {
  display: inline-flex;
  min-height: 26px;
  padding: 3px 9px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.article-role.primary,
.article-query-badge {
  color: #0d5c4d;
  background: #e8f3ef;
  border-color: #bcd8cf;
}

.article-card h3 {
  margin: 18px 0 10px;
  font-size: 22px;
  line-height: 1.4;
}

.article-card > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.article-card-query {
  display: flex;
  margin-top: auto;
  padding-top: 14px;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  border-top: 1px solid var(--line);
}

.article-card-query svg {
  width: 15px;
  height: 15px;
  color: var(--green);
}

.article-card .text-link {
  margin-top: 14px;
}

.topic-links a.has-article {
  color: #0d5c4d;
  background: #e8f3ef;
  border-color: #bcd8cf;
}

.article-detail {
  width: min(100%, 900px);
  margin: 0 auto;
}

.article-breadcrumb {
  display: flex;
  margin-bottom: 30px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.article-breadcrumb svg {
  width: 15px;
  height: 15px;
}

.article-detail-head {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.article-detail-head h1 {
  max-width: 820px;
  margin: 18px 0 14px;
  font-size: 48px;
  line-height: 1.2;
}

.article-detail-head > p {
  max-width: 760px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 18px;
}

.article-body {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 44px 0;
  color: #26312e;
  font-size: 17px;
  line-height: 1.9;
}

.article-body h2 {
  margin: 46px 0 16px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.35;
}

.article-body h3.article-question {
  margin: 34px 0 10px;
  font-size: 18px;
}

.article-body p {
  margin: 0 0 22px;
}

.article-answer {
  padding: 16px 18px;
  background: var(--soft);
  border-left: 3px solid var(--green);
}

.article-figure {
  margin: 34px 0;
}

.article-figure img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: var(--soft);
  border-radius: var(--radius);
}

.article-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.article-sources {
  width: min(100%, 760px);
  margin: 0 auto 28px;
  padding: 20px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.article-sources h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.article-sources p {
  margin: 0;
  color: var(--muted);
}

.article-related {
  width: min(100%, 760px);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-related a {
  padding: 7px 10px;
  font-size: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.article-related-label {
  flex-basis: 100%;
  margin-top: 8px;
  color: var(--ink);
  font-size: 13px;
}

body.article-view main > section:not(.article-section) {
  display: none;
}

body.article-view .article-section {
  min-height: 75vh;
  padding-top: 140px;
}

.topic-section {
  padding: 58px 0;
  border-top: 1px solid var(--line);
}

.topic-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
}

.topic-heading h2 {
  font-size: 28px;
}

.topic-heading > p {
  margin: 0 0 3px;
  font-size: 14px;
}

.topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 25px;
}

.topic-links a {
  padding: 8px 11px;
  color: #3e4a46;
  background: #fff;
  border: 1px solid #cfd7d4;
  border-radius: 4px;
  font-size: 13px;
  transition: border-color 150ms ease, color 150ms ease;
}

.topic-links a:hover {
  color: var(--red-dark);
  border-color: var(--red);
}

.contact-section {
  padding: 68px 0;
  color: #fff;
  background: var(--red-dark);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 70px;
}

.contact-section h2 {
  max-width: 720px;
}

.contact-section p:not(.section-kicker) {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.contact-phone {
  position: relative;
  display: block;
  min-width: 280px;
  padding: 19px 58px 19px 20px;
  color: var(--charcoal);
  background: #fff;
  border-radius: 6px;
  transition: transform 160ms ease, background-color 160ms ease;
}

.contact-phone:hover {
  background: var(--yellow);
  transform: translateY(-2px);
}

.contact-phone span,
.contact-phone strong {
  display: block;
}

.contact-phone span {
  color: var(--muted);
  font-size: 12px;
}

.contact-phone strong {
  margin-top: 2px;
  font-size: 24px;
  line-height: 1.2;
}

.contact-phone svg {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
}

.generated-contact-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.contact-qr,
.footer-qr {
  margin: 0;
}

.contact-qr {
  padding: 10px;
  color: var(--charcoal);
  text-align: center;
  background: #fff;
  border-radius: 6px;
}

.contact-qr img,
.footer-qr img {
  display: block;
  object-fit: contain;
  background: #fff;
}

.contact-qr figcaption,
.footer-qr figcaption {
  margin-top: 7px;
  font-size: 12px;
  font-weight: 700;
}

.site-footer {
  color: rgba(255, 255, 255, 0.76);
  background: var(--charcoal);
}

.generated-footer {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) repeat(2, minmax(150px, 0.55fr));
  gap: 54px;
  padding: 58px 0 44px;
}

.generated-footer > div > p {
  max-width: 340px;
  margin: 18px 0 12px;
  font-size: 14px;
}

.generated-footer nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.generated-footer nav h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 14px;
}

.generated-footer nav a {
  width: fit-content;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.generated-footer nav a:hover {
  color: #fff;
}

.footer-qr {
  width: fit-content;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
}

.footer-qr img {
  width: 112px;
  height: 112px;
  padding: 5px;
  border-radius: 4px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  gap: 80px;
  padding: 66px 0 48px;
}

.footer-brand-lockup {
  color: #fff;
}

.footer-brand > p {
  max-width: 330px;
  margin: 18px 0 13px;
  font-size: 14px;
}

.footer-call {
  color: #fff;
  font-size: 21px;
  font-weight: 800;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.footer-links h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 14px;
}

.footer-links div div {
  display: grid;
  gap: 8px;
}

.footer-links a {
  width: fit-content;
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 12px;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 1000px) {
  .header-inner {
    grid-template-columns: auto auto 1fr;
  }

  .menu-button {
    display: grid;
    grid-column: 3;
    justify-self: end;
  }

  .header-phone {
    grid-column: 2;
    grid-row: 1;
  }

  .main-nav {
    position: fixed;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 14px 20px 22px;
    color: var(--ink);
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(15, 24, 21, 0.12);
  }

  .generated-mobile-menu {
    position: relative;
    display: block;
    grid-column: 3;
    justify-self: end;
  }

  .generated-mobile-menu summary {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    cursor: pointer;
    list-style: none;
  }

  .generated-mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .generated-mobile-menu summary span {
    font-size: 24px;
    line-height: 1;
  }

  .generated-mobile-menu nav {
    position: fixed;
    top: 76px;
    right: 0;
    left: 0;
    display: grid;
    padding: 14px 20px 22px;
    color: var(--ink);
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(15, 24, 21, 0.12);
  }

  .generated-mobile-menu nav a {
    padding: 11px 4px;
    border-bottom: 1px solid var(--line);
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a {
    padding: 11px 4px;
    border-bottom: 1px solid var(--line);
  }

  .service-card {
    min-height: 370px;
  }

  .city-layout {
    grid-template-columns: 0.7fr 1.3fr;
    gap: 38px;
  }

  .city-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .teacher-card {
    grid-template-columns: 58px 1fr;
    padding: 20px;
  }

  .teacher-avatar {
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 780px) {
  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
    min-height: 68px;
    gap: 12px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 19px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    display: none;
  }

  .header-phone {
    grid-column: 2;
    justify-self: end;
  }

  .header-phone span {
    display: none;
  }

  .menu-button {
    grid-column: 3;
  }

  .main-nav {
    top: 68px;
  }

  .hero {
    height: min(700px, 82svh);
    min-height: 540px;
  }

  .hero-inner {
    padding-top: 70px;
  }

  .hero-copy {
    padding-block: 34px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 60px);
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-subtitle {
    max-width: 580px;
    font-size: 15px;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-stats {
    margin-top: 26px;
    padding-top: 16px;
  }

  .hero-stats div,
  .hero-stats div + div {
    padding-inline: 10px;
  }

  .hero-stats div:first-child {
    padding-left: 0;
  }

  .hero-stats dt {
    font-size: 10px;
  }

  .hero-stats dd {
    font-size: 16px;
  }

  .quick-find-inner {
    grid-template-columns: auto 1fr;
    min-height: 88px;
    gap: 18px;
  }

  .quick-links {
    justify-content: flex-end;
  }

  .quick-find .text-link {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

  .split-heading,
  .faq-layout,
  .contact-inner,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .split-heading,
  .faq-layout {
    gap: 18px;
  }

  .service-grid,
  .teacher-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 315px;
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 10px;
  }

  .process-item + .process-item::before {
    display: none;
  }

  .city-layout {
    grid-template-columns: 1fr;
  }

  .city-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .claims-row {
    grid-template-columns: 1fr;
  }

  .faq-heading {
    position: static;
    margin-bottom: 20px;
  }

  .topic-heading {
    display: block;
  }

  .topic-heading > p {
    margin-top: 10px;
  }

  .contact-inner {
    gap: 28px;
  }

  .generated-contact-actions {
    justify-content: flex-start;
  }

  .contact-phone {
    width: min(100%, 360px);
  }

  .footer-main {
    gap: 44px;
  }

  .generated-footer {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }

  .generated-footer > div {
    grid-column: 1 / -1;
  }

  .footer-links {
    gap: 20px;
  }
}

@media (max-width: 560px) {
  .hero {
    height: min(670px, 84svh);
    min-height: 530px;
  }

  .hero-media {
    object-position: 58% center;
  }

  .hero-shade {
    background: rgba(8, 15, 13, 0.65);
  }

  .eyebrow {
    margin-bottom: 8px;
  }

  .hero-title {
    margin-top: 10px;
  }

  .hero-subtitle {
    margin-top: 10px;
    line-height: 1.58;
  }

  .hero-actions {
    gap: 9px;
  }

  .button {
    min-height: 45px;
    padding: 10px 14px;
    font-size: 14px;
  }

  .hero-stats {
    width: 100%;
  }

  .quick-find-inner {
    display: block;
    padding-block: 18px;
  }

  .quick-links {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .section {
    padding: 60px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading h2,
  .contact-section h2 {
    font-size: 30px;
  }

  .service-card {
    min-height: 330px;
    padding: 22px;
  }

  .service-card .text-link {
    right: 22px;
    bottom: 22px;
    left: 22px;
  }

  .process-list {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .process-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    padding: 0;
    text-align: left;
  }

  .process-number {
    width: 48px;
    height: 48px;
    grid-row: 1 / 3;
    margin: 0;
  }

  .process-item h3 {
    margin: 0 0 4px;
  }

  .city-layout {
    gap: 30px;
  }

  .city-directory {
    padding: 18px;
  }

  .city-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-card {
    min-height: 0;
  }

  .faq-item summary {
    padding-block: 18px;
    font-size: 16px;
  }

  .faq-item summary::after {
    top: 20px;
  }

  .topic-section {
    padding: 48px 0;
  }

  .contact-section {
    padding: 54px 0;
  }

  .contact-phone {
    min-width: 0;
  }

  .generated-contact-actions {
    display: grid;
    justify-items: start;
  }

  .contact-qr img {
    width: 128px;
    height: 128px;
  }

  .generated-footer {
    grid-template-columns: 1fr;
  }

  .generated-footer > div {
    grid-column: auto;
  }

  .footer-main {
    padding-top: 52px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links > div:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom p + p {
    margin-top: 6px;
  }
}

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

@media (max-width: 640px) {
  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-card {
    min-height: 0;
  }

  .article-detail-head h1 {
    font-size: 34px;
  }

  .article-detail-head > p,
  .article-body {
    font-size: 16px;
  }

  .article-body h2 {
    font-size: 23px;
  }

  body.article-view .article-section {
    padding-top: 105px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.is-admin-preview .preview-focus-target {
  outline: 3px solid #1f7a55;
  outline-offset: 5px;
  animation: preview-focus-pulse 900ms ease-in-out 2;
}

@keyframes preview-focus-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31, 122, 85, 0); }
  50% { box-shadow: 0 0 0 8px rgba(31, 122, 85, 0.18); }
}
