/*
Theme Name: School 2051
Theme URI: https://example.local/school-2051
Author: Codex
Author URI: https://example.local
Description: A bright school portal theme with students, teachers and polls sections.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: school-2051
*/

:root {
  --school-ink: #f8fbff;
  --school-muted: rgba(248, 251, 255, 0.76);
  --school-navy: #071224;
  --school-surface: rgba(8, 18, 34, 0.72);
  --school-surface-strong: rgba(7, 18, 36, 0.92);
  --school-card: #ffffff;
  --school-card-muted: #eef4ff;
  --school-line: rgba(255, 255, 255, 0.18);
  --school-blue: #0d5bff;
  --school-cyan: #00bfd8;
  --school-green: #80d611;
  --school-red: #ff312d;
  --school-yellow: #ffc900;
  --school-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --school-radius: 8px;
  --school-header-height: 78px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--school-ink);
  background: var(--school-navy);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body.admin-bar .site-header {
  top: 32px;
}

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

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

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

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-main,
.hero__content,
.portal-panel,
.tab-card,
.record-card,
.poll-card,
.student-card,
.profile-summary,
.profile-main,
.profile-section,
.account-form,
.search-panel {
  min-width: 0;
}

.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: 9999;
  top: 16px;
  left: 16px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  color: #071224;
  background: #ffffff;
  border-radius: var(--school-radius);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  min-height: var(--school-header-height);
  border-bottom: 1px solid var(--school-line);
  background: rgba(5, 13, 27, 0.76);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  position: relative;
  display: flex;
  min-height: var(--school-header-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand__logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand__name {
  color: #ffffff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.brand__caption {
  color: var(--school-muted);
  font-size: 12px;
  line-height: 1.3;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 1px solid var(--school-line);
  border-radius: var(--school-radius);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  content: "";
}

.nav-toggle__icon {
  position: relative;
  transition: background 160ms ease;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  position: absolute;
  left: 0;
}

.nav-toggle__icon::before {
  top: -6px;
  transition: transform 160ms ease, top 160ms ease;
}

.nav-toggle__icon::after {
  top: 6px;
  transition: transform 160ms ease, top 160ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.primary-nav {
  display: flex;
  align-items: center;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid transparent;
  border-radius: var(--school-radius);
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus,
.primary-nav .current-menu-item > a,
.primary-nav a.is-current {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.11);
}

.site-main {
  min-height: calc(100vh - var(--school-header-height));
}

.hero {
  position: relative;
  display: grid;
  min-height: 78vh;
  overflow: hidden;
  align-items: center;
  padding: 88px 0 74px;
  isolation: isolate;
  background-color: #061021;
  background-image:
    linear-gradient(90deg, rgba(4, 10, 22, 0.92) 0%, rgba(4, 10, 22, 0.62) 46%, rgba(4, 10, 22, 0.3) 100%),
    url("assets/images/home-background.png");
  background-position: center;
  background-size: cover;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 42%;
  background: linear-gradient(180deg, rgba(7, 18, 36, 0) 0%, rgba(7, 18, 36, 0.92) 100%);
  content: "";
}

.hero__grid {
  display: grid;
  align-items: center;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) 380px;
}

.hero__content {
  display: grid;
  gap: 24px;
  max-width: 700px;
}

.eyebrow {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 800;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--school-green);
  box-shadow: 0 0 18px rgba(128, 214, 17, 0.8);
  content: "";
}

.hero__logo {
  width: min(430px, 82vw);
  filter: drop-shadow(0 22px 48px rgba(13, 91, 255, 0.32));
}

.hero h1,
.page-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: 88px;
  font-weight: 900;
  line-height: 0.94;
  overflow-wrap: anywhere;
}

.hero__lead {
  max-width: 610px;
  margin: 0;
  color: rgba(248, 251, 255, 0.8);
  font-size: 22px;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--school-radius);
  font-weight: 800;
  text-align: center;
  touch-action: manipulation;
  overflow-wrap: anywhere;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button--primary {
  color: #061021;
  border-color: transparent;
  background: #ffffff;
}

.button--ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.portal-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--school-line);
  border-radius: var(--school-radius);
  background: rgba(7, 18, 36, 0.58);
  box-shadow: var(--school-shadow);
  backdrop-filter: blur(18px);
}

.portal-panel__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #ffffff;
  font-weight: 900;
}

.portal-panel__title span:last-child {
  color: var(--school-muted);
  font-size: 13px;
  font-weight: 700;
}

