/*
 * Cape & Islands Hunger Network overrides on top of the Alistia template (style.css, recolored:
 * red -> teal #0d6883, cyan -> green #3d8b3d, yellow -> sage #9cc2a5, footer -> deep teal).
 * Brand colors come from the logo; cranberry #a4161a is the old site's divider color.
 */
:root {
  --hn-teal: #0d6883;
  --hn-teal-dark: #0a4f63;
  --hn-teal-deep: #0b3c4a;
  --hn-green: #3d8b3d;
  --hn-green-dark: #2f7330;
  --hn-sage: #9cc2a5;
  --hn-sage-light: #eef5ef;
  --hn-cranberry: #a4161a;
  --hn-ink: #1d2b31;
  --hn-muted: #55656c;
  --hn-paper: #f7f9f8;
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: 'IBM Plex Sans Variable', 'IBM Plex Sans', system-ui, sans-serif;
  color: var(--hn-ink);
  background: #fff;
}
a {
  color: var(--hn-teal);
}
a:hover {
  color: var(--hn-teal-dark);
}
:focus-visible {
  outline: 3px solid var(--hn-green);
  outline-offset: 2px;
}
.pre-line {
  white-space: pre-line;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--hn-teal);
  color: #fff;
  padding: 10px 16px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  color: #fff;
}
.announcement-bar {
  background: var(--hn-cranberry);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-weight: 500;
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ---------- Logo ---------- */
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--hn-teal);
  line-height: 1.05;
}
.site-logo img {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
}
.site-logo__text {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.site-logo__top {
  font-size: 17px;
}
.site-logo__bottom {
  font-size: 15px;
  color: var(--hn-teal-dark);
}
.site-logo--light,
.site-logo--light .site-logo__bottom {
  color: #fff;
}
.site-logo--light img {
  background: #fff;
  border-radius: 50%;
  padding: 2px;
}

/* ---------- Header ---------- */
.fl-header .nav-logo {
  min-width: 260px;
}
.fl-header .nav-item {
  position: relative;
}
.fl-header .nav-item .sub-toggle {
  border: 0;
  background: none;
  padding: 0 4px;
  color: inherit;
  font-size: 10px;
  opacity: 0.6;
}
.fl-header .nav-item.is-open > .sub-nav,
.fl-header .nav-item:focus-within > .sub-nav {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.fl-header .current-menu-item > .main-menu-link {
  color: var(--hn-teal) !important;
}
.fl-header .link-reg a {
  color: var(--hn-ink);
}
.fl-header .link-reg a:hover {
  color: var(--hn-teal);
}
.fl-header .submit__listing,
.fl-header .submit__listing:hover {
  color: #fff !important;
}
.fl-mobile-nav {
  min-height: 76px;
}
.fl-mobile-nav .mobile-logo-img {
  width: 230px;
  margin-left: -115px;
  padding: 0;
}
.fl-mobile-nav .mobile-logo-img .site-logo img {
  width: 44px;
  height: 44px;
}
.fl-mobile-nav .site-logo__top {
  font-size: 14px;
}
.fl-mobile-nav .site-logo__bottom {
  font-size: 12px;
}
.fl-mobile-nav .m-donate {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--hn-green);
  color: #fff;
  padding: 8px 14px;
  font-weight: 600;
  border-radius: 4px;
  font-size: 14px;
}
.fl-mobile-nav .dl-menuwrapper .dl-menu {
  z-index: 200;
  min-width: 260px;
}
.dl-menuwrapper .dl-child a {
  padding-left: 40px !important;
  font-size: 15px !important;
  opacity: 0.9;
}
.dl-menuwrapper .dl-trigger {
  text-indent: -900em;
}
@media (max-width: 420px) {
  .fl-mobile-nav .site-logo__text {
    display: none;
  }
  .fl-mobile-nav .mobile-logo-img {
    width: 60px;
    margin-left: -30px;
  }
}

/* ---------- Buttons ---------- */
.link__template {
  border: 0;
  color: #fff;
  text-decoration: none;
}
.link__template:hover {
  color: #fff;
}
.link__template--ghost {
  background: #fff !important;
  color: var(--hn-teal) !important;
  box-shadow: inset 0 0 0 2px var(--hn-teal);
}
.link__template--ghost .btn-icon-span {
  background: var(--hn-teal) !important;
  color: #fff;
}
button.link__template[disabled] {
  opacity: 0.7;
}

/* ---------- Home: hero ---------- */
.first__screen-kicker {
  color: var(--hn-green-dark);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.first__screen-title {
  color: var(--hn-ink);
}
.first__screen .hero-town {
  border: 0;
  background: transparent;
  max-width: 150px;
  color: var(--hn-ink);
  text-align: left;
}
.first__screen .layer1 img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}
.first__screen-recent a {
  color: var(--hn-teal);
}

/* ---------- Home: categories ---------- */
.hand__picked-wrap {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}
.hand__picked-item .fl-icon-box i {
  font-size: 46px;
  color: var(--hn-teal);
}
.hand__picked-item:hover .fl-icon-box i {
  color: #fff;
}
.hand__picked-subtitle,
.popular__listing-subtitle,
.reviews__subtitle {
  font-size: 18px;
  font-weight: 500;
}
.hand__picked-featured {
  font-size: 18px;
  font-weight: 400;
  margin-top: 40px;
}
@media (max-width: 991px) {
  .hand__picked-row {
    flex-wrap: wrap;
  }
  .hand__picked-row > .col {
    flex: 0 0 50%;
    margin-top: 0 !important;
  }
}
@media (max-width: 575px) {
  .hand__picked-row > .col {
    flex: 0 0 100%;
  }
}

/* ---------- Home: news band ---------- */
.featured__category_box img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}
.featured__category_box .caption-info .h5 {
  color: #fff;
  font-size: 18px;
  line-height: 1.3;
}
.featured__category_box .caption-info .h6 {
  color: #fff;
  margin: 0;
  font-weight: 400;
  opacity: 0.9;
}
.featured__category-subtitle {
  font-size: 18px;
}

