/* ==========================================================================
   LAYOUT — Grid, Sidebar, Topbar, Responsive
   ========================================================================== */

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: 1fr;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------------------------------------------------------------------------
   SIDEBAR — Always visible, fixed width (280px), no collapse
   --------------------------------------------------------------------------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  z-index: var(--z-sidebar);
  overflow: hidden;
  will-change: transform;
}

.sidebar__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Brand Area */
.sidebar__brand {
  height: 64px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

/* Icon toggle button — hover triggers the mode switch */
.sidebar__brand-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--fuel-diesel-dim), var(--fuel-diesel));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-accent);
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}

.sidebar__brand-icon-btn:hover {
  transform: scale(1.08);
}

.sidebar__brand-icon-btn:active {
  transform: scale(0.95);
}

.sidebar__brand-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar__brand-icon svg {
  width: 20px;
  height: 20px;
}

/* Icon swap animation */
.sidebar__brand-icon--anim {
  animation: iconSwap 0.3s ease both;
  will-change: transform, opacity;
}

@keyframes iconSwap {
  0% { transform: scale(0.5) rotate(-90deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.sidebar__brand-text {
  display: flex;
  flex-direction: column;
  min-width: 80px;
  overflow: hidden;
}

/* Title wrapper — overflow hidden for slide effect */
.sidebar__brand-title-wrapper {
  position: relative;
  height: 22px;
  overflow: hidden;
}

.sidebar__brand-title {
  font-weight: 700;
  font-size: var(--fs-base);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Title slide-in animation — emerges from behind the icon */
.sidebar__brand-title--slide {
  animation: titleSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform, opacity;
}

@keyframes titleSlideIn {
  0% { transform: translateX(-62px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

.sidebar__brand-subtitle {
  font-weight: 400;
  font-size: 10.5px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
}

/* Sub-section tabs — segmented control below brand area */
.sidebar__sub-tabs {
  display: flex;
  gap: 4px;
  margin: 10px 12px 6px;
  padding: 4px;
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 9px;
}

.sidebar__sub-tabs::-webkit-scrollbar {
  display: none;
}

.sidebar__sub-tab {
  flex: 1 1 0;
  min-width: 0;
  height: 28px;
  padding: 0 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.sidebar__sub-tab:hover:not(.sidebar__sub-tab--active) {
  background: var(--panel-hover);
  color: var(--text);
}

.sidebar__sub-tab--active {
  background: var(--card-bg);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14), 0 0 0 1px var(--border-soft);
}

/* Navigation Area */
/* Scrolling region: brand + nav + actions. The profile footer below is the
   only pinned part of the sidebar. */
.sidebar__scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.sidebar__nav {
  flex: 1 1 auto;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: var(--nav-section-gap);
}

.sidebar__section {
  display: flex;
  flex-direction: column;
  gap: var(--nav-item-gap);
}

.sidebar__section--system {
  margin-top: auto;
  padding-bottom: 2px;
}

.sidebar__section-label {
  height: 26px;
  padding: 0 12px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 7px;
}

.sidebar__section-label::before {
  content: '';
  flex: none;
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--fuel-diesel), var(--fuel-lpg));
  opacity: 0.85;
}

/* Section divider: flex:none so expanding a nav group can never squeeze it
   away, and border-based (not height+background) so display-scaling pixel
   rounding can never erase it either. */
.sidebar__section-divider {
  flex: none;
  height: auto;
  min-height: 0;
  border-top: 1px solid var(--border);
  margin: 4px 12px 8px;
}

/* Nav Items */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--nav-item-h);
  padding: 0 12px;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: var(--nav-font-size);
  font-weight: var(--nav-font-weight);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--motion-fast), color var(--motion-fast);
  cursor: pointer;
  border: 1px solid transparent;
  user-select: none;
}

.nav-item:hover {
  background: var(--nav-hover-bg);
  color: var(--text);
}

.nav-item:focus-visible {
  outline: none;
  box-shadow: var(--nav-focus-ring);
}

.nav-item--active {
  background: var(--nav-active-bg);
  border-color: var(--nav-active-border);
  color: var(--fuel-diesel);
}

.nav-item--active[data-fuel="diesel"] {
  background: var(--fuel-diesel-bg);
  border-color: var(--fuel-diesel-border);
  color: var(--fuel-diesel);
}

.nav-item--active[data-fuel="hfo"] {
  background: var(--fuel-hfo-bg);
  border-color: var(--fuel-hfo-border);
  color: var(--fuel-hfo);
}

.nav-item--active[data-fuel="lpg"] {
  background: var(--fuel-lpg-bg);
  border-color: var(--fuel-lpg-border);
  color: var(--fuel-lpg);
}

.nav-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--nav-icon-size);
  height: var(--nav-icon-size);
  flex-shrink: 0;
  color: inherit;
}