.portal-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--school-radius);
  background: rgba(255, 255, 255, 0.09);
}

.portal-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.portal-card__name {
  font-weight: 900;
}

.portal-card__mark {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 50%;
}

.portal-card__mark--green {
  background: var(--school-green);
}

.portal-card__mark--blue {
  background: var(--school-cyan);
}

.portal-card__mark--yellow {
  background: var(--school-yellow);
}

.portal-card p {
  margin: 0;
  color: var(--school-muted);
  font-size: 14px;
  line-height: 1.5;
}

.section {
  padding: 72px 0;
}

.section--light {
  color: #101b2d;
  background: #f4f7fc;
}

.section--dark {
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 191, 216, 0.16), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(255, 49, 45, 0.16), transparent 30%),
    #071224;
}

.section__heading {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin-bottom: 32px;
}

.section__heading h2 {
  margin: 0;
  font-size: 52px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.section__heading p {
  margin: 0;
  color: #526179;
  font-size: 17px;
  line-height: 1.6;
}

.section--dark .section__heading p {
  color: var(--school-muted);
}

.tabs-grid,
.records-grid,
.poll-grid {
  display: grid;
  gap: 18px;
}

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

.tab-card,
.record-card,
.poll-card,
.empty-state {
  border-radius: var(--school-radius);
}

.tab-card {
  display: grid;
  min-height: 230px;
  gap: 18px;
  align-content: space-between;
  padding: 24px;
  color: #101b2d;
  border: 1px solid #dbe5f3;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(36, 54, 84, 0.08);
}

.tab-card__icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #071224;
  border-radius: var(--school-radius);
  font-size: 22px;
  font-weight: 900;
}

.tab-card:nth-child(1) .tab-card__icon {
  background: rgba(128, 214, 17, 0.22);
}

.tab-card:nth-child(2) .tab-card__icon {
  background: rgba(0, 191, 216, 0.2);
}

.tab-card:nth-child(3) .tab-card__icon {
  background: rgba(255, 201, 0, 0.28);
}

.tab-card:nth-child(4) .tab-card__icon {
  background: rgba(255, 49, 45, 0.18);
}

.tab-card h3,
.record-card h3,
.poll-card h3 {
  margin: 0;
  color: inherit;
  font-size: 22px;
  overflow-wrap: anywhere;
}

.tab-card p,
.record-card p,
.poll-card p,
.empty-state p {
  margin: 0;
  color: #526179;
  line-height: 1.6;
}

.tab-card__link {
  display: inline-flex;
  width: max-content;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  color: #071224;
  border: 1px solid #d8e3f4;
  border-radius: var(--school-radius);
  font-weight: 900;
}

.page-hero {
  padding: 72px 0 64px;
  background:
    linear-gradient(90deg, rgba(4, 10, 22, 0.94), rgba(4, 10, 22, 0.68)),
    url("assets/images/home-background.png");
  background-position: center;
  background-size: cover;
}

.page-hero__content {
  display: grid;
  max-width: 820px;
  gap: 18px;
}

.page-hero p {
  max-width: 700px;
  margin: 0;
  color: var(--school-muted);
  font-size: 18px;
  line-height: 1.6;
}

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

.record-card,
.poll-card,
.empty-state {
  padding: 24px;
  color: #101b2d;
  border: 1px solid #dbe5f3;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(36, 54, 84, 0.08);
}

.record-card {
  display: grid;
  gap: 14px;
}

.record-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  color: #1f3150;
  border-radius: 999px;
  background: #e8f0ff;
  font-size: 13px;
  font-weight: 800;
}

.empty-state {
  display: grid;
  min-height: 230px;
  gap: 12px;
  place-items: center;
  text-align: center;
}

.empty-state h2 {
  margin: 0;
  font-size: 44px;
  overflow-wrap: anywhere;
}

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

.poll-card {
  display: grid;
  gap: 16px;
}