/* ---------- Listing cards ---------- */
.listing-card__media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  height: auto;
}
.listing-card__type {
  position: absolute;
  left: 15px;
  bottom: 15px;
  background: rgba(11, 60, 74, 0.88);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 3px;
}
.listing-card__media {
  position: relative;
}
.listing-card__body .title {
  font-size: 20px;
  line-height: 1.3;
  margin: 0;
}
.listing-card__body .title a {
  color: var(--hn-ink);
}
.listing-card__body .title a:hover {
  color: var(--hn-teal);
}
.listing-card .body-text--aka {
  font-style: italic;
  margin-bottom: 0;
}
.listing-card__info .data-item a {
  color: var(--hn-teal);
  font-weight: 600;
}
.listing__products .nav-pills .nav-link {
  border: 0;
}

/* ---------- Page title band ---------- */
.breadcrumbs {
  background: linear-gradient(120deg, var(--hn-teal-deep), var(--hn-teal)) !important;
  min-height: 220px;
  padding: 50px 0;
  margin-bottom: 60px;
}
.breadcrumbs .title {
  color: #fff;
}
.breadcrumbs__intro {
  color: rgba(255, 255, 255, 0.9);
  max-width: 760px;
  font-size: 18px;
  margin: 8px 0 14px;
}
.breadcrumbs ul,
.breadcrumbs ul a,
.breadcrumbs ul span {
  color: rgba(255, 255, 255, 0.85);
}
.breadcrumbs ul a:hover {
  color: #fff;
}

/* ---------- Directory ---------- */
.page-card {
  padding-bottom: 80px;
}
.buttons-list__grid button {
  border: 0;
  background: none;
  font-size: 18px;
  padding: 6px 10px;
  color: var(--hn-muted);
}
.buttons-list__grid button.filter__active {
  color: var(--hn-teal);
}
.aside__box .input-group {
  margin-bottom: 14px;
}
.aside__box .form-control,
.aside__box .form-select {
  height: 52px;
  border-radius: 4px;
}
.btn-reset-filters {
  border: 0;
  background: none;
  color: var(--hn-teal);
  text-decoration: underline;
  padding: 0;
}
.aside__help p {
  color: var(--hn-muted);
}
.empty-state {
  padding: 30px;
  background: var(--hn-paper);
  border-radius: 6px;
}
.directory-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #e5eaec;
}
.directory-list li {
  padding: 14px 4px;
  border-bottom: 1px solid #e5eaec;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
}
.directory-list__name {
  font-weight: 600;
  font-size: 17px;
}
.directory-list__aka,
.directory-list__meta {
  color: var(--hn-muted);
}
.directory-list__web {
  margin-left: auto;
  font-size: 14px;
}

