/**
 * Prophetic Remedies Academy — Responsive Overrides
 * Import this AFTER academy.css to apply mobile & tablet fixes
 * 
 * Usage: <link rel="stylesheet" href="assets/academy.css">
 *        <link rel="stylesheet" href="assets/responsive.css">
 */

/* ============================================================
   TABLE OF CONTENTS
   ============================================================
   1. CSS Variables (responsive spacing)
   2. Base & Reset tweaks
   3. Navbar (mobile-first redesign)
   4. Hero Section
   5. Sections & Grids
   6. Cards
   7. Buttons
   8. Forms
   9. Auth Pages
   10. Course Detail
   11. Lesson Page
   12. Dashboard / My Courses
   13. About Page
   14. Contact Page
   15. Dean Panel
   16. Footer
   17. AI Chat
   18. Modals
   19. Tables (data tables)
   20. Print
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES — Responsive spacing
   ============================================================ */
:root {
  --space-xs: 0.5rem;   /* 8px  */
  --space-sm: 0.75rem;  /* 12px */
  --space-md: 1rem;     /* 16px */
  --space-lg: 1.5rem;   /* 24px */
  --space-xl: 2rem;     /* 32px */
  --space-2xl: 3rem;    /* 48px */
}

/* ============================================================
   2. BASE & RESET
   ============================================================ */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  min-width: 320px;
}

/* ============================================================
   3. NAVBAR — Complete mobile redesign
   ============================================================ */

/* ---- Mobile-first base styles ---- */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  height: 56px;
  position: relative;
}

/* Hamburger — always visible on mobile, left side */
.mobile-menu-btn {
  display: flex;
  order: 1;
  z-index: 1002;
  padding: var(--space-xs);
  margin-left: calc(-1 * var(--space-xs));
}

.mobile-menu-btn span {
  width: 22px;
  height: 2.5px;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Brand — centered on mobile */
.nav-brand {
  order: 2;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.1rem;
  gap: 6px;
  white-space: nowrap;
}
.brand-icon { font-size: 1.3rem; }

/* Auth — right side, compact */
.nav-auth {
  order: 3;
  margin-left: auto;
}

/* Nav links — full-screen overlay on mobile */
.nav-links {
  position: fixed;
  inset: 56px 0 auto 0;
  background: var(--white);
  flex-direction: column;
  padding: var(--space-md);
  gap: 0;
  display: none;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  border-bottom: 1px solid var(--border);
  max-height: calc(100vh - 56px);
  overflow-y: auto;
}
.nav-links.active { display: flex; }

.nav-link {
  padding: var(--space-md);
  font-size: 1rem;
  border-radius: var(--radius-sm);
  width: 100%;
  text-align: left;
}
.nav-link + .nav-link {
  border-top: 1px solid var(--border);
}

/* Guest buttons on mobile */
.nav-guest {
  gap: var(--space-xs);
}
.nav-guest .btn {
  padding: 6px 12px;
  font-size: 0.8rem;
}

/* User dropdown on mobile — avatar only */
.user-dropdown-toggle {
  padding: 4px;
  gap: 4px;
  border: none;
  background: transparent;
}
.user-name-text,
.dropdown-chevron {
  display: none;
}
.user-avatar {
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
}

.user-dropdown-menu {
  position: fixed;
  top: 56px;
  right: var(--space-sm);
  left: auto;
  width: min(280px, calc(100vw - var(--space-lg)));
  margin-top: 4px;
}

/* ---- Tablet (481px - 768px) ---- */
@media (min-width: 481px) {
  .nav-container {
    height: 60px;
    padding: 0 var(--space-lg);
  }

  .nav-brand {
    position: static;
    transform: none;
    left: auto;
    font-size: 1.15rem;
  }

  .nav-links {
    top: 60px;
  }

  .user-dropdown-menu {
    top: 60px;
  }

  .nav-guest .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

/* ---- Desktop (769px+) ---- */
@media (min-width: 769px) {
  .nav-container {
    height: 64px;
    padding: 0 var(--space-xl);
  }

  .mobile-menu-btn {
    display: none !important;
  }

  .nav-brand {
    order: 1;
    position: static;
    transform: none;
    font-size: 1.25rem;
  }

  .nav-links {
    position: static;
    display: flex !important;
    flex-direction: row;
    padding: 0;
    box-shadow: none;
    border: none;
    order: 2;
    justify-content: center;
    flex: 1;
    max-height: none;
    overflow: visible;
  }

  .nav-link {
    width: auto;
    padding: 8px 16px;
    font-size: 0.9rem;
    border-top: none;
  }

  .nav-auth {
    order: 3;
  }

  .user-dropdown-toggle {
    padding: 6px 12px;
    border: 1.5px solid var(--border);
    background: var(--off-white);
    gap: 8px;
  }
  .user-name-text {
    display: block;
    max-width: 120px;
  }
  .dropdown-chevron {
    display: block;
  }

  .user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    margin-top: 0;
  }
}

/* ---- Large desktop (1025px+) ---- */
@media (min-width: 1025px) {
  .nav-container {
    padding: 0 var(--space-xl);
  }
}

/* ============================================================
   4. HERO SECTION
   ============================================================ */
.hero {
  padding: 100px var(--space-md) 48px;
}
.hero h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  word-break: keep-all;
}
.hero p {
  font-size: 1rem;
  padding: 0 var(--space-xs);
}
.hero-buttons {
  flex-direction: column;
  gap: var(--space-sm);
  padding: 0 var(--space-sm);
}
.hero-buttons .btn {
  width: 100%;
  max-width: 320px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: 280px;
  margin: var(--space-xl) auto 0;
}
.hero-stat .number { font-size: 1.75rem; }

