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

html,
body {
  height: 100%;
}

body {
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

html {
  font-size: 100%;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  background-color: #f8f9fa;
  color: #343a40;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: #28527a;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #28527a;
  text-decoration: underline;
}
a:hover {
  color: #1b3a57;
}

code {
  font-family: monospace;
  background-color: #dee2e6;
  padding: 0 0.25rem;
  border-radius: 3px;
}

.container {
  padding: 1rem;
}

.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.button--primary {
  background-color: #28527a;
  color: #ffffff;
}
.button--primary:hover {
  background-color: #1b3a57;
}
.button--secondary {
  background-color: #dee2e6;
  color: #343a40;
}
.button--secondary:hover {
  background-color: rgb(207.4913793103, 213.25, 219.0086206897);
}
.button--danger {
  background-color: #dc3545;
  color: #ffffff;
}
.button--danger:hover {
  background-color: rgb(210.9493670886, 36.5506329114, 53.2594936709);
}
.button--small {
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
}
.button--large {
  font-size: 1.125rem;
  padding: 0.75rem 1.5rem;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #343a40;
}

input[type=text],
input[type=email],
input[type=password],
select,
textarea {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 16px;
  line-height: 1.6;
  color: #343a40;
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #28527a;
  box-shadow: 0 0 0 2px rgba(40, 82, 122, 0.2);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:disabled,
select:disabled,
textarea:disabled {
  background-color: #f8f9fa;
  cursor: not-allowed;
}

.form-group {
  margin-bottom: 1rem;
}

.form-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: #28527a;
  color: white;
}

.navbar.sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #28527a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.navbar-brand a {
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  font-weight: 600;
  color: white;
  text-decoration: none;
}

.navbar-menu {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  position: relative;
}

.navbar-menu > li > a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  transition: filter 0.2s ease;
}

.navbar-menu li a:hover {
  filter: brightness(1.1);
}

.navbar-end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-user-email {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
}

.card {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.card--no-padding {
  padding: 0;
}
.card--borderless {
  border: none;
}
.card--shadow {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.card__header {
  font-weight: bold;
  font-size: 1.1rem;
  color: #28527a;
  margin-bottom: 0.5rem;
}
.card__body {
  flex: 1;
  color: #343a40;
}
.card__footer {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #343a40;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.alert {
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
}
.alert--info {
  background-color: rgb(180.5335968379, 239.1758893281, 250.9664031621);
  color: #343a40;
  border-color: #0dcaf0;
}
.alert--success {
  background-color: rgb(131.8125, 232.1875, 185.65);
  color: #343a40;
  border-color: #198754;
}
.alert--warning {
  background-color: rgb(255, 237.625, 185.5);
  color: #343a40;
  border-color: #ffc107;
}
.alert--danger {
  background-color: rgb(246.3607594937, 205.1392405063, 209.0886075949);
  color: #343a40;
  border-color: #dc3545;
}

.alert__close {
  background: none;
  border: none;
  font-size: 1.25rem;
  float: right;
  color: inherit;
  cursor: pointer;
}

dl dt {
  font-weight: bold;
}
dl dd {
  padding-bottom: 0.5rem;
}

tr.not-our-circus {
  font-style: italic;
  color: #6c757d;
}
tr.not-our-circus a {
  color: #6c757d;
}

.grant-request-infobox {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.grant-request-infobox .card {
  flex-grow: 1;
}
.grant-request-infobox .card-header {
  font-size: 1.25rem;
  margin-bottom: 0rem;
}
.grant-request-infobox .card-subheader {
  padding-bottom: 0rem;
  margin-bottom: 0rem;
}
.grant-request-infobox .column-container {
  display: flex;
  column-gap: 1rem;
}
.grant-request-infobox .column-container .column {
  flex-grow: 1;
}

dialog {
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 10px 20px rgba(0, 0, 0, 0.15);
  padding: 0;
  max-width: 500px;
  width: 90%;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.dialog-content {
  padding: 2rem;
}

.dialog-content h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #333;
}

.dialog-content p {
  margin-bottom: 1.5rem;
  color: #666;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #4A90E2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-group small {
  display: block;
  margin-top: 0.5rem;
  color: #666;
  font-size: 0.875rem;
}

.dialog-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

dialog#award_dialog {
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 10px 20px rgba(0, 0, 0, 0.15);
  padding: 0 !important;
  width: clamp(280px, 90vw, 500px) !important;
  box-sizing: border-box !important;
}

dialog#award_dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

dialog#award_dialog .dialog-content {
  padding: 2rem;
  box-sizing: border-box;
}

dialog#award_dialog h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

dialog#award_dialog p {
  margin-bottom: 1.5rem;
}

dialog#award_dialog .form-group {
  margin-bottom: 1.5rem;
}

dialog#award_dialog .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

dialog#award_dialog .form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

dialog#award_dialog .form-input:focus {
  outline: none;
  border-color: #4A90E2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

dialog#award_dialog .form-group small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

dialog#award_dialog .dialog-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}
