/* McKay Aero — landing page */
:root {
  --primary: #38B6FE;
  --black: #000000;
  --light-gray: #D8D8D8;
  --cyan: #00ECEC;
  --white: #ffffff;
  --off-white: #f5f7fa;
  --text: #1a1a1a;
  --text-muted: #555555;
  --card-border: #e2e5ea;
  --max: 1100px;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Header / Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
}

.logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 0.35rem;
}

.logo-text span { color: var(--primary); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
}

.nav-links a {
  color: var(--light-gray);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover { color: var(--cyan); }

.nav-cta {
  background: var(--primary);
  color: var(--black) !important;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-weight: 700 !important;
}

.nav-cta:hover {
  background: var(--cyan);
  text-decoration: none !important;
}

.draft-banner {
  background: #1a1a1a;
  color: var(--light-gray);
  text-align: center;
  font-size: 0.75rem;
  padding: 0.35rem 1rem;
  border-bottom: 1px solid #333;
}

.draft-banner strong { color: var(--cyan); }

/* —— Buttons —— */
.btn {
  display: inline-block;
  padding: 0.75rem 1.35rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--primary);
  color: var(--black);
  border-color: var(--primary);
}

.btn-primary:hover { background: var(--cyan); border-color: var(--cyan); color: var(--black); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--cyan);
}

.btn-outline:hover { background: var(--cyan); color: var(--black); }

