/* ═══════════════════════════════════════════════════════════════
   BTS Food Service — main.css
   Global styles, design tokens, shared components
   School Colors: Royal Blue #002366 | Maize #faeb5c
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* ───────────────────────────────────────────────
   DESIGN TOKENS
   ─────────────────────────────────────────────── */
:root {
  /* Brand */
  --royal-blue:      #002366;
  --royal-blue-dark: #001540;
  --royal-blue-mid:  #003399;
  --royal-blue-soft: #1a4a8a;
  --maize:           #faeb5c;
  --maize-dark:      #e8d800;
  --maize-pale:      #fef9c3;
  --maize-warm:      #fdf3a0;

  /* Building color accents (stacked public view) */
  --building-we-bg:    #eef3ff;
  --building-we-bar:   #002366;
  --building-kms-bg:   #fffde7;
  --building-kms-bar:  #c8a800;
  --building-khs-bg:   #f0f4ff;
  --building-khs-bar:  #1a4a8a;

  /* Neutrals */
  --white:       #ffffff;
  --off-white:   #f8f9fc;
  --gray-50:     #f1f3f8;
  --gray-100:    #e4e8f0;
  --gray-200:    #c8d0e0;
  --gray-400:    #8a94a8;
  --gray-600:    #525c72;
  --gray-800:    #2a3048;
  --near-black:  #111827;

  /* Status */
  --draft-bg:      #fff8e1;
  --draft-border:  #f59e0b;
  --draft-text:    #92400e;
  --published-bg:  #ecfdf5;
  --published-border: #10b981;
  --published-text:   #065f46;
  --warning-bg:    #fef2f2;
  --warning-border:#ef4444;
  --warning-text:  #991b1b;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Spacing scale */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;

  /* Radii */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,35,102,0.08), 0 1px 2px rgba(0,35,102,0.04);
  --shadow:     0 4px 12px rgba(0,35,102,0.10), 0 2px 4px rgba(0,35,102,0.06);
  --shadow-md:  0 8px 24px rgba(0,35,102,0.12), 0 4px 8px rgba(0,35,102,0.08);
  --shadow-lg:  0 16px 48px rgba(0,35,102,0.16), 0 8px 16px rgba(0,35,102,0.08);
  --shadow-pop: 0 20px 60px rgba(0,35,102,0.20);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition:        250ms ease;
  --transition-slow:   400ms ease;

  /* Layout */
  --max-width:        1200px;
  --header-height:    72px;
  --sidebar-width:    260px;
}

/* ───────────────────────────────────────────────
   RESET & BASE
   ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--gray-800);
  background: var(--off-white);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; }

/* ───────────────────────────────────────────────
   TYPOGRAPHY
   ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--royal-blue);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }

p { line-height: 1.7; }

.label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

/* ───────────────────────────────────────────────
   LAYOUT UTILITIES
   ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.container--narrow {
  max-width: 800px;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--sp-2); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ───────────────────────────────────────────────
   SITE HEADER (shared across all pages)
   ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--royal-blue);
  border-bottom: 4px solid var(--maize);
  box-shadow: var(--shadow-md);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.site-header__logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--maize);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.site-header__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-header__logo-fallback {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--royal-blue);
  line-height: 1;
}

.site-header__title {
  display: flex;
  flex-direction: column;
}

.site-header__org {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.1;
}

.site-header__sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--maize);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background var(--transition-fast), color var(--transition-fast);
  color: var(--maize-pale);
}

.nav-btn:hover {
  background: rgba(250,235,92,0.15);
  color: var(--maize);
}

.nav-btn--active {
  background: var(--maize);
  color: var(--royal-blue);
  font-weight: 600;
}

.nav-btn--active:hover {
  background: var(--maize-dark);
  color: var(--royal-blue-dark);
}

/* ───────────────────────────────────────────────
   HAMBURGER MENU (mobile)
   ─────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.hamburger:hover { background: rgba(250,235,92,0.15); }

.hamburger__line {
  width: 22px;
  height: 2px;
  background: var(--maize);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open .hamburger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .hamburger__line:nth-child(2) { opacity: 0; }
.hamburger.open .hamburger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ───────────────────────────────────────────────
   MOBILE NAV DRAWER
   ─────────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--royal-blue-dark);
  border-bottom: 3px solid var(--maize);
  z-index: 99;
  padding: var(--sp-4);
  flex-direction: column;
  gap: var(--sp-2);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
  pointer-events: none;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-nav .nav-btn {
  width: 100%;
  justify-content: flex-start;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius);
}

/* ───────────────────────────────────────────────
   PAGE HERO BAND
   ─────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--royal-blue) 0%, var(--royal-blue-mid) 100%);
  padding: var(--sp-12) 0 var(--sp-10);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 90% 50%, rgba(250,235,92,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(255,255,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--maize);
}

.page-hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maize);
  margin-bottom: var(--sp-3);
}

.page-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: var(--sp-4);
}

.page-hero__title span {
  color: var(--maize);
}

.page-hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  line-height: 1.6;
}

/* ───────────────────────────────────────────────
   MAIN CONTENT AREA
   ─────────────────────────────────────────────── */