/* ---------- Listing detail ---------- */
.listing-detail__image {
  position: relative;
  margin-bottom: 30px;
}
.listing-detail__image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}
.listing-detail__lede {
  font-size: 20px;
}
.listing-detail__note {
  background: var(--hn-sage-light);
  border-left: 4px solid var(--hn-green);
  padding: 14px 18px;
  margin-top: 24px;
}
.listing-facts ul li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: baseline;
}
.listing-facts ul li i {
  color: var(--hn-teal);
  width: 18px;
}
.aside__box {
  margin-bottom: 30px;
}
.section-heading {
  font-size: 28px;
  margin-bottom: 24px;
}

/* ---------- Rich text (CMS) ---------- */
.rich-text {
  font-size: 17px;
  line-height: 1.75;
}
.rich-text h2,
.rich-text h3,
.rich-text h4 {
  margin: 1.6em 0 0.6em;
}
.rich-text ul,
.rich-text ol {
  padding-left: 1.3em;
  margin-bottom: 1.2em;
}
.rich-text li {
  margin-bottom: 0.4em;
}
.rich-text blockquote {
  border-left: 4px solid var(--hn-sage);
  padding-left: 18px;
  color: var(--hn-muted);
  font-style: italic;
}
.rich-text img {
  max-width: 100%;
  height: auto;
}
.cms-page__image {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ---------- News ---------- */
.news-page {
  padding-bottom: 80px;
}
.post-fl-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 750 / 410;
  object-fit: cover;
}
.post-fl .title a {
  color: var(--hn-ink);
}
.post-fl .title a:hover {
  color: var(--hn-teal);
}
.post-gallery img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.post-tags li {
  background: var(--hn-sage-light);
  color: var(--hn-green-dark);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 14px;
}
.post-cta {
  margin-top: 50px;
  padding: 30px;
  background: var(--hn-sage-light);
  border-radius: 6px;
}