.btn-dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-dark:hover { background: #222; border-color: var(--primary); color: var(--primary); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* —— Hero —— */
.hero {
  background:
    linear-gradient(135deg, #000000 0%, #0a1a28 55%, #003050 100%);
  color: var(--white);
  padding: 4rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 50%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(56, 182, 254, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-block;
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--light-gray);
  max-width: 38rem;
  margin-bottom: 1.75rem;
}

.hero-sub strong { color: var(--white); }

/* —— Trust strip —— */
.trust {
  background: var(--black);
  color: var(--light-gray);
  padding: 1.25rem 0;
  border-top: 1px solid #222;
  border-bottom: 3px solid var(--primary);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  text-align: center;
}

.trust-list li {
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}

/* —— Sections —— */
section { padding: 3.5rem 0; }

.section-label {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
  color: var(--black);
}

.section-lead {
  color: var(--text-muted);
  max-width: 40rem;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* —— Offerings —— */
.offerings { background: var(--off-white); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 750;
  margin-bottom: 0.5rem;
  color: var(--black);
}

.card p { color: var(--text-muted); font-size: 0.95rem; }

.card-accent {
  border-top: 3px solid var(--primary);
}

.card-highlight {
  border: 2px solid var(--primary);
  background: linear-gradient(160deg, #fff 60%, rgba(56, 182, 254, 0.08));
}

.card-highlight .badge {
  display: inline-block;
  background: var(--black);
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.65rem;
}

.pricing-callout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 0 0 2rem;
  padding: 1.25rem;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  border: 2px solid var(--primary);
}

.pricing-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pricing-label {
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pricing-item strong {
  font-size: 1.35rem;
  line-height: 1.25;
}

.pricing-item span {
  color: var(--light-gray);
  font-size: 0.9rem;
}

/* —— Why us —— */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.pillar {
  padding: 1.5rem;
  border-left: 4px solid var(--primary);
  background: var(--off-white);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.pillar h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.pillar p { color: var(--text-muted); font-size: 0.95rem; }

/* —— Fleet —— */
.fleet { background: var(--off-white); }

.fleet-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
  margin: -0.75rem 0 1.75rem;
}

.aircraft-choice-status {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.fleet-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.fleet-card-top {
  background: var(--black);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  border-bottom: 3px solid var(--primary);
}

.fleet-card-top .n-number {
  color: var(--cyan);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.fleet-card-top h3 {
  font-size: 1.2rem;
  margin: 0.25rem 0 0.15rem;
  color: var(--white);
}

.fleet-card-top .year-type {
  color: var(--light-gray);
  font-size: 0.9rem;
}

.fleet-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.fleet-card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.rate {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--black);
}

.rate span {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.rate-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.fleet-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 48rem;
}

/* —— Book / CTA —— */
.book {
  background: linear-gradient(135deg, #000 0%, #0d2436 100%);
  color: var(--white);
}

.book h2 { color: var(--white); }

.book .section-lead { color: var(--light-gray); }

.book-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

@media (min-width: 700px) {
  .book-box { grid-template-columns: 1.4fr 1fr; align-items: start; }
}

.book-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(56, 182, 254, 0.35);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.book-card h3 {
  color: var(--cyan);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.book-card p {
  color: var(--light-gray);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.book-email {
  font-family: ui-monospace, monospace;
  color: var(--primary);
  font-size: 0.95rem;
}

/* —— Google Calendar scheduling —— */
.calendar-placeholder {
  border: 2px dashed var(--card-border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: var(--off-white);
}

.calendar-placeholder h3 { margin-bottom: 0.5rem; }

.calendar-placeholder p {
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 auto 1rem;
}

.calendar-status {
  display: inline-block;
  background: var(--black);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 0.85rem;
}

.calendar-actions { justify-content: center; }

/* —— Aircraft dialog —— */
.aircraft-dialog {
  width: min(100% - 2rem, 42rem);
  max-width: 42rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
  color: var(--text);
}

.aircraft-dialog::backdrop { background: rgba(0, 0, 0, 0.72); }

.dialog-card { padding: 1.5rem; }

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.dialog-header h2 { margin-bottom: 0.35rem; }

.dialog-intro {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 34rem;
}

.dialog-close {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  padding: 0.15rem 0.35rem;
}

.dialog-close:hover { color: var(--black); }

.aircraft-options {
  display: grid;
  gap: 0.7rem;
  border: 0;
}

.aircraft-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border: 2px solid var(--card-border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.aircraft-option:hover,
.aircraft-option:focus-within {
  border-color: var(--primary);
}

.aircraft-option.is-selected {
  border-color: var(--primary);
  background: rgba(56, 182, 254, 0.1);
  box-shadow: 0 0 0 1px var(--primary);
}

.aircraft-option input {
  accent-color: var(--black);
  margin-top: 0.25rem;
  flex: 0 0 auto;
}

.aircraft-option-copy {
  display: grid;
  gap: 0.25rem;
}

.aircraft-option-title {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  align-items: baseline;
}

.aircraft-option-title strong { color: var(--black); }
.aircraft-option-title span { color: var(--text-muted); }
.aircraft-option-meta { color: var(--text-muted); font-size: 0.82rem; }

.aircraft-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.aircraft-tags span {
  background: var(--black);
  color: var(--cyan);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.45rem;
  text-transform: uppercase;
}

.aircraft-tags-empty span {
  background: var(--off-white);
  color: var(--text-muted);
  border: 1px solid var(--card-border);
}

.dialog-selection {
  min-height: 1.5rem;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--card-border);
}

.dialog-actions [disabled] {
  cursor: not-allowed;
  opacity: 0.45;
}

/* —— FAQ —— */
.faq { background: var(--off-white); }

.faq-list { max-width: 48rem; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

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

.faq-item summary::after {
  content: "+";
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

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

.faq-item .faq-answer {
  padding: 0 1.25rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item .faq-answer p + p { margin-top: 0.65rem; }

/* —— Local SEO —— */
.local-seo {
  background: var(--black);
  color: var(--light-gray);
}

.local-seo h2 { color: var(--white); }

.local-seo .section-lead { color: var(--light-gray); }

.locale-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.locale-tags span {
  background: #1a1a1a;
  border: 1px solid #333;
  color: var(--primary);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* —— Footer —— */
.site-footer {
  background: #0a0a0a;
  color: #999;
  padding: 2.5rem 0 2rem;
  font-size: 0.875rem;
  border-top: 2px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-grid h3 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}

.footer-grid a { color: var(--light-gray); }
.footer-grid a:hover { color: var(--cyan); }

.footer-grid p, .footer-grid li { margin-bottom: 0.35rem; }

.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: #777;
  max-width: 40rem;
  line-height: 1.5;
}

/* —— Utilities —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 600px) {
  .hero { padding: 2.75rem 0 3rem; }
  section { padding: 2.75rem 0; }
  .nav-links { width: 100%; }
}

/* —— Student account —— */
.account-section { background: var(--off-white); }

.demo-warning {
  margin: 0 0 1.75rem;
  padding: 1rem 1.15rem;
  border: 2px solid #e3ad24;
  border-radius: var(--radius);
  background: #fff8df;
  color: #5a4300;
  font-size: 0.92rem;
}

.demo-warning strong { color: #7a5300; }
.demo-warning code { font-size: 0.85em; }

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.account-card,
.admin-draft {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.account-card { border-top: 3px solid var(--primary); }
.card-kicker {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.account-card h3,
.admin-draft h3 { font-size: 1.25rem; margin-bottom: 1rem; }

.account-form { display: grid; gap: 1rem; }
.account-form label,
.admin-table label,
.admin-student-card label,
.summary-medical-form label {
  display: grid;
  gap: 0.3rem;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.form-span-2 { grid-column: 1 / -1; }
.account-form input,
.account-form select,
.account-form textarea,
.admin-table input,
.admin-table select,
.admin-table textarea,
.admin-student-card input,
.admin-student-card select,
.admin-student-card textarea,
.summary-medical-form input,
.summary-medical-form select,
.summary-medical-form textarea {
  width: 100%;
  border: 1px solid #bbc3cc;
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 0.7rem;
}

.account-form input:focus,
.account-form select:focus,
.account-form textarea:focus,
.admin-table input:focus,
.admin-table select:focus,
.admin-table textarea:focus,
.admin-student-card input:focus,
.admin-student-card select:focus,
.admin-student-card textarea:focus,
.summary-medical-form input:focus,
.summary-medical-form select:focus,
.summary-medical-form textarea:focus {
  outline: 3px solid rgba(56, 182, 254, 0.35);
  border-color: #1689c7;
}

.form-status,
.admin-status { min-height: 1.45rem; color: var(--text-muted); font-size: 0.88rem; }
.btn-outline-light {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-outline-light:hover { background: var(--black); color: var(--white); }
.student-session {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--card-border);
}
.student-session h4 { margin-bottom: 0.25rem; }
.student-session p { color: var(--text-muted); margin-bottom: 0.75rem; }

.admin-draft { margin-top: 1.25rem; border-top: 3px solid var(--black); }
.admin-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.admin-heading h3 { margin-bottom: 0; }
.admin-badge {
  flex-shrink: 0;
  background: var(--black);
  color: var(--cyan);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.admin-intro { color: var(--text-muted); font-size: 0.9rem; margin: 0.5rem 0 1rem; }
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.admin-table th,
.admin-table td {
  padding: 0.65rem;
  border-top: 1px solid var(--card-border);
  text-align: left;
  vertical-align: top;
}
.admin-table thead th {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.admin-table tbody th { min-width: 170px; }
.admin-table tbody th small {
  display: block;
  margin-top: 0.15rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 400;
}
.admin-table input { min-width: 135px; padding: 0.45rem; font-size: 0.82rem; }
.admin-table textarea { min-width: 150px; resize: vertical; padding: 0.45rem; font-size: 0.82rem; }
.btn-small { padding: 0.5rem 0.7rem; font-size: 0.8rem; white-space: nowrap; }
.empty-state { color: var(--text-muted); text-align: center !important; padding: 1.25rem !important; }


.training-record-form { margin-top: 0.25rem; }

.tr-group {
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0.85rem 1rem 1rem;
  margin: 0;
  background: #f7f9fb;
}
.tr-group legend {
  padding: 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.account-form textarea {
  width: 100%;
  border: 1px solid #bbc3cc;
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 0.7rem;
  resize: vertical;
}
.account-form textarea:focus {
  outline: 3px solid rgba(56, 182, 254, 0.35);
  border-color: #1689c7;
}

.summary-search-label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  max-width: 420px;
}
.summary-search-label input {
  width: 100%;
  border: 1px solid #bbc3cc;
  border-radius: 6px;
  padding: 0.65rem 0.7rem;
  font: inherit;
}
.summary-search-results {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  max-width: 520px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}
.summary-search-results li + li { border-top: 1px solid var(--card-border); }
.summary-search-results button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  font: inherit;
}
.summary-search-results button:hover { background: rgba(56, 182, 254, 0.12); }
.summary-search-results strong { display: block; }
.summary-search-results span {
  color: var(--text-muted);
  font-size: 0.82rem;
}
.student-summary-panel {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.5rem;
}
.summary-name { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.2rem; }
.summary-meta { color: var(--text-muted); font-size: 0.9rem; margin: 0.15rem 0; }
.summary-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}
.summary-stat {
  background: #f4f7fa;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
}
.summary-stat span {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.summary-stat strong { font-size: 1.05rem; }

.summary-gap-controls {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}
.summary-gap-label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.summary-gap-label select {
  font: inherit;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  background: var(--white);
}
.summary-gap-primary {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.summary-checklist small.is-deficit {
  color: #9a5b12;
  font-weight: 600;
}
.summary-checklist-wrap h4,
.summary-entries-wrap h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.summary-checklist-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.summary-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.summary-checklist li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: var(--white);
}
.summary-checklist li.is-met {
  border-color: #8fd3a8;
  background: #f1fbf4;
}
.summary-checklist li.is-open { background: #fffaf3; }
.summary-checklist .check-mark {
  font-weight: 800;
  color: var(--primary);
}
.summary-checklist li.is-met .check-mark { color: #1f7a43; }
.summary-checklist small {
  display: block;
  margin-top: 0.15rem;
  color: var(--text-muted);
  font-weight: 400;
}
.summary-entries-table { min-width: 1280px; }
.entry-notes { font-size: 0.8rem; line-height: 1.35; max-width: 280px; }

.admin-students-list {
  display: grid;
  gap: 1rem;
}
.admin-student-card {
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: #f8fafc;
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.9rem;
}
.admin-student-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.admin-student-card .student-name {
  font-weight: 800;
  margin: 0;
}

.summary-block {
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: #f8fafc;
  padding: 1rem 1.1rem;
}
.summary-block-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.75rem;
}
.summary-block-head h4 {
  margin: 0;
  font-size: 1.05rem;
}
.summary-block-kicker {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.summary-medical-form {
  display: grid;
  gap: 0.85rem;
}
.summary-medical-form .btn { justify-self: start; }

.summary-time-block .summary-totals {
  margin-top: 0.65rem;
}

.summary-req-table {
  min-width: 720px;
}
.summary-req-table th[scope="row"] {
  text-align: left;
  font-weight: 600;
}
.summary-req-table th[scope="row"] small {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-weight: 400;
}
.summary-req-table tr.is-met {
  background: #f1fbf4;
}
.summary-req-table tr.is-open {
  background: #fffaf3;
}
.summary-req-table .req-mark {
  display: inline-block;
  width: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}
.summary-req-table tr.is-met .req-mark { color: #1f7a43; }
.summary-req-table .is-deficit,
.summary-req-table small.is-deficit {
  color: #9a5b12;
  font-weight: 600;
}

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

@media (max-width: 600px) {
  .form-grid,
  .form-grid-3,
  .form-grid-4,
  .form-grid-5 { grid-template-columns: 1fr; }
  .form-span-2 { grid-column: auto; }
  .admin-heading { flex-direction: column; }
}
.account-grid-single { grid-template-columns: minmax(0, 720px); }