.page-main {
  padding: var(--sp-10) 0 var(--sp-16);
}

/* ───────────────────────────────────────────────
   CARDS
   ─────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card--raised {
  box-shadow: var(--shadow-md);
}

.card__header {
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.card__body {
  padding: var(--sp-6);
}

.card__footer {
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}

/* ───────────────────────────────────────────────
   BUTTONS
   ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.625rem var(--sp-5);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn--primary {
  background: var(--royal-blue);
  color: var(--white);
  border-color: var(--royal-blue);
}
.btn--primary:hover:not(:disabled) {
  background: var(--royal-blue-dark);
  border-color: var(--royal-blue-dark);
  box-shadow: var(--shadow-md);
}

.btn--accent {
  background: var(--maize);
  color: var(--royal-blue);
  border-color: var(--maize);
}
.btn--accent:hover:not(:disabled) {
  background: var(--maize-dark);
  border-color: var(--maize-dark);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--royal-blue);
  border-color: var(--royal-blue);
}
.btn--outline:hover:not(:disabled) {
  background: var(--royal-blue);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--gray-600);
  border-color: var(--gray-200);
}
.btn--ghost:hover:not(:disabled) {
  background: var(--gray-50);
  border-color: var(--gray-400);
  color: var(--gray-800);
}

.btn--danger {
  background: #ef4444;
  color: var(--white);
  border-color: #ef4444;
}
.btn--danger:hover:not(:disabled) {
  background: #dc2626;
  border-color: #dc2626;
  box-shadow: var(--shadow-md);
}

.btn--sm {
  padding: 0.4rem var(--sp-3);
  font-size: 0.8rem;
}

.btn--lg {
  padding: 0.875rem var(--sp-8);
  font-size: 1rem;
}

.btn--full { width: 100%; }

/* Icon button */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  background: var(--white);
  color: var(--gray-600);
  font-size: 1rem;
  transition: all var(--transition-fast);
}
.btn-icon:hover {
  background: var(--gray-50);
  color: var(--royal-blue);
  border-color: var(--gray-200);
}

/* ───────────────────────────────────────────────
   FORM ELEMENTS
   ─────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
}

.form-label--required::after {
  content: ' *';
  color: #ef4444;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.625rem var(--sp-4);
  border: 2px solid var(--gray-100);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  line-height: 1.5;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--royal-blue);
  box-shadow: 0 0 0 3px rgba(0,35,102,0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-3) center;
  padding-right: var(--sp-8);
  cursor: pointer;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--gray-400);
}

.form-error {
  font-size: 0.78rem;
  color: #ef4444;
}

/* Checkbox */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--royal-blue);
  cursor: pointer;
  flex-shrink: 0;
}

/* ───────────────────────────────────────────────
   BADGES & STATUS PILLS
   ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.badge--draft {
  background: var(--draft-bg);
  color: var(--draft-text);
  border: 1px solid var(--draft-border);
}

.badge--published {
  background: var(--published-bg);
  color: var(--published-text);
  border: 1px solid var(--published-border);
}

.badge--blue {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* ───────────────────────────────────────────────
   DRAFT BANNER
   ─────────────────────────────────────────────── */
.draft-banner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: var(--draft-bg);
  border: 2px solid var(--draft-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-6);
}