.nav-item__icon svg {
  width: 100%;
  height: 100%;
}

.nav-item__label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-item__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--nav-badge-size);
  height: var(--nav-badge-size);
  padding: 0 6px;
  border-radius: var(--badge-radius);
  background: var(--bad);
  color: var(--text-on-accent);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

.nav-item__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--text-faint);
  flex-shrink: 0;
}

/* Report items - idle state must look like any other nav item (icon inherits
   the normal text colour); accent is reserved for hover focus + active. */
.nav-item--report:hover {
  background: var(--nav-hover-bg);
  color: var(--text);
}
.nav-item--report:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent);
}
.nav-item--report.nav-item--active {
  background: var(--nav-active-bg);
  border-color: var(--accent);
  color: var(--accent);
}
.nav-item--report.nav-item--active .nav-item__icon {
  color: var(--accent);
}
.nav-item__chevron {
  transition: transform var(--motion-base);
}

.nav-item--expanded > .nav-item__chevron {
  transform: rotate(180deg);
}

/* Nav Children (Sub-items) — nested under an indented guide line */
.nav-children {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--motion-spring), opacity var(--motion-base);
  opacity: 0;
  margin-left: 18px;
  padding-left: 10px;
  border-left: 1px solid var(--border-soft);
}

.nav-children--open {
  max-height: 500px;
  opacity: 1;
}

.nav-child {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 12px 0 16px;
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--motion-fast), color var(--motion-fast);
  cursor: pointer;
}

.nav-child:hover {
  background: var(--nav-hover-bg);
  color: var(--text);
}

.nav-child:focus-visible {
  outline: none;
  box-shadow: var(--nav-focus-ring);
}

.nav-child--active {
  background: var(--nav-active-bg);
  color: var(--fuel-diesel);
  font-weight: 600;
}

.nav-child--active[data-fuel="diesel"] {
  background: var(--fuel-diesel-bg);
  color: var(--fuel-diesel);
}

.nav-child--active[data-fuel="hfo"] {
  background: var(--fuel-hfo-bg);
  color: var(--fuel-hfo);
}

.nav-child--active[data-fuel="lpg"] {
  background: var(--fuel-lpg-bg);
  color: var(--fuel-lpg);
}

.nav-child__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: inherit;
  opacity: 0.8;
}

.nav-child__icon svg {
  width: 100%;
  height: 100%;
}

/* User/Status Area — profile only (pinned); sync indicator removed */
.sidebar__footer {
  padding: 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}


.sidebar__user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--panel-hover);
}

.sidebar__user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fuel-diesel-dim), var(--fuel-diesel));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-accent);
  flex-shrink: 0;
  overflow: hidden;
}

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

.sidebar__user-avatar svg {
  width: 18px;
  height: 18px;
}

.sidebar__user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.sidebar__user-name {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar__user-role {
  font-size: 10.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Language toggle button — positioned next to the profile label */
.sidebar__lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel-hover);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast);
}

.sidebar__lang-btn:hover {
  background: var(--panel-active);
  border-color: var(--accent-border);
  color: var(--text);
}

.sidebar__lang-btn:focus-visible {
  outline: none;
  box-shadow: var(--nav-focus-ring);
}