/* Tablet */
@media (min-width: 481px) {
  .hero {
    padding: 120px var(--space-lg) 60px;
  }
  .hero h1 { font-size: 2.25rem; }
  .hero p { font-size: 1.1rem; }
  .hero-buttons {
    flex-direction: row;
    padding: 0;
  }
  .hero-buttons .btn {
    width: auto;
    max-width: none;
  }
  .hero-stats {
    display: flex;
    gap: var(--space-xl);
    max-width: none;
  }
}

/* Desktop */
@media (min-width: 769px) {
  .hero {
    padding: 140px var(--space-xl) 80px;
  }
  .hero h1 { font-size: 3rem; }
  .hero p { font-size: 1.15rem; }
  .hero-stat .number { font-size: 2.5rem; }
}

/* ============================================================
   5. SECTIONS & GRIDS
   ============================================================ */
.section {
  padding: var(--space-xl) var(--space-md);
}
.section-title {
  font-size: 1.5rem;
}
.section-subtitle {
  font-size: 0.95rem;
}

.grid {
  gap: var(--space-md);
}
.grid-3,
.grid-2 {
  grid-template-columns: 1fr;
}

/* Tablet */
@media (min-width: 481px) {
  .section {
    padding: var(--space-2xl) var(--space-lg);
  }
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 769px) {
  .section {
    padding: 64px var(--space-xl);
  }
  .section-title { font-size: 2rem; }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   6. CARDS
   ============================================================ */
.card {
  border-radius: var(--radius-sm);
}
.card-image {
  height: 160px;
}
.card-body {
  padding: var(--space-md);
}
.card-title {
  font-size: 1rem;
}
.card-text {
  font-size: 0.85rem;
}
.card-footer {
  padding: var(--space-sm) var(--space-md);
}

/* Tablet+ */
@media (min-width: 481px) {
  .card-image { height: 180px; }
  .card-title { font-size: 1.1rem; }
  .card-text { font-size: 0.9rem; }
}

/* ============================================================
   7. BUTTONS
   ============================================================ */
.btn-lg {
  padding: 12px 20px;
  font-size: 0.95rem;
}

@media (min-width: 481px) {
  .btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
  }
}

/* ============================================================
   8. FORMS
   ============================================================ */