.poll-options {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.poll-option {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 12px;
  border: 1px solid #dbe5f3;
  border-radius: var(--school-radius);
  background: #f8fbff;
  color: #1f3150;
  font-weight: 800;
}

.poll-option span:last-child {
  color: #63738f;
  font-size: 13px;
}

.narrow-container {
  width: min(720px, calc(100% - 32px));
}

.button--dark {
  color: #071224;
  border-color: #d8e3f4;
  background: #ffffff;
}

.button--primary.button--dark {
  color: #ffffff;
  border-color: transparent;
  background: var(--school-blue);
}

.button[disabled] {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.account-form,
.search-panel,
.student-card,
.profile-summary,
.profile-main,
.profile-section,
.notice {
  color: #101b2d;
  border: 1px solid #dbe5f3;
  border-radius: var(--school-radius);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(36, 54, 84, 0.08);
}

.account-form,
.search-panel,
.student-card,
.profile-summary,
.profile-section {
  padding: 24px;
}

.account-form {
  display: grid;
  gap: 12px;
}

.form-label {
  color: #1f3150;
  font-size: 14px;
  font-weight: 900;
}

.form-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: #101b2d;
  border: 1px solid #cfdced;
  border-radius: var(--school-radius);
  background: #f8fbff;
  outline: none;
}

.form-input:focus {
  border-color: var(--school-blue);
  box-shadow: 0 0 0 3px rgba(13, 91, 255, 0.14);
}

.form-textarea {
  min-height: 120px;
  padding-top: 12px;
  resize: vertical;
}

.search-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.search-panel__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

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

.student-card {
  display: grid;
  gap: 16px;
}

.student-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.student-card h3,
.profile-summary h2,
.profile-section h2 {
  margin: 0;
  color: #101b2d;
}

.student-card__head p,
.profile-summary p,
.muted-text {
  margin: 0;
  color: #63738f;
  line-height: 1.55;
}

.student-card form {
  margin: 0;
}

.student-card .button,
.account-form .button,
.search-panel .button,
.mini-list .button {
  width: max-content;
}

.student-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  place-items: center;
  color: #ffffff;
  border-radius: var(--school-radius);
  background:
    linear-gradient(135deg, rgba(0, 191, 216, 0.95), rgba(13, 91, 255, 0.95)),
    #0d5bff;
  font-size: 22px;
  font-weight: 900;
}

.student-avatar--large {
  width: 92px;
  height: 92px;
  font-size: 38px;
}

.notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  font-weight: 800;
}

.notice--success {
  border-color: rgba(128, 214, 17, 0.42);
  background: #f4ffe7;
}

.notice--error {
  border-color: rgba(255, 49, 45, 0.35);
  background: #fff0f0;
}

.profile-layout {
  display: grid;
  align-items: start;
  gap: 18px;
  grid-template-columns: 320px minmax(0, 1fr);
}