.sidebar__lang-btn svg {
  width: 14px;
  height: 14px;
}

.sidebar__lang-label {
  font-family: inherit;
  line-height: 1;
}

.sidebar__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  padding: 0 8px 16px;
}

.sidebar__action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast);
}

.sidebar__action-btn:hover {
  background: var(--panel-hover);
  border-color: var(--fuel-diesel);
  color: var(--text);
}

.sidebar__action-btn:focus-visible {
  outline: none;
  box-shadow: var(--nav-focus-ring);
}

.sidebar__action-btn--primary {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-border);
  color: var(--btn-primary-text);
}

.sidebar__action-btn--primary:hover {
  background: var(--btn-primary-hover);
}

.sidebar__action-btn--danger {
  color: var(--bad);
  border-color: var(--bad-border);
}

.sidebar__action-btn--danger:hover {
  background: var(--bad-bg);
  border-color: var(--bad);
  color: var(--bad);
}

.sidebar__action-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: inherit;
}

.sidebar__action-btn__icon svg {
  width: 100%;
  height: 100%;
}

/* Mobile-only drawer close button */
.sidebar__close {
  display: none;
  margin-left: auto;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  flex-shrink: 0;
}

.sidebar__close svg { width: 20px; height: 20px; }

.sidebar__close:hover { color: var(--text); background: var(--panel-hover); }

/* ---------------------------------------------------------------------------
    MAIN CONTENT AREA
   --------------------------------------------------------------------------- */
.main {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  overflow: hidden;
}

/* ---------------------------------------------------------------------------
   TOP BAR — Sticky, contextual
   --------------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-topbar);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 var(--content-pad);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--topbar-border);
  box-shadow: var(--topbar-shadow);
  flex-shrink: 0;
}

.topbar__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 1;
  min-width: 0;
}

.topbar__breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  color: var(--text-dim);
  white-space: nowrap;
}

.topbar__breadcrumb-item--current {
  color: var(--text);
  font-weight: 600;
}

.topbar__breadcrumb-separator {
  color: var(--text-faint);
  font-size: 12px;
}

.topbar__spacer {
  flex: 1;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.topbar__sync {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
}

.topbar__sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 6px var(--good);
}

.topbar__sync-dot--unsaved {
  background: var(--warn);
  box-shadow: 0 0 6px var(--warn);
}

.topbar__sync-dot--error {
  background: var(--bad);
  box-shadow: 0 0 6px var(--bad);
}

.topbar__sync-dot--syncing {
  background: var(--info);
  box-shadow: 0 0 6px var(--info);
  animation: pulse 1.5s ease-in-out infinite;
}

.topbar__sync-text {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.topbar__user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.topbar__user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fuel-diesel-dim), var(--fuel-diesel));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-accent);
  flex-shrink: 0;
  overflow: hidden;
}

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

.topbar__user-avatar svg {
  width: 15px;
  height: 15px;
}

.topbar__user-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar__hamburger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.topbar__hamburger svg {
  width: 22px;
  height: 22px;
}

/* ---------------------------------------------------------------------------
   CONTENT AREA
   --------------------------------------------------------------------------- */
.content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  /* Stable gutter: switching pages (short -> tall content) never shifts
     the layout horizontally when the scrollbar pops in/out. */
  scrollbar-gutter: stable;
  padding: var(--content-pad);
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
}

.content__header {
  margin-bottom: var(--content-gap);
}

.content__title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 4px;
}

.content__subtitle {
  font-size: var(--fs-sm);
  color: var(--text-faint);
  margin: 0;
}

/* ---------------------------------------------------------------------------
   RESPONSIVE — Rail mode (768px - 1099px)
   --------------------------------------------------------------------------- */
