@charset "UTF-8";
/* Base UI and typography utilities (restore common elements Tailwind strips) */
:root {
  --primary: rgb(48, 98, 99);
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-primary: #306263;
  --color-border: #e5e7eb;
  --radius: 1rem;
  --dropdown-line: #e9e9e9;
  /* Primary colour scale — mirrors @theme in tailwind.source.css */
  --primary-50: #f0f9f9;
  --primary-100: #d4edee;
  --primary-200: #a8dcdc;
  --primary-300: #6cc3c4;
  --primary-400: #3aa5a7;
  --primary-500: #2a8e8f;
  --primary-600: #306263;
  --primary-700: #285051;
  --primary-800: #1d3c3d;
  --primary-900: #132829;
  --primary-950: #091617;
}

html {
  height: 100%;
}

body {
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui;
  color: var(--color-text);
  background: white;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  padding: 2rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
@media (max-width: 768px) {
  main {
    padding: 0rem 1rem;
    padding-bottom: 2rem;
  }
}

header,
footer {
  padding: 1rem;
}

dialog {
  /* Reset default centering */
  margin: 0;
  border: none;
  max-height: none;
  max-width: none;
  padding: 0;
  /* Flex column so header/body/footer stack correctly */
  flex-direction: column;
  /* Small screens: pinned to bottom, never exceeds full screen */
  position: fixed;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-height: 92dvh;
  overflow: hidden;
  box-sizing: border-box;
  /* Slide-up animation */
  animation: slideUp 0.25s ease-out;
  border-top: 1px solid #c7c7c7;
  /* Large screens: pinned to the right side */
}
@media (min-width: 769px) {
  dialog {
    top: 0;
    bottom: 0;
    right: 0;
    left: auto;
    width: 400px;
    max-height: 100vh;
    height: 100%;
    border-radius: 0px;
    border-left: 1px solid #c7c7c7;
    background: #fefefe;
    animation: slideRight 0.25s ease-out;
  }
}

dialog::backdrop {
  background: rgba(255, 255, 255, 0.67);
  animation: fadeIn 0.2s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes slideRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* Slide-out (close) animations */
@keyframes slideDown {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}
@keyframes slideLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
dialog.closing {
  animation: slideDown 0.25s ease-in forwards;
}
@media (min-width: 769px) {
  dialog.closing {
    animation: slideLeft 0.25s ease-in forwards;
  }
}

dialog.closing::backdrop {
  animation: fadeOut 0.2s ease-in forwards;
}

/* Paragraphs & headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0.5rem 0;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.125rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.875rem;
}

/* Links */