:root {
  --site-ink: #243447;
  --site-muted: #64748b;
  --site-accent: #d97706;
  --site-accent-dark: #9a3412;
  --site-surface: #ffffff;
  --site-background: #f4f6f8;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--site-background);
  color: var(--site-ink);
  font-family: "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
}

a {
  color: var(--site-accent-dark);
}

a:hover {
  color: var(--site-accent);
}

.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}

.img-rounded {
  border-radius: .75rem;
}

.text-right {
  text-align: right !important;
}

.text-left {
  text-align: left !important;
}

.pull-left {
  float: left !important;
}

.pull-right {
  float: right !important;
}

.btn-default {
  color: var(--site-ink);
  border-color: #cbd5e1;
  background: #fff;
}

.site-navbar {
  position: relative;
  z-index: 1030;
  background: linear-gradient(110deg, #172536, #29465e);
  box-shadow: 0 0.25rem 1rem rgb(15 23 42 / 16%);
}

.site-navbar .navbar-brand {
  letter-spacing: .02em;
}

.site-navbar .nav-link {
  color: rgb(255 255 255 / 78%);
  border-radius: .5rem;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
  color: #fff;
  background: rgb(255 255 255 / 12%);
}

.login-card {
  margin-top: 2rem;
}

.create-card {
  margin-top: 1rem;
}

.create-actions {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 1.25rem;
}

.map-picker {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: .85rem;
  background: #f8fafc;
}

.map-picker-header {
  padding: 1rem 1.1rem .75rem;
}

.map-picker-header h2 {
  margin: 0 0 .25rem;
  font-size: 1.1rem;
}

.map-picker-header p {
  margin: 0;
  color: var(--site-muted);
  font-size: .9rem;
}

#create-map {
  height: 24rem;
}

.create-image-preview {
  display: block;
  width: auto;
  max-width: 16rem;
  max-height: 12rem;
  margin-right: auto;
  margin-left: auto;
  border-radius: .65rem;
  object-fit: contain;
  background: #f1f5f9;
}

.not-found-section + .not-found-section {
  margin-top: 1.5rem;
}

.search-box {
  position: relative;
  width: min(20rem, 100%);
}

.search-box .input-group .form-control {
  min-width: 0;
}

.search-box .input-group .btn {
  border-color: rgb(255 255 255 / 55%);
}

.search-results {
  position: absolute;
  z-index: 1050;
  top: calc(100% + .5rem);
  right: 0;
  left: 0;
  display: none;
  overflow: hidden;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 .75rem 1.5rem rgb(15 23 42 / 22%);
}

.search-results.is-visible {
  display: block;
}

.search-results-heading {
  padding: .55rem .8rem .35rem;
  color: var(--site-muted);
  background: #f8fafc;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.search-result {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .8rem;
  color: var(--site-ink);
  text-decoration: none;
}

.search-result:hover,
.search-result.is-active {
  color: var(--site-ink);
  background: #fef3c7;
  text-decoration: none;
}

.autocomplete-list {
  position: absolute;
  z-index: 1050;
  top: calc(100% + .25rem);
  right: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: .5rem;
  background: #fff;
  box-shadow: 0 .75rem 1.5rem rgb(15 23 42 / 22%);
}

.autocomplete-option {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .55rem .75rem;
  border: 0;
  color: var(--site-ink);
  background: #fff;
  font-size: .95rem;
  text-align: left;
  transition: background-color .15s ease, color .15s ease;
}

.autocomplete-option:hover,
.autocomplete-option:focus {
  background: #fef3c7;
}

.autocomplete-option:focus-visible {
  outline: 2px solid var(--site-accent);
  outline-offset: -2px;
}

.autocomplete-option-icon {
  width: 1rem;
  color: var(--site-accent);
  text-align: center;
}

.search-result img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .35rem;
  object-fit: cover;
}

.body-content {
  flex: 1 0 auto;
  width: 100%;
}