/* ---------- Events ---------- */
.event-card {
  display: flex;
  gap: 22px;
  padding: 26px;
  background: #fff;
  border: 1px solid #e5eaec;
  border-radius: 6px;
  height: 100%;
}
.event-card__date {
  flex: 0 0 76px;
  height: 84px;
  background: var(--hn-teal);
  color: #fff;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.event-card--past .event-card__date {
  background: var(--hn-muted);
}
.event-card__month {
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.event-card__day {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}
.event-card__title {
  font-size: 20px;
  margin-bottom: 6px;
}
.event-card__when {
  font-weight: 600;
  color: var(--hn-teal-dark);
  margin-bottom: 6px;
}
.event-card__format,
.event-card__location,
.event-card__summary {
  margin-bottom: 6px;
  color: var(--hn-muted);
}
.events-band .item-card {
  padding: 34px;
}
.events-band .event-icon {
  font-size: 34px;
  margin-bottom: 14px;
  display: block;
}
.events-band .event-date {
  font-weight: 600;
  color: var(--hn-teal-dark);
}
.events-band .event-location {
  white-space: pre-line;
}

/* ---------- Forms ---------- */
.box-form .form-label {
  font-weight: 600;
  margin: 10px 0 6px;
  display: block;
}
.box-form input.form__input,
.box-form select.form__input,
.box-form textarea {
  margin-bottom: 8px;
}
.box-form select.form__input {
  height: 56px;
}
.form-success {
  background: var(--hn-sage-light);
  border-left: 4px solid var(--hn-green);
  padding: 18px 20px;
  font-size: 17px;
  margin: 0;
}
.form-error {
  color: var(--hn-cranberry);
  font-weight: 500;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
}
.footer .form-email form {
  position: relative;
  width: 100%;
}
.footer .form-success {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.footer .form-error {
  color: #ffd2d2;
  margin-top: 8px;
}

/* ---------- Donate ---------- */
.donate-note {
  color: var(--hn-muted);
  font-size: 15px;
  margin-top: 14px;
}
.donate-address {
  font-weight: 600;
}
.donate-ways li {
  margin-bottom: 8px;
}
.donate-qr img {
  max-width: 240px;
  height: auto;
}
.donate-photo {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ---------- Footer ---------- */
.footer .title {
  font-size: 22px;
}
.footer .card-list {
  gap: 14px;
}
.footer .card-list img {
  object-fit: cover;
  border-radius: 4px;
}
.footer .card-title {
  font-size: 15px;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 4px;
}
.footer .logo-footer {
  margin-bottom: 20px;
}

/* ---------- 404 ---------- */
.error-404__code {
  font-size: 110px;
  font-weight: 700;
  color: var(--hn-sage);
  line-height: 1;
  margin: 0;
}
.error-404__title {
  margin: 10px 0 14px;
}
.error-404__text {
  color: var(--hn-muted);
}

/* ---------- Fixes on the template ---------- */
/* The template's ".link__template span" sizes the icon box; keep it off the label. */
.link__template {
  margin-bottom: 0;
  max-width: 340px;
}
.link__template span.text {
  display: block;
  width: 100%;
  height: auto;
  background: none !important;
  text-align: center;
  line-height: 1.2;
  padding: 0 12px;
}
.link__template .btn-icon-span {
  flex: 0 0 64px;
  width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.featured__category .link__template {
  margin-top: 50px;
}
/* "We offer" band: the Network's own photo in place of the template stock image. */
.we__offer {
  background: linear-gradient(rgba(11, 60, 74, 0.55), rgba(11, 60, 74, 0.55)), url(/images/farm-stand-1600.webp) no-repeat center / cover;
}
.we__offer .we__offer-title,
.we__offer .col-a-right p {
  color: #fff;
}
.we__offer-card .text {
  font-style: normal;
  color: var(--hn-muted);
}
/* News band captions: readable over any photo. */
.featured__category_box a {
  display: block;
  position: relative;
  overflow: hidden;
}
.featured__category_box .caption-info {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82) 45%);
  padding: 60px 16px 34px;
}
.featured__category_box_style2 .caption-info {
  bottom: 0;
}
.featured__category_box:hover .caption-info {
  bottom: 0;
}
.featured__category_box .caption-decore {
  display: none;
}
/* Header: keep the logo on one line and the right-hand links in a row. */
.fl-header .nav-logo .site-logo__text {
  white-space: nowrap;
}
.fl-header .link-reg {
  flex-wrap: nowrap !important;
  flex-direction: row !important;
  gap: 24px;
}
.fl-header .link-reg ul {
  margin-bottom: 0 !important;
  white-space: nowrap;
}
.fl-header .logo-img img,
.site-logo img {
  max-width: 56px;
}
.fl-header .nav-logo {
  padding: 12px 28px;
}
.fl-header .nav-logo img {
  min-width: 0;
  width: 56px;
}
.featured__category_box .caption-info .h5,
.featured__category_box .caption-info .h6 {
  color: #fff !important;
}
.footer .card-list img {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
}
.popular__listing.mb-105 {
  margin-bottom: 0 !important;
}
.breadcrumbs ul li a,
.breadcrumbs ul li span {
  color: rgba(255, 255, 255, 0.88) !important;
}
.breadcrumbs ul li a:hover {
  color: #fff !important;
  text-decoration: underline;
}
.rich-text p {
  margin-bottom: 1.1em;
}
.rich-text a {
  color: var(--hn-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.aside__pop-posts .card-list img {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  object-fit: cover;
  border-radius: 4px;
}
.aside__pop-posts .card-content .adress i {
  margin-right: 6px;
}
/* The footer's signup band rises into the page; leave room for it. */
main#main {
  padding-bottom: 140px;
}
