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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
}

.main-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

header a.site-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: #111;
}

header nav {
  display: flex;
  gap: 1rem;
}

header nav a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: #4b5563;
}

header nav a:hover {
  color: #111;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
h2 {
  font-size: 1.25rem;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.25rem;
}

.filters {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.filters label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.filters select {
  font-size: 0.9rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  color: #1a1a1a;
  background: #fff;
}

.filter-empty {
  color: #6b7280;
  font-style: italic;
}

.size-badge {
  display: inline-block;
  background: #f0fdf4;
  color: #15803d;
  border-radius: 4px;
  padding: 0.1rem 0.5rem;
  font-size: 0.8rem;
}

.company-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.company-card {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.company-card strong {
  font-size: 1rem;
}
.company-card a {
  color: #2563eb;
  text-decoration: none;
}
.company-card a:hover {
  text-decoration: underline;
}

.company-links {
  margin-left: 0.75rem;
  font-size: 0.875rem;
  color: #6b7280;
}
.company-card p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: #4b5563;
}

.company-detail h1 {
  margin-bottom: 0.5rem;
}
.category-badge {
  display: inline-block;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.company-detail .company-links {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.description {
  color: #374151;
}

.jobs {
  margin-top: 2rem;
}

.job-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.job-card {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.job-card a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}
.job-card a:hover {
  text-decoration: underline;
}

.job-meta {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.2rem;
}
.job-meta a {
  color: #4b5563;
  font-weight: 600;
  text-decoration: none;
}
.job-meta a:hover {
  text-decoration: underline;
}

.discipline-badge {
  display: inline-block;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 4px;
  padding: 0.1rem 0.5rem;
  font-size: 0.8rem;
  margin: 0 0.35rem;
}

.job-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.job-section {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}

.job-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  list-style: none;
  background: #f9fafb;
  font-weight: 600;
}

.job-section summary::-webkit-details-marker {
  display: none;
}

.job-section summary::before {
  content: "\25B8";
  display: inline-block;
  margin-right: 0.5rem;
  color: #6b7280;
  transition: transform 0.15s ease;
}

.job-section[open] summary::before {
  transform: rotate(90deg);
}

.job-section-title {
  color: #111827;
  margin-right: auto;
}

.job-section-count {
  font-size: 0.8rem;
  font-weight: 500;
  color: #6b7280;
  background: #eff6ff;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

.job-section .job-list {
  padding: 0 1rem;
}

.job-section .job-card:last-child {
  border-bottom: none;
}

/* Footer styles */
footer {
  margin-top: 3rem;
  padding-top: 1rem;

  font-size: 0.8rem;
  color: #9ca3af;
}

footer .landscape {
  position: relative;
  width: 100%;
  height: 400px;
  background: linear-gradient(#bce7fc00, #bce7fc72, #bce7fc); /* Sky gradient */
  overflow: hidden;
}

footer .hill {
  position: absolute;
  border-radius: 50%; /* Converts square to a massive circle */
}

/* Background Hill: Lighter, taller, shifted left */
footer .back-hill {
  width: 120%;
  height: 300px;
  background-color: #8cd697;
  bottom: -100px;
  left: -10%;
}

/* Foreground Hill: Darker, shorter, shifted right */
footer .front-hill {
  width: 130%;
  height: 250px;
  background: linear-gradient(#5cb870,#498c57);
  bottom: -120px;
  right: -15%;
}

footer .footer-hospital {
  position: absolute;
  left: 50%;
  bottom: .5em;
  transform: translateX(-50%);
  z-index: 1;
}
