:root,
body.quarto-light {
  --garden-accent: #06805e;
  --garden-deep: #141f24;
  --garden-muted: #607477;
  --garden-surface: #ffffff;
  --garden-border: #d8e0df;
}

body.quarto-dark {
  --garden-accent: #73d7b6;
  --garden-deep: #0b1113;
  --garden-muted: #9bb0ad;
  --garden-surface: #172124;
  --garden-border: #314044;
}

body {
  font-size: 1.06rem;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.025em;
}

.navbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(20, 31, 36, 0.12);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-page #title-block-header {
  display: none;
}

.hero-garden {
  position: relative;
  overflow: hidden;
  margin: 1rem 0 3.5rem;
  padding: clamp(2rem, 7vw, 5.5rem);
  color: #f6fbfa;
  background:
    radial-gradient(circle at 85% 20%, rgba(6, 128, 94, 0.72), transparent 34%),
    linear-gradient(135deg, #141f24 0%, #20353c 56%, #004346 100%);
  border-radius: 1.25rem;
  box-shadow: 0 20px 60px rgba(20, 31, 36, 0.18);
}

.hero-garden::after {
  content: "";
  position: absolute;
  width: 18rem;
  height: 18rem;
  right: -7rem;
  bottom: -10rem;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.hero-garden h1 {
  max-width: 15ch;
  color: inherit;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.98;
}

.hero-garden p {
  max-width: 48rem;
  margin: 1.5rem 0 0;
  color: #dce9e6;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.garden-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  color: #8fe0c3;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.garden-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.garden-actions .btn {
  border-radius: 999px;
  font-weight: 700;
}

.hero-garden .btn-outline-light {
  color: #f6fbfa;
  border-color: rgba(246, 251, 250, 0.72);
}

.hero-garden .btn-outline-light:hover,
.hero-garden .btn-outline-light:focus-visible {
  color: #141f24;
  background: #f6fbfa;
  border-color: #f6fbfa;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--garden-accent);
  outline-offset: 3px;
}

.garden-section {
  margin-block: 3.5rem;
}

.garden-section > h2 {
  margin-bottom: 0.25rem;
}

.garden-section-intro {
  max-width: 46rem;
  color: var(--garden-muted);
}

.quarto-grid-item.card {
  overflow: hidden;
  border: 1px solid var(--garden-border);
  background: var(--garden-surface);
  box-shadow: 0 8px 30px rgba(20, 31, 36, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.quarto-grid-item.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 38px rgba(20, 31, 36, 0.12);
}

.quarto-grid-item .card-title {
  font-weight: 700;
}

/* Project logos are identities, not editorial cover images: show them uncropped. */
#listing-featured-project .quarto-grid-item.card {
  display: grid;
  grid-template-columns: minmax(15rem, 32%) 1fr;
  align-items: stretch;
}

#listing-featured-project .card-img-top,
.project-listing-page #listing-listing .card-img-top {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1rem;
  background: color-mix(in srgb, var(--garden-accent) 6%, var(--garden-surface));
}

#listing-featured-project .card-img-top {
  min-height: 20rem;
}

#listing-featured-project .card-body {
  align-self: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}

#listing-featured-project .thumbnail-image.card-img,
.project-listing-page #listing-listing .thumbnail-image.card-img {
  width: 100%;
  max-width: 100%;
  object-fit: contain !important;
  object-position: center;
}

#listing-featured-project .thumbnail-image.card-img {
  height: 18rem !important;
}

.project-listing-page #listing-listing .card-img-top {
  min-height: 17rem;
}

.project-listing-page #listing-listing .thumbnail-image.card-img {
  height: 15rem !important;
}

.listing-category {
  border-radius: 999px;
}

.empty-garden {
  max-width: 48rem;
  margin: 3rem auto;
  padding: clamp(2rem, 6vw, 4rem);
  text-align: center;
  border: 1px dashed var(--garden-muted);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--garden-accent) 5%, transparent);
}

.empty-garden .bi {
  color: var(--garden-accent);
  font-size: 2rem;
}

.wide-table-scroll {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-block: 1rem 1.5rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--garden-border);
  border-radius: 0.35rem;
  -webkit-overflow-scrolling: touch;
}

.wide-table-scroll:focus-visible {
  outline: 3px solid var(--garden-accent);
  outline-offset: 3px;
}

.wide-table-scroll table {
  width: max-content;
  min-width: 100%;
  margin-bottom: 0;
  white-space: nowrap;
}

.wide-table-scroll th,
.wide-table-scroll td {
  padding: 0.45rem 0.65rem;
  vertical-align: top;
}

details {
  margin: 1.25rem 0;
  border: 1px solid var(--garden-border);
  border-radius: 0.7rem;
  background: var(--garden-surface);
}

details > summary {
  padding: 0.85rem 1rem;
  color: var(--garden-accent);
  font-weight: 700;
  cursor: pointer;
}

details > :not(summary) {
  margin-inline: 1rem;
}

.leaflet-archive {
  width: 100%;
  min-height: 500px;
  border: 1px solid var(--garden-border);
  border-radius: 0.65rem;
}

.quarto-about-jolla .about-link {
  border-radius: 999px;
}

body.quarto-dark .navbar,
body.quarto-dark .quarto-grid-item.card {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}

body.quarto-dark .btn-success,
body.quarto-dark .btn-success:hover,
body.quarto-dark .btn-success:focus-visible {
  color: #081411;
}

@media (max-width: 767.98px) {
  #listing-featured-project .quarto-grid-item.card {
    display: block;
  }

  #listing-featured-project .card-img-top {
    min-height: 17rem;
  }

  #listing-featured-project .thumbnail-image.card-img {
    height: 15rem !important;
  }
}

@media (max-width: 575.98px) {
  body { font-size: 1rem; }
  .hero-garden { border-radius: 0.85rem; }
  .hero-garden h1 { font-size: 2.65rem; }
  .garden-actions { align-items: stretch; flex-direction: column; }
  .garden-actions .btn { width: 100%; }
  .leaflet-archive { min-height: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