@media (max-width: 1099px) and (min-width: 768px) {
  body {
    grid-template-columns: var(--sidebar-rail-w) 1fr;
  }

  .sidebar {
    width: var(--sidebar-rail-w);
  }

  .sidebar__brand-text,
  .sidebar__section-label,
  .nav-item__label,
  .nav-item__badge,
  .nav-item__chevron,
  .sidebar__sync-text,
  .sidebar__user-info,
  .sidebar__action-btn__label {
    display: none;
  }

  .sidebar__brand {
    justify-content: center;
    padding: 0;
  }

  .nav-item {
    justify-content: center;
    padding: 0;
  }

  .nav-item__icon {
    width: 24px;
    height: 24px;
  }

  .nav-children {
    position: absolute;
    left: var(--sidebar-rail-w);
    top: 0;
    bottom: 0;
    width: 208px;
    background: var(--sidebar-bg);
    border: 1px solid var(--border);
    border-left: none;
    border-radius: 0 12px 12px 0;
    box-shadow: var(--elevation-3);
    padding: 8px;
    margin-left: 0;
    max-height: none;
    opacity: 1;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform var(--motion-base), visibility var(--motion-base);
    z-index: var(--z-sidebar);
  }

  .nav-item:hover .nav-children,
  .nav-item:focus-within .nav-children {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-child {
    padding: 0 12px;
    height: 40px;
  }

  .sidebar__footer {
    padding: 8px;
  }

  .sidebar__sync,
  .sidebar__user,
  .sidebar__action-btn {
    justify-content: center;
    padding: 8px;
  }

  .sidebar__action-btn {
    height: 40px;
  }
}

/* ---------------------------------------------------------------------------
   RESPONSIVE — Mobile drawer (< 768px)
   --------------------------------------------------------------------------- */
@media (max-width: 767px) {
  body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-w);
    max-width: 85vw;
    transform: translateX(-100%);
    transition: transform var(--motion-drawer);
    box-shadow: var(--elevation-3);
    border-right: none;
    overscroll-behavior: contain;
    padding-top: env(safe-area-inset-top, 0);
  }

  .sidebar--open {
    transform: translateX(0);
  }

  /* Comfortable touch targets on phones */
  .nav-child { height: 42px; }
  .nav-item { height: calc(var(--nav-item-h) + 4px); }
  .sidebar__footer { padding-bottom: max(12px, env(safe-area-inset-bottom, 0)); }

  .sidebar__close { display: flex; }

  .sidebar__backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: calc(var(--z-sidebar) - 1);
    opacity: 0;
    transition: opacity var(--motion-base);
  }

  .sidebar__backdrop--visible {
    display: block;
    opacity: 1;
  }

  .topbar__hamburger {
    display: flex;
    flex-shrink: 0;
    /* Exact, predictable top-left placement */
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 10px;
  }

  .topbar {
    gap: 8px;
    padding-left: max(8px, env(safe-area-inset-left, 0));
    padding-right: max(8px, env(safe-area-inset-right, 0));
  }

  .topbar__breadcrumb-item { font-size: 13px; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; display: block; }

  .content {
    padding: 14px;
    padding-bottom: max(14px, env(safe-area-inset-bottom, 0));
  }

  .content__title {
    font-size: var(--fs-xl);
  }
}

/* ---------------------------------------------------------------------------
   NETWORK BANNER
   --------------------------------------------------------------------------- */
.net-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-banner);
  padding: 8px 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  transform: translateY(-100%);
  transition: transform var(--motion-base);
}

.net-banner--visible {
  transform: translateY(0);
}

.net-banner--offline {
  background: var(--bad);
  color: var(--text-on-accent);
}

.net-banner--online {
  background: var(--good);
  color: var(--text-on-accent);
}

/* Adjust topbar when banner visible */
.net-banner--visible + .topbar,
.net-banner--visible ~ .main .topbar {
  top: 36px;
}

/* ---------------------------------------------------------------------------
   PAGE TRANSITIONS
   --------------------------------------------------------------------------- */
.page {
  animation: pageEnter var(--motion-base) both;
  will-change: transform, opacity;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------------------------------------------------------------------
   UTILITY CLASSES
   --------------------------------------------------------------------------- */
.hidden {
  display: none !important;
}

.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;
}