.profile-summary {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.profile-main {
  display: grid;
  gap: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.profile-section {
  display: grid;
  gap: 14px;
}

.mini-list {
  display: grid;
  gap: 10px;
}

.mini-list__item {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid #dbe5f3;
  border-radius: var(--school-radius);
  background: #f8fbff;
  font-weight: 900;
}

.mini-list__item form {
  margin: 0;
}

.chat-shell {
  display: grid;
  gap: 16px;
  color: #101b2d;
}

.chat-messages {
  display: grid;
  max-height: 560px;
  min-height: 420px;
  gap: 12px;
  overflow-y: auto;
  padding: 18px;
  border: 1px solid #dbe5f3;
  border-radius: var(--school-radius);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(36, 54, 84, 0.08);
  scroll-behavior: smooth;
}

.chat-message {
  display: grid;
  width: min(74%, 720px);
  gap: 8px;
  justify-self: start;
  padding: 14px 16px;
  border: 1px solid #dbe5f3;
  border-radius: var(--school-radius);
  background: #f8fbff;
}

.chat-message--mine {
  justify-self: end;
  color: #ffffff;
  border-color: transparent;
  background: var(--school-blue);
}

.chat-message__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
}

.chat-message__meta span {
  color: #63738f;
  font-weight: 700;
}

.chat-message--mine .chat-message__meta span {
  color: rgba(255, 255, 255, 0.72);
}

.chat-message p,
.chat-empty,
.chat-status {
  margin: 0;
  line-height: 1.55;
}

.chat-message p {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.chat-empty {
  place-self: center;
  color: #63738f;
  font-weight: 800;
}

.chat-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #dbe5f3;
  border-radius: var(--school-radius);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(36, 54, 84, 0.08);
}

.chat-form__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chat-status {
  color: #526179;
  font-weight: 800;
}

.chat-status.is-error {
  color: var(--school-red);
}

.site-footer {
  color: rgba(248, 251, 255, 0.7);
  border-top: 1px solid var(--school-line);
  background: #050d1b;
}

.site-footer__inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.site-footer strong {
  color: #ffffff;
}

.wp-block-image img {
  border-radius: var(--school-radius);
}

.entry-content {
  color: #101b2d;
  background: #f4f7fc;
}

.entry-content > * {
  width: min(900px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 1100px) {
  .primary-nav ul {
    gap: 4px;
  }

  .primary-nav a {
    padding: 0 12px;
    font-size: 14px;
  }

  .hero {
    padding: 76px 0 68px;
  }

  .hero__grid {
    gap: 34px;
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 72px;
  }

  .hero__lead {
    font-size: 20px;
  }

  .section__heading h2 {
    font-size: 44px;
  }

  .empty-state h2 {
    font-size: 38px;
  }
}

@media (max-width: 980px) {
  .hero__grid,
  .tabs-grid,
  .records-grid,
  .poll-grid,
  .students-grid,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .portal-panel {
    max-width: 520px;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    right: 0;
    left: 0;
    top: calc(100% + 8px);
    display: none;
    max-height: calc(100vh - var(--school-header-height) - 24px);
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--school-line);
    border-radius: var(--school-radius);
    background: var(--school-surface-strong);
    box-shadow: var(--school-shadow);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    display: grid;
    gap: 6px;
  }

  .primary-nav a {
    width: 100%;
    min-height: 50px;
    justify-content: flex-start;
    padding: 0 14px;
    font-size: 15px;
  }
}

@media (max-width: 760px) {
  :root {
    --school-header-height: 70px;
  }

  body.admin-bar .site-header {
    top: 46px;
  }

  .container {
    width: min(100% - 24px, 1160px);
  }

  .brand__logo {
    width: 50px;
    height: 50px;
  }

  .brand__caption {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    right: 12px;
    left: 12px;
    top: calc(100% + 8px);
    display: none;
    padding: 12px;
    border: 1px solid var(--school-line);
    border-radius: var(--school-radius);
    background: var(--school-surface-strong);
    box-shadow: var(--school-shadow);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    display: grid;
    gap: 6px;
  }

  .primary-nav a {
    justify-content: flex-start;
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding: 56px 0 64px;
  }

  .hero__content {
    gap: 18px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 50px;
  }

  .hero__lead {
    font-size: 17px;
  }

  .hero__actions {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .student-card .button,
  .account-form .button,
  .search-panel .button,
  .mini-list .button {
    width: 100%;
  }

  .search-panel__row,
  .mini-list__item {
    grid-template-columns: 1fr;
  }

  .mini-list__item {
    display: grid;
  }

  .section {
    padding: 54px 0;
  }

  .page-hero {
    padding: 54px 0 48px;
  }

  .page-hero p,
  .section__heading p {
    font-size: 16px;
  }

  .section__heading h2 {
    font-size: 36px;
  }

  .empty-state h2 {
    font-size: 32px;
  }

  .site-footer__inner {
    display: grid;
  }
}

@media (max-width: 420px) {
  :root {
    --school-header-height: 64px;
  }

  .container,
  .narrow-container {
    width: min(100% - 20px, 1160px);
  }

  .site-header__inner {
    gap: 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand__logo {
    width: 44px;
    height: 44px;
  }

  .brand__name {
    font-size: 17px;
  }

  .nav-toggle {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .hero {
    padding: 42px 0 48px;
    background-position: center top;
  }

  .hero__content {
    gap: 16px;
  }

  .hero__logo {
    width: min(280px, 78vw);
  }

  .hero h1,
  .page-hero h1 {
    font-size: 40px;
    line-height: 1;
  }

  .hero__lead {
    font-size: 16px;
    line-height: 1.5;
  }

  .eyebrow {
    max-width: 100%;
    white-space: normal;
  }

  .portal-panel,
  .tab-card,
  .record-card,
  .poll-card,
  .empty-state,
  .account-form,
  .search-panel,
  .student-card,
  .profile-summary,
  .profile-section,
  .chat-messages,
  .chat-form {
    padding: 18px;
  }

  .section {
    padding: 44px 0;
  }

  .page-hero {
    padding: 44px 0 40px;
  }

  .section__heading {
    margin-bottom: 22px;
  }

  .section__heading h2 {
    font-size: 30px;
  }

  .tab-card h3,
  .record-card h3,
  .poll-card h3 {
    font-size: 20px;
  }

  .empty-state h2 {
    font-size: 28px;
  }

  .form-input {
    min-height: 50px;
  }

  .chat-messages {
    min-height: 360px;
    max-height: 62vh;
  }

  .chat-message {
    width: 100%;
  }

  .chat-form__actions {
    display: grid;
  }

  .site-footer__inner {
    gap: 10px;
  }
}

@media (hover: none) {
  .button:hover,
  .button:focus {
    transform: none;
  }
}

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