.form-input,
.form-select,
.form-textarea {
  padding: 10px 14px;
  font-size: 16px; /* Prevent iOS zoom on focus */
}

@media (min-width: 769px) {
  .form-input,
  .form-select,
  .form-textarea {
    padding: 12px 16px;
    font-size: 0.95rem;
  }
}

/* ============================================================
   9. AUTH PAGES
   ============================================================ */
.auth-card {
  padding: var(--space-lg);
  border-radius: var(--radius-sm);
}
.auth-header h1 {
  font-size: 1.5rem;
}

@media (min-width: 481px) {
  .auth-card {
    padding: 32px;
  }
  .auth-header h1 {
    font-size: 1.6rem;
  }
}

@media (min-width: 769px) {
  .auth-card {
    padding: 40px;
    border-radius: var(--radius);
  }
  .auth-header h1 {
    font-size: 1.75rem;
  }
}

/* ============================================================
   10. COURSE DETAIL
   ============================================================ */
.course-detail-layout {
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
.course-sidebar {
  position: static;
  order: -1;
}
.course-hero-image {
  height: 200px;
}
.features-grid {
  grid-template-columns: 1fr;
}
.enrollment-card {
  padding: var(--space-lg);
}
.enrollment-card .price {
  font-size: 1.75rem;
}

/* Tablet */
@media (min-width: 481px) {
  .course-hero-image { height: 240px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
}

/* Desktop */
@media (min-width: 769px) {
  .course-detail-layout {
    grid-template-columns: 1fr 360px;
  }
  .course-sidebar {
    position: sticky;
    top: 80px;
    order: 0;
  }
  .course-hero-image { height: 280px; }
  .enrollment-card { padding: 28px; }
  .enrollment-card .price { font-size: 2rem; }
}

/* ============================================================
   11. LESSON PAGE
   ============================================================ */
.lesson-layout {
  grid-template-columns: 1fr;
  margin-top: 56px;
}
.lesson-main {
  padding: var(--space-md);
}
.lesson-sidebar {
  display: none;
}
.lesson-header h1 {
  font-size: 1.35rem;
}
.lesson-bottom-nav {
  padding: var(--space-sm) var(--space-md);
  gap: var(--space-sm);
}
.lesson-bottom-nav .btn {
  padding: 8px 12px;
  font-size: 0.8rem;
}

/* Tablet */
@media (min-width: 481px) {
  .lesson-main { padding: var(--space-lg); }
  .lesson-header h1 { font-size: 1.5rem; }
}

/* Desktop */
@media (min-width: 769px) {
  .lesson-layout {
    grid-template-columns: 1fr 320px;
    margin-top: 56px;
  }
  .lesson-sidebar {
    display: block;
  }
  .lesson-header h1 { font-size: 1.75rem; }
  .lesson-bottom-nav {
    padding: 12px var(--space-xl);
  }
  .lesson-bottom-nav .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* ============================================================
   12. DASHBOARD / MY COURSES
   ============================================================ */
.dashboard-stats {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.stat-card {
  padding: var(--space-lg);
}
.stat-value {
  font-size: 1.75rem;
}

.course-list-item {
  grid-template-columns: 1fr;
  gap: var(--space-md);
  padding: var(--space-md);
}
.course-list-image {
  width: 100%;
  height: 160px;
}
.course-list-actions {
  width: 100%;
  justify-content: stretch;
}
.course-list-actions .btn {
  flex: 1;
}

/* Tablet */
@media (min-width: 481px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
  .stat-value { font-size: 2rem; }
  .course-list-item {
    grid-template-columns: 120px 1fr auto;
  }
  .course-list-image {
    width: 120px;
    height: 80px;
  }
  .course-list-actions {
    width: auto;
    justify-content: flex-start;
  }
  .course-list-actions .btn {
    flex: none;
  }
}

/* Desktop */
@media (min-width: 769px) {
  .dashboard-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 3rem;
  }
}

/* ============================================================
   13. ABOUT PAGE
   ============================================================ */
.about-layout {
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
.about-card {
  padding: var(--space-lg);
}
.approach-grid {
  grid-template-columns: 1fr;
}

/* Tablet */
@media (min-width: 481px) {
  .about-card { padding: 28px; }
  .approach-grid { grid-template-columns: 1fr 1fr; }
}

/* Desktop */
@media (min-width: 769px) {
  .about-layout {
    grid-template-columns: 1fr 340px;
    gap: 32px;
  }
  .about-card { padding: 32px; }
}

/* ============================================================
   14. CONTACT PAGE
   ============================================================ */
.contact-layout {
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
.contact-card {
  padding: var(--space-lg);
}

/* Tablet */
@media (min-width: 481px) {
  .contact-card { padding: 28px; }
}

/* Desktop */
@media (min-width: 769px) {
  .contact-layout {
    grid-template-columns: 1fr 340px;
    gap: 32px;
  }
  .contact-card { padding: 32px; }
}

/* ============================================================
   15. DEAN PANEL — Mobile Drawer + Desktop Sidebar
   ============================================================ */

/* ---- Mobile Drawer Overlay ---- */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ---- Mobile Topbar ---- */
.dean-mobile-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 var(--space-md);
  gap: var(--space-sm);
  z-index: 100;
}
.dean-mobile-topbar .menu-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}
.dean-mobile-topbar .menu-btn:hover {
  background: var(--off-white);
}
.dean-mobile-topbar .topbar-title {
  font-family: var(--font-arabic);
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 700;
}

/* ---- Sidebar (drawer on mobile, fixed on desktop) ---- */
.dean-panel {
  flex-direction: column;
}
.dean-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: var(--white);
  border-right: 1px solid var(--border);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}
.dean-sidebar.open {
  transform: translateX(0);
}
.dean-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dean-sidebar-header h3 {
  font-family: var(--font-arabic);
  color: var(--primary);
  font-size: 1.1rem;
}
.sidebar-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.sidebar-close:hover {
  color: var(--danger);
}
.dean-nav {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
}
.dean-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
  margin-bottom: 4px;
}
.dean-nav-item:hover {
  background: var(--off-white);
  color: var(--primary);
}
.dean-nav-item.active {
  background: var(--primary);
  color: white;
}
.dean-sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}
.dean-sidebar-footer .form-group {
  margin-bottom: 0.75rem;
}
.dean-sidebar-footer .form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.dean-sidebar-footer .form-input {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: inherit;
}
.dean-sidebar-footer .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--primary);
  background: transparent;
  color: var(--primary);
  width: 100%;
  text-decoration: none;
  transition: var(--transition);
}
.dean-sidebar-footer .btn:hover {
  background: var(--primary);
  color: white;
}