.home-hero {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border-radius: 1.25rem;
  color: #fff;
  background: linear-gradient(120deg, #172536, #49657a);
  box-shadow: 0 .75rem 2rem rgb(15 23 42 / 16%);
}

.home-hero h1 {
  max-width: 42rem;
  margin-bottom: 1rem;
  color: #fff !important;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.home-hero .lead {
  max-width: 42rem;
  color: rgb(255 255 255 / 82%) !important;
}

.eyebrow {
  color: #fbbf24;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.collection-stat {
  display: flex;
  min-height: 7rem;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  color: #fff;
  box-shadow: 0 .5rem 1.5rem rgb(15 23 42 / 10%);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.collection-stat:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 .75rem 1.75rem rgb(15 23 42 / 16%);
  text-decoration: none;
}

.collection-stat-cards {
  background: linear-gradient(120deg, #a14f28, #d97706);
}

.collection-stat-tags {
  background: linear-gradient(120deg, #49657a, #64748b);
}

.collection-stat-icon {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  flex: 0 0 3.25rem;
  place-items: center;
  border-radius: .85rem;
  background: rgb(255 255 255 / 16%);
  font-size: 1.35rem;
}

.collection-stat-label {
  display: block;
  margin-bottom: .15rem;
  color: rgb(255 255 255 / 75%);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.collection-stat strong {
  display: inline-block;
  margin-right: .35rem;
  font-size: 1.75rem;
}

.collection-stat-arrow {
  margin-left: auto;
  color: rgb(255 255 255 / 70%);
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

.home-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .45rem;
  color: var(--site-ink);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
}

.home-card img {
  width: 100%;
  aspect-ratio: 1.55;
  border-radius: .6rem;
  object-fit: cover;
}

.home-card:hover {
  color: var(--site-accent-dark);
  text-decoration: none;
}

.home-tags {
  min-height: 7rem;
}

.site-footer {
  flex: 0 0 auto;
  padding: 1.5rem 0;
  color: var(--site-muted);
  border-top: 1px solid #e2e8f0;
  background: var(--site-surface);
}

.box,
.well,
.card {
  border: 0;
  border-radius: 1rem;
  background: var(--site-surface);
  box-shadow: 0 .5rem 1.5rem rgb(15 23 42 / 7%);
}

.well {
  padding: 1.5rem;
}

.tag-page {
  padding: 1.5rem;
}

.checklist-page {
  max-width: 68rem;
  margin: 0 auto;
}

.checklist-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 1rem;
  color: #fff;
  background: linear-gradient(120deg, #1e3a4f, #35627a);
  box-shadow: 0 .75rem 1.75rem rgb(15 23 42 / 16%);
}

.checklist-hero h1 {
  max-width: 38rem;
  margin-bottom: .75rem;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.checklist-hero .lead {
  max-width: 42rem;
  color: rgb(255 255 255 / 82%);
}

.checklist-download-card {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: 1.25rem;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 1rem;
  background: rgb(255 255 255 / 10%);
}

.checklist-download-card > span:not(.checklist-download-icon) {
  color: rgb(255 255 255 / 75%);
  font-size: .9rem;
}

.checklist-download-card .btn {
  align-self: flex-start;
  margin-top: .75rem;
}

.checklist-download-icon {
  color: #fbbf24;
  font-size: 1.75rem;
}

.checklist-content {
  max-width: 54rem;
  margin: 2rem auto 0;
  padding: 0 1rem;
}

.checklist-copy {
  font-size: 1.05rem;
  line-height: 1.75;
}

.checklist-copy p:last-child {
  margin-bottom: 0;
}

.checklist-downloads {
  margin: 1.5rem 0 0;
  color: var(--site-muted);
}

.checklist-support {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  margin: 2.5rem auto 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid #f0c36d;
  border-radius: 1rem;
  max-width: 68rem;
  background: linear-gradient(135deg, #fffaf0, #fff7df);
  box-shadow: 0 .5rem 1.25rem rgb(120 53 15 / 8%);
}

.checklist-support h2 {
  margin-bottom: .75rem;
}

.checklist-support-copy p {
  max-width: 48rem;
}

.checklist-donate-form {
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .checklist-hero,
  .checklist-support {
    grid-template-columns: 1fr;
  }

  .checklist-donate-form {
    white-space: normal;
  }
  box-shadow: 0 .5rem 1.5rem rgb(15 23 42 / 7%);
}

.tag-page .postcard-thumb-img {
  border: 0 !important;
  box-shadow: none;
}

.tag-page .d-md-block .col-md-12,
.tag-page .d-md-none .col-md-12 {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .75rem;
}

.tag-page .d-md-block .postcard-thumb-img,
.tag-page .d-md-none .postcard-thumb-img {
  margin: 0;
}

.box {
  overflow: hidden;
  border-top: 4px solid #cbd5e1;
  margin-bottom: 1.5rem;
}

.box-header,
.box-body,
.box-footer {
  padding: 1.25rem;
}

.box-header.with-border,
.box-footer {
  border-color: #e2e8f0;
}

.box-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.box-footer {
  background: #f8fafc;
}

.info-box {
  min-height: 104px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--site-surface);
  box-shadow: 0 .5rem 1.5rem rgb(15 23 42 / 7%);
}

.info-box-icon {
  width: 104px;
  height: 104px;
  line-height: 104px;
  background: linear-gradient(135deg, var(--site-accent), #fbbf24);
}

.info-box-content {
  padding: 1rem 1.25rem;
  margin-left: 104px;
}

.info-box-text {
  color: var(--site-muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.info-box-number {
  color: var(--site-ink);
  font-size: 1.35rem;
}

.carousel-image {
  width: 100%;
  height: min(52vw, 34rem);
  max-height: 520px;
  object-fit: contain;
  background: #e2e8f0;
}

.featured-carousel {
  overflow: hidden;
  border-top: 0;
}

.featured-carousel .carousel-item {
  background: #e2e8f0;
}

.featured-carousel .carousel-caption {
  right: 0;
  bottom: 0;
  left: 0;
  padding: 2.5rem 1.5rem 1.25rem;
  text-align: left;
  background: linear-gradient(transparent, rgb(15 23 42 / 78%));
}

.featured-carousel .carousel-caption h2 {
  margin: 0;
  color: #fff !important;
  font-size: clamp(1rem, 2vw, 1.5rem);
}

.featured-carousel .carousel-control-prev,
.featured-carousel .carousel-control-next {
  width: 12%;
}

.featured-carousel .carousel-indicators [data-bs-target] {
  width: 2rem;
  height: .25rem;
  border: 0;
  border-radius: 999px;
}

.featured-carousel .box-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem;
}

.postcard-thumb-img {
  max-width: 100%;
  height: auto;
  margin: .35rem;
  border: 2px solid #cbd5e1;
  transition: transform .2s ease, box-shadow .2s ease;
}

.postcard-thumb-img:hover {
  transform: translateY(-3px);
  box-shadow: 0 .5rem 1rem rgb(15 23 42 / 18%);
}

.postcard-thumb-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  list-style: none;
}

.postcard-thumb-grid > a::before,
.postcard-thumb-grid > a::after {
  content: none !important;
}

.tag {
  margin: .25rem !important;
  padding: .55rem .8rem !important;
  border-radius: 999px;
  font-size: 1rem !important;
  font-weight: 600;
}

.tag-cloud-smallest {
  font-size: .7rem !important;
}

.tag-cloud-small {
  font-size: 1.05rem !important;
}

.tag-cloud-medium {
  font-size: 1.4rem !important;
}

.tag-cloud-large {
  font-size: 1.8rem !important;
}

.tag-cloud-largest {
  font-size: 2.3rem !important;
}

.tag-badge {
  color: #fff !important;
  background: #b7791f !important;
}

.tag-badge:hover,
.tag-badge:focus {
  color: #fff !important;
  background: #975a16 !important;
}

.tag-badge a {
  color: inherit;
  text-decoration: none;
}

.site-tooltip .tooltip-inner {
  max-width: 260px;
  padding: .7rem .9rem;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: .65rem;
  color: #f8fafc;
  background: #1e293b;
  box-shadow: 0 .5rem 1rem rgb(15 23 42 / 25%);
  font-size: .9rem;
  font-weight: 600;
}

.table-responsive {
  border-radius: .75rem;
}

.table > :not(caption) > * > * {
  padding: .85rem;
}

.btn {
  border-radius: .6rem;
  font-weight: 600;
}

.main-photo {
  max-width: 100%;
  border: 6px solid #cbd5e1;
  border-radius: .75rem;
}

#map_canvas {
  min-height: 70vh;
}

.map-info-window {
  width: 220px;
  padding: .15rem;
  color: var(--site-ink);
  font-family: "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.map-info-window h3 {
  margin: 0 0 .4rem;
  font-size: 1rem;
  line-height: 1.25;
}

.map-info-window a {
  text-decoration: none;
}

.map-info-window img {
  display: block;
  width: 100%;
  max-height: 135px;
  margin: .5rem 0;
  border-radius: .45rem;
  object-fit: cover;
}

.map-info-window p {
  margin: 0;
  color: var(--site-muted);
  font-size: .8rem;
  line-height: 1.35;
}

.map-viewport {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
}

body:has(.map-viewport) .body-content {
  width: 100%;
  max-width: none;
  padding: 0 !important;
}

body:has(.map-viewport) .site-footer {
  display: none;
}

@media (max-width: 767.98px) {
  .body-content {
    padding-top: 1.25rem !important;
  }

  .search-box {
    flex: 1 1 auto;
  }

  .tag-page {
    padding: 1rem;
  }

  .well {
    padding: 1rem;
  }

  .checklist-page,
  .checklist-support {
    padding: 1rem;
  }

  .home-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .box-header,
  .box-body,
  .box-footer {
    padding: 1rem;
  }

  .info-box-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 2rem;
  }

  .info-box {
    min-height: 80px;
  }

  .info-box-content {
    margin-left: 80px;
  }

  .info-box-number {
    font-size: 1.1rem;
  }

  .carousel-image {
    height: min(70vw, 24rem);
  }
}

.postcard-alert {
  max-width: 52rem;
  margin: 0 auto 1.5rem;
}

.postcard-main-image {
  max-height: 70vh;
  object-fit: contain;
}

.postcard-comparison {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.postcard-comparison img {
  display: block;
}

.postcard-comparison img[data-image-now] {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.postcard-map,
.postcard-streetview {
  width: 100%;
  height: 25rem;
  border: 0;
}

.postcard-details dt,
.postcard-details dd {
  margin-bottom: 0.75rem;
  border: 0;
}

.postcard-page .box-header.with-border,
.postcard-page .box-footer {
  border-top: 0;
  border-bottom: 0;
}

.biography-page {
  max-width: 62rem;
  margin: 0 auto;
}

.biography-header h1 {
  max-width: 48rem;
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.2;
}

.biography-body {
  max-width: 56rem;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
}

.biography-body h2 {
  margin: 2.5rem 0 1rem;
  padding-top: .5rem;
  color: var(--site-ink);
  font-size: 1.55rem;
  line-height: 1.25;
  scroll-margin-top: 5rem;
}

.biography-body p {
  margin-bottom: 1.25rem;
}

.biography-body li {
  margin-bottom: .35rem;
}

.biography-toc {
  margin: 1rem 0 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  background: #f8fafc;
}

.biography-toc h2 {
  margin: 0 0 .75rem;
  padding: 0;
  font-size: 1.1rem;
}

.biography-toc ul {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2;
}

.biography-body .caption {
  margin-bottom: 1.5rem;
}

.biography-body .caption img {
  max-height: 26rem;
  object-fit: contain;
}

.blog-archive {
  align-items: flex-start;
}

.blog-card {
  margin-bottom: 1.5rem;
  border: 0;
  border-top: 3px solid var(--site-accent);
  box-shadow: 0 .25rem .9rem rgb(15 23 42 / 9%);
}

.blog-card .card-title {
  margin-bottom: .65rem;
  line-height: 1.3;
}

.blog-card .card-title a {
  color: var(--site-ink);
  text-decoration: none;
}

.blog-card .card-title a:hover {
  color: var(--site-accent-dark);
  text-decoration: underline;
}

.blog-card .card-subtitle {
  margin-bottom: 1.25rem;
}

.blog-card .card-text {
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.blog-card .card-text p:last-child {
  margin-bottom: 0;
}

.blog-archive-sidebar {
  position: sticky;
  top: 1.5rem;
}

.blog-archive-sidebar ul {
  margin: 0;
  padding-left: 1.25rem;
}

.blog-archive-sidebar li + li {
  margin-top: .45rem;
}

.blog-next-steps {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid #e2e8f0;
}

.blog-next-steps h2 {
  margin-bottom: 1rem;
}

.blog-explore-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: .65rem;
  color: var(--site-ink);
  background: #f8fafc;
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.blog-explore-link:hover {
  border-color: var(--site-accent);
  background: #fff;
  color: var(--site-ink);
  text-decoration: none;
  transform: translateY(-1px);
}

.blog-explore-link strong {
  margin-bottom: .35rem;
  color: var(--site-accent-dark);
}

.blog-explore-link span {
  color: var(--site-muted);
  font-size: .95rem;
  line-height: 1.5;
}

@media (max-width: 575.98px) {
  .postcard-map,
  .postcard-streetview {
    height: 20rem;
  }
}