.draft-banner__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.draft-banner__text {
  flex: 1;
}

.draft-banner__title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--draft-text);
  font-family: var(--font-body);
}

.draft-banner__sub {
  font-size: 0.8rem;
  color: var(--draft-text);
  opacity: 0.8;
  margin-top: 2px;
}

/* ───────────────────────────────────────────────
   MONTH NAVIGATION
   ─────────────────────────────────────────────── */
.month-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.month-nav__current {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--royal-blue);
  min-width: 220px;
  text-align: center;
}

.month-nav__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--royal-blue);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.month-nav__btn:hover {
  border-color: var(--royal-blue);
  background: var(--royal-blue);
  color: var(--white);
}

.month-nav__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ───────────────────────────────────────────────
   CALENDAR GRID (public view)
   ─────────────────────────────────────────────── */
.calendar-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.calendar {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.calendar__head th {
  background: var(--royal-blue);
  color: var(--maize);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--sp-3) var(--sp-2);
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.calendar__head th:last-child { border-right: none; }

.calendar__day {
  vertical-align: top;
  border: 1px solid var(--gray-100);
  padding: var(--sp-2);
  width: calc(100% / 5);
  min-height: 120px;
  background: var(--white);
  transition: background var(--transition-fast);
}

.calendar__day:hover { background: var(--gray-50); }

.calendar__day--weekend {
  display: none; /* weekends hidden — school days only */
}

.calendar__day--empty {
  background: var(--gray-50);
  pointer-events: none;
}

.calendar__day--today {
  background: var(--maize-pale);
}

.day__number {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-400);
  font-family: var(--font-mono);
  margin-bottom: var(--sp-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.day__number--today {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--royal-blue);
  color: var(--maize);
  border-radius: 50%;
  font-size: 0.72rem;
}

.day__no-school {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-style: italic;
  padding: var(--sp-2) 0;
}

.day__notes {
  font-size: 0.72rem;
  color: var(--gray-600);
  font-style: italic;
  margin-top: var(--sp-2);
  padding-top: var(--sp-2);
  border-top: 1px dashed var(--gray-100);
  line-height: 1.4;
}

/* ───────────────────────────────────────────────
   BUILDING MENU BLOCKS (public stacked view)
   ─────────────────────────────────────────────── */
.building-menu-block {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  margin-bottom: var(--sp-3);
}

.building-menu-block:last-child { margin-bottom: 0; }

.building-menu-block__header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
}

.building-menu-block__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.building-menu-block__name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Woodland Elementary */
.building-menu-block--we .building-menu-block__header {
  background: var(--building-we-bg);
  border-bottom: 2px solid var(--building-we-bar);
}
.building-menu-block--we .building-menu-block__dot { background: var(--building-we-bar); }
.building-menu-block--we .building-menu-block__name { color: var(--building-we-bar); }

/* Kingsford Middle */
.building-menu-block--kms .building-menu-block__header {
  background: var(--building-kms-bg);
  border-bottom: 2px solid var(--building-kms-bar);
}
.building-menu-block--kms .building-menu-block__dot { background: var(--building-kms-bar); }
.building-menu-block--kms .building-menu-block__name { color: var(--building-kms-bar); }

/* Kingsford High */
.building-menu-block--khs .building-menu-block__header {
  background: var(--building-khs-bg);
  border-bottom: 2px solid var(--building-khs-bar);
}
.building-menu-block--khs .building-menu-block__dot { background: var(--building-khs-bar); }
.building-menu-block--khs .building-menu-block__name { color: var(--building-khs-bar); }

.building-menu-block__items {
  padding: var(--sp-2) var(--sp-3);
  background: var(--white);
}

.menu-item-line {
  font-size: 0.8rem;
  color: var(--gray-800);
  line-height: 1.5;
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
}

.menu-item-line::before {
  content: '·';
  color: var(--gray-400);
  flex-shrink: 0;
}

.menu-item-line--category {
  font-size: 0.68rem;
  color: var(--gray-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: var(--sp-1);
}

/* ───────────────────────────────────────────────
   BUILDING SELECTOR (public page)
   ─────────────────────────────────────────────── */
.building-selector {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.building-selector__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex: 1;
  min-width: 200px;
}

.building-selector__item:hover {
  border-color: var(--royal-blue);
  background: var(--gray-50);
}

.building-selector__item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--royal-blue);
  flex-shrink: 0;
}