/* ---- Main Content ---- */
.dean-main {
  flex: 1;
  margin-left: 0;
  padding: 72px var(--space-md) var(--space-lg);
  background: var(--off-white);
  min-height: 100vh;
}

/* ---- Stats ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.stat-card .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}
.stat-card .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---- Tablet ---- */
@media (min-width: 481px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
  .stat-card {
    padding: 20px;
  }
  .stat-card .value {
    font-size: 1.75rem;
  }
}

/* ---- Desktop (769px+) — Fixed sidebar returns ---- */
@media (min-width: 769px) {
  .dean-mobile-topbar {
    display: none !important;
  }
  .sidebar-overlay {
    display: none !important;
  }
  .dean-panel {
    flex-direction: row;
  }
  .dean-sidebar {
    position: fixed;
    width: 260px;
    transform: translateX(0);
    box-shadow: none;
    transition: none;
  }
  .dean-sidebar-header {
    padding: 24px 20px;
  }
  .dean-sidebar-header h3 {
    font-size: 1.25rem;
  }
  .sidebar-close {
    display: none;
  }
  .dean-nav {
    padding: 12px;
  }
  .dean-nav-item {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  .dean-sidebar-footer {
    padding: 16px;
  }
  .dean-main {
    margin-left: 260px;
    padding: 32px;
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 2rem;
  }
  .stat-card {
    padding: 24px;
    border-radius: var(--radius);
  }
  .stat-card .value {
    font-size: 2rem;
  }
}

/* ============================================================
   16. FOOTER
   ============================================================ */
.footer {
  padding: var(--space-xl) var(--space-md) var(--space-lg);
}
.footer-grid {
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  text-align: center;
}
.footer-brand {
  justify-content: center;
}
.footer-links a,
.footer-links p {
  padding: 6px 0;
}

/* Tablet */
@media (min-width: 481px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }
  .footer-brand {
    justify-content: flex-start;
  }
}