.building-selector__item.selected {
  border-color: var(--royal-blue);
  background: #eff6ff;
}

.building-selector__label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-800);
}

.building-selector__short {
  font-size: 0.72rem;
  color: var(--gray-400);
  font-weight: 500;
}

/* ───────────────────────────────────────────────
   COMING SOON PANEL
   ─────────────────────────────────────────────── */
.coming-soon {
  text-align: center;
  padding: var(--sp-16) var(--sp-8);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--gray-200);
}

.coming-soon__icon {
  font-size: 3rem;
  margin-bottom: var(--sp-4);
}

.coming-soon__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--royal-blue);
  margin-bottom: var(--sp-3);
}

.coming-soon__text {
  font-size: 0.95rem;
  color: var(--gray-400);
  max-width: 400px;
  margin: 0 auto;
}

/* ───────────────────────────────────────────────
   MODAL
   ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 21, 64, 0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-pop);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(16px) scale(0.98);
  transition: transform var(--transition);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal__header {
  padding: var(--sp-6);
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--royal-blue);
}

.modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--gray-400);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  cursor: pointer;
}
.modal__close:hover { background: var(--gray-100); color: var(--gray-800); }

.modal__body { padding: var(--sp-6); }

.modal__footer {
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-3);
  background: var(--gray-50);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* ───────────────────────────────────────────────
   TOAST NOTIFICATIONS
   ─────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: var(--gray-800);
  color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  font-weight: 500;
  min-width: 240px;
  max-width: 380px;
  pointer-events: all;
  animation: toastIn 0.3s ease forwards;
}

.toast--success { background: #065f46; border-left: 4px solid #10b981; }
.toast--error   { background: #991b1b; border-left: 4px solid #ef4444; }
.toast--warning { background: #92400e; border-left: 4px solid #f59e0b; }
.toast--info    { background: var(--royal-blue); border-left: 4px solid var(--maize); }

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ───────────────────────────────────────────────
   ADMIN LAYOUT (sidebar + content)
   ─────────────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: calc(100vh - var(--header-height));
}

.admin-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--royal-blue-dark);
  padding: var(--sp-6) 0;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
}

.admin-sidebar__section {
  margin-bottom: var(--sp-6);
}

.admin-sidebar__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 0 var(--sp-5);
  margin-bottom: var(--sp-2);
}

.admin-sidebar__link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.admin-sidebar__link:hover {
  background: rgba(255,255,255,0.06);
  color: var(--white);
}

.admin-sidebar__link.active {
  background: rgba(250,235,92,0.1);
  color: var(--maize);
  border-left-color: var(--maize);
  font-weight: 600;
}

.admin-sidebar__link__icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.admin-sidebar__user {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: auto;
}

.admin-sidebar__user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-sidebar__user-email {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.admin-content {
  flex: 1;
  padding: var(--sp-8);
  overflow-x: hidden;
  min-width: 0;
}

/* ───────────────────────────────────────────────
   PAGE SECTION HEADERS (admin)
   ─────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}

.section-header__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--royal-blue);
}

.section-header__sub {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-top: var(--sp-1);
}

/* ───────────────────────────────────────────────
   DATA TABLE
   ─────────────────────────────────────────────── */
.data-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--white);
}

.data-table th {
  background: var(--gray-50);
  color: var(--gray-600);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  border-bottom: 2px solid var(--gray-100);
  white-space: nowrap;
}

.data-table td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-800);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--gray-50); }

/* ───────────────────────────────────────────────
   EMPTY STATE
   ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--sp-16) var(--sp-8);
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: var(--sp-4);
  opacity: 0.4;
}

.empty-state__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: var(--sp-2);
}

.empty-state__text {
  font-size: 0.875rem;
  color: var(--gray-400);
  max-width: 320px;
  margin: 0 auto var(--sp-5);
}

/* ───────────────────────────────────────────────
   CHIP / TAG (menu item picker)
   ─────────────────────────────────────────────── */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.chip:hover {
  border-color: var(--royal-blue);
  color: var(--royal-blue);
  background: #eff6ff;
}

.chip.selected {
  background: var(--royal-blue);
  color: var(--white);
  border-color: var(--royal-blue);
}

.chip__remove {
  font-size: 0.7rem;
  opacity: 0.7;
  margin-left: 2px;
}
.chip__remove:hover { opacity: 1; }

/* Category chips */
.chip--entree    { border-color: #f97316; }
.chip--side      { border-color: #8b5cf6; }
.chip--vegetable { border-color: #10b981; }
.chip--fruit     { border-color: #f43f5e; }
.chip--grain     { border-color: #d97706; }
.chip--milk      { border-color: #3b82f6; }
.chip--other     { border-color: var(--gray-400); }

/* ───────────────────────────────────────────────
   LOADING SPINNER
   ─────────────────────────────────────────────── */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--gray-100);
  border-top-color: var(--royal-blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.spinner--sm { width: 20px; height: 20px; border-width: 2px; }
.spinner--lg { width: 56px; height: 56px; border-width: 4px; }

@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  padding: var(--sp-20);
}

.loading-overlay__text {
  font-size: 0.875rem;
  color: var(--gray-400);
}

/* ───────────────────────────────────────────────
   SIGN-IN PAGE
   ─────────────────────────────────────────────── */
.signin-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--royal-blue-dark) 0%, var(--royal-blue) 50%, var(--royal-blue-mid) 100%);
  padding: var(--sp-6);
}

.signin-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--sp-10) var(--sp-12);
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-pop);
  text-align: center;
}

.signin-card__logo {
  width: 72px;
  height: 72px;
  background: var(--maize);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-6);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--royal-blue);
}

.signin-card__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--royal-blue);
  margin-bottom: var(--sp-2);
}

.signin-card__sub {
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-bottom: var(--sp-8);
  line-height: 1.5;
}

.btn--google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  width: 100%;
  padding: 0.75rem var(--sp-5);
  border: 2px solid var(--gray-100);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
}
.btn--google:hover {
  border-color: var(--gray-400);
  box-shadow: var(--shadow);
}

.signin-card__note {
  margin-top: var(--sp-6);
  font-size: 0.78rem;
  color: var(--gray-400);
}

/* ───────────────────────────────────────────────
   UTILITY: SEPARATOR
   ─────────────────────────────────────────────── */
.sep {
  border: none;
  border-top: 1px solid var(--gray-100);
  margin: var(--sp-6) 0;
}

.sep--maize {
  border-top-color: var(--maize);
  border-top-width: 3px;
}

/* ───────────────────────────────────────────────
   FOOTER
   ─────────────────────────────────────────────── */
.site-footer {
  background: var(--royal-blue-dark);
  color: rgba(255,255,255,0.4);
  padding: var(--sp-6) 0;
  margin-top: auto;
  font-size: 0.8rem;
  border-top: 3px solid var(--maize);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.site-footer__links {
  display: flex;
  gap: var(--sp-4);
}

.site-footer a {
  color: rgba(255,255,255,0.4);
  transition: color var(--transition-fast);
}
.site-footer a:hover { color: var(--maize); }

/* ───────────────────────────────────────────────
   RESPONSIVE
   ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .admin-sidebar {
    display: none;
  }
  .admin-layout {
    flex-direction: column;
  }
  .admin-content {
    padding: var(--sp-5);
  }
}

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

  .site-header__nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }

  .container { padding-inline: var(--sp-4); }

  .page-hero { padding: var(--sp-8) 0; }

  .building-selector { flex-direction: column; }
  .building-selector__item { min-width: auto; }

  .month-nav { justify-content: center; }
  .month-nav__current { min-width: 160px; font-size: 1.2rem; }

  .modal { border-radius: var(--radius-lg); }
  .signin-card { padding: var(--sp-8) var(--sp-6); }

  .section-header { flex-direction: column; }
  .section-header__actions { width: 100%; }
  .section-header__actions .btn { width: 100%; justify-content: center; }

  .toast-container {
    bottom: var(--sp-4);
    right: var(--sp-4);
    left: var(--sp-4);
  }
  .toast { max-width: 100%; }
}

@media (max-width: 480px) {
  .calendar { min-width: 400px; }
  .data-table { font-size: 0.8rem; }
}