/* Desktop */
@media (min-width: 769px) {
  .footer {
    padding: 64px var(--space-xl) 24px;
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
  }
}

/* ============================================================
   17. AI CHAT
   ============================================================ */
.ai-chat {
  width: calc(100vw - var(--space-lg));
  right: var(--space-sm);
  bottom: var(--space-sm);
  height: 70vh;
  max-height: 520px;
}
.ai-chat-toggle {
  width: 48px;
  height: 48px;
  right: var(--space-sm);
  bottom: var(--space-sm);
}

@media (min-width: 481px) {
  .ai-chat {
    width: 380px;
    right: var(--space-lg);
    bottom: var(--space-lg);
  }
  .ai-chat-toggle {
    width: 56px;
    height: 56px;
    right: var(--space-lg);
    bottom: var(--space-lg);
  }
}

/* ============================================================
   18. MODALS
   ============================================================ */
.modal {
  max-width: calc(100vw - var(--space-lg));
  margin: var(--space-md);
  border-radius: var(--radius-sm);
}
.modal-header {
  padding: var(--space-md);
}
.modal-header h2 {
  font-size: 1.1rem;
}
.modal form {
  padding: var(--space-md);
}

@media (min-width: 481px) {
  .modal {
    border-radius: var(--radius);
  }
  .modal-header {
    padding: 20px 24px;
  }
  .modal-header h2 {
    font-size: 1.25rem;
  }
  .modal form {
    padding: 24px;
  }
}

/* ============================================================
   19. DATA TABLES
   ============================================================ */
.data-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.data-table table {
  min-width: 600px;
}
.data-table th,
.data-table td {
  padding: 10px 12px;
  font-size: 0.85rem;
  white-space: nowrap;
}
.data-table .actions {
  gap: 4px;
}
.data-table .actions .btn {
  padding: 4px 10px;
  font-size: 0.75rem;
}

@media (min-width: 769px) {
  .data-table th,
  .data-table td {
    padding: 14px 16px;
    font-size: 0.9rem;
  }
  .data-table .actions {
    gap: 8px;
  }
  .data-table .actions .btn {
    padding: 6px 14px;
    font-size: 0.8rem;
  }
}

/* ============================================================
   20. PRINT
   ============================================================ */
@media print {
  .navbar,
  .mobile-menu-btn,
  .lesson-topbar,
  .lesson-bottom-nav,
  .ai-chat-toggle,
  .ai-chat,
  .dean-sidebar {
    display: none !important;
  }
  .dean-main {
    margin-left: 0 !important;
  }
}

/* ============================================================
   21. ACCESSIBILITY — Respect user motion preferences
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   22. SAFE AREA — Notch phones
   ============================================================ */
@supports (padding: max(0px)) {
  .nav-container {
    padding-left: max(var(--space-md), env(safe-area-inset-left));
    padding-right: max(var(--space-md), env(safe-area-inset-right));
  }
  .section {
    padding-left: max(var(--space-md), env(safe-area-inset-left));
    padding-right: max(var(--space-md), env(safe-area-inset-right));
  }
  .footer {
    padding-left: max(var(--space-md), env(safe-area-inset-left));
    padding-right: max(var(--space-md), env(safe-area-inset-right));
    padding-bottom: max(var(--space-lg), env(safe-area-inset-bottom));
  }
}