:root {
  --fair-ink: #17362e;
  --fair-green: #0f7772;
  --fair-teal: #108b8c;
  --fair-rose: #bd566d;
  --fair-gold: #c99a39;
  --fair-paper: #fffdf8;
  --fair-line: #c8ddd7;
}

.hfg-fair-page,
.hfg-fair-page * {
  letter-spacing: 0;
}

.hfg-fair-hero::after {
  background: rgba(16, 38, 31, .46);
}

.hfg-fair-benefit {
  padding: 34px 24px;
  color: #fff;
  background: var(--fair-ink);
}

.hfg-fair-benefit__inner {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 34px;
  margin-inline: auto;
}

.hfg-fair-benefit__label {
  display: grid;
  min-height: 74px;
  place-items: center;
  border: 2px solid var(--fair-gold);
  color: #fff;
  font-family: Jost, sans-serif;
  font-size: 17px;
  font-weight: 800;
}

.hfg-fair-benefit h2 {
  margin: 0 0 7px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
}

.hfg-fair-benefit p:last-child {
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  line-height: 1.8;
}

.hfg-fair-explorer {
  padding-top: 84px;
}

.hfg-fair-calendar {
  width: min(900px, 100%);
  margin: 0 auto 86px;
  border: 3px solid var(--fair-ink);
  background: #fff;
  box-shadow: 10px 10px 0 var(--fair-gold);
}

.hfg-fair-calendar__header {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 132px;
  align-items: center;
  border-bottom: 2px solid var(--fair-ink);
}

.hfg-fair-calendar__header h3 {
  margin: 0;
  color: var(--fair-ink);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.hfg-fair-month-button {
  min-height: 66px;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: var(--fair-green);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s ease;
}

.hfg-fair-month-button:hover,
.hfg-fair-month-button:focus-visible {
  background: var(--fair-ink);
}

.hfg-fair-month-button:disabled {
  color: #71837d;
  background: #e4ece9;
  cursor: default;
}

.hfg-fair-calendar__week,
.hfg-fair-calendar__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.hfg-fair-calendar__week span {
  padding: 14px 4px 12px;
  border-right: 1px solid var(--fair-line);
  color: #6f7e79;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.hfg-fair-calendar__week span:first-child { color: var(--fair-rose); }
.hfg-fair-calendar__week span:last-child { color: var(--fair-green); }

.hfg-fair-day {
  position: relative;
  min-height: 84px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12px 6px;
  border: 0;
  border-top: 1px solid var(--fair-line);
  border-right: 1px solid var(--fair-line);
  color: #72807b;
  background: #f7faf8;
  font: inherit;
  font-size: 15px;
}

.hfg-fair-day:nth-child(7n) { border-right: 0; }
.hfg-fair-day.is-empty { background: #edf3f0; }

.hfg-fair-day.has-fair {
  color: var(--fair-ink);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}

.hfg-fair-day.has-fair::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fair-rose);
  transform: translateX(-50%);
}

.hfg-fair-day.has-fair:hover,
.hfg-fair-day.has-fair:focus-visible,
.hfg-fair-day.is-selected {
  color: #fff;
  background: var(--fair-green);
}

.hfg-fair-day.has-fair:hover::after,
.hfg-fair-day.has-fair:focus-visible::after,
.hfg-fair-day.is-selected::after {
  background: #fff;
}

.hfg-fair-day.is-today {
  box-shadow: inset 0 0 0 3px var(--fair-gold);
}

.hfg-fair-calendar__legend {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 18px;
  border-top: 2px solid var(--fair-ink);
  color: #687872;
  font-size: 13px;
  font-weight: 700;
}

.hfg-fair-calendar__legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hfg-fair-calendar__legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fair-rose);
}

#hfgFairReset {
  padding: 8px 13px;
  border: 1px solid var(--fair-green);
  color: var(--fair-green);
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.hfg-fair-list-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
  padding-bottom: 18px;
  border-bottom: 3px solid var(--fair-ink);
}

.hfg-fair-list-heading h2 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.35;
}

.hfg-fair-list-heading > p {
  color: #667771;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.hfg-fair-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.hfg-fair-card {
  min-width: 0;
  overflow: hidden;
  border: 3px solid var(--fair-ink);
  background: #fff;
  box-shadow: 7px 7px 0 var(--fair-teal);
}

.hfg-fair-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dce8e4;
}

.hfg-fair-card__image img {
  transition: transform .55s cubic-bezier(.2, .72, .2, 1);
}

.hfg-fair-card:hover .hfg-fair-card__image img {
  transform: scale(1.04);
}

.hfg-fair-card__body {
  padding: 22px 20px 20px;
}

.hfg-fair-card__date {
  margin-bottom: 10px;
  color: var(--fair-rose);
  font-size: 14px;
  font-weight: 800;
}

.hfg-fair-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.hfg-fair-tag {
  padding: 4px 8px;
  color: #fff;
  background: var(--fair-green);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.hfg-fair-card h3 {
  min-height: 4.5em;
  margin: 0 0 14px;
  color: var(--fair-ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
}

.hfg-fair-card__times {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.hfg-fair-time {
  padding: 5px 9px;
  color: var(--fair-ink);
  background: #eef5f2;
  font-size: 12px;
  font-weight: 800;
}

.hfg-fair-card__button {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 0;
  color: #fff;
  background: var(--fair-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s ease;
}

.hfg-fair-shell #header {
  visibility: visible;
  opacity: 1;
}

.hfg-fair-card__button:hover,
.hfg-fair-card__button:focus-visible {
  background: var(--fair-rose);
}

.hfg-fair-loading {
  min-height: 430px;
  border: 3px solid #c9d9d4;
  background: #f1f6f4;
  animation: hfgFairPulse 1.2s ease-in-out infinite alternate;
}

.hfg-fair-empty {
  grid-column: 1 / -1;
  padding: 58px 24px;
  border: 3px solid var(--fair-ink);
  color: var(--fair-ink);
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
}

.hfg-fair-modal[hidden] { display: none; }

.hfg-fair-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  background: rgba(15, 31, 26, .78);
}

.hfg-fair-modal__panel {
  position: relative;
  width: min(760px, 100%);
  overflow: hidden;
  border: 3px solid var(--fair-ink);
  background: var(--fair-paper);
  box-shadow: 12px 12px 0 rgba(201, 154, 57, .7);
}

.hfg-fair-modal__close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: rgba(23, 54, 46, .82);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.hfg-fair-modal__media {
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: #dce8e4;
}

.hfg-fair-modal__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hfg-fair-modal__body {
  padding: 34px 38px 16px;
}

.hfg-fair-modal__body h2 {
  margin: 0 0 18px;
  color: var(--fair-ink);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.45;
}

.hfg-fair-modal__meta {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 7px 16px;
  margin: 18px 0 24px;
  padding: 16px;
  background: #eaf4f0;
  font-size: 14px;
  line-height: 1.65;
}

.hfg-fair-modal__meta dt { font-weight: 800; }
.hfg-fair-modal__lead { font-size: 15px; line-height: 1.9; }

.hfg-fair-modal__source {
  margin: 14px 0 18px;
}

.hfg-fair-modal__source a {
  color: var(--fair-green);
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hfg-fair-modal__source a:hover,
.hfg-fair-modal__source a:focus-visible {
  color: var(--fair-rose);
}

.hfg-fair-modal__section {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #cadbd5;
}

.hfg-fair-modal__section h3 {
  margin-bottom: 12px;
  color: var(--fair-rose);
  font-size: 18px;
  font-weight: 800;
}

.hfg-fair-modal__section p,
.hfg-fair-content-item p {
  color: #566861;
  font-size: 14px;
  line-height: 1.85;
}

.hfg-fair-content-item {
  padding: 15px 0;
  border-top: 1px dotted #aebfba;
}

.hfg-fair-content-item:first-of-type { border-top: 0; }
.hfg-fair-content-item h4 { margin-bottom: 6px; font-size: 15px; font-weight: 800; }
.hfg-fair-content-item small { color: #75847f; font-size: 12px; }

.hfg-fair-modal__footer {
  padding: 24px 38px 34px;
  text-align: center;
}

.hfg-fair-modal__footer a {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 42px;
  color: #fff;
  background: var(--fair-rose);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color .2s ease;
}

.hfg-fair-modal__footer a:hover,
.hfg-fair-modal__footer a:focus-visible {
  background: var(--fair-ink);
  opacity: 1;
}

body.is-fair-modal-open { overflow: hidden; }

.hfg-selected-fair {
  position: relative;
  display: grid;
  gap: 7px;
  margin-bottom: 26px;
  padding: 18px 20px;
  border-left: 7px solid var(--fair-gold);
  color: var(--fair-ink);
  background: #eef6f3;
}

.hfg-selected-fair[hidden] { display: none; }
.hfg-selected-fair span { color: var(--fair-rose); font-size: 12px; font-weight: 800; }
.hfg-selected-fair strong { font-size: 16px; line-height: 1.6; }
.hfg-selected-fair a { width: fit-content; color: var(--fair-green); font-size: 12px; font-weight: 800; text-decoration: underline; }

.hfg-form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.hfg-form-consent {
  grid-template-columns: 24px minmax(0, 1fr) !important;
  align-items: center;
  gap: 10px !important;
  margin-top: 24px !important;
}

.hfg-form-consent input {
  width: 20px !important;
  min-height: 20px !important;
  margin: 0;
  accent-color: var(--fair-green);
}

.hfg-form-consent a {
  color: var(--fair-green);
  text-decoration: underline;
}

.hfg-form__button {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.hfg-form__button:disabled {
  color: #dbe7e3;
  background: #61766f;
  cursor: wait;
}

.hfg-form__status {
  min-height: 1.8em;
  margin-top: 14px;
  color: var(--fair-rose);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.8;
}

.hfg-form__status.is-success {
  padding: 20px;
  color: #fff;
  background: var(--fair-green);
  font-size: 15px;
}

@keyframes hfgFairPulse {
  from { opacity: .45; }
  to { opacity: .88; }
}

.hfg-fair-source-note {
  margin: -34px 0 34px;
  color: #526962;
  font-size: 13px;
  line-height: 1.8;
  text-align: right;
}

.hfg-fair-source-note a {
  color: var(--fair-green);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1020px) {
  .hfg-fair-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .hfg-fair-benefit { padding: 28px 20px; }
  .hfg-fair-benefit__inner { grid-template-columns: 1fr; gap: 18px; }
  .hfg-fair-benefit__label { width: 132px; min-height: 48px; }
  .hfg-fair-benefit h2 { font-size: 20px; }
  .hfg-fair-explorer { padding: 68px 16px 76px; }
  .hfg-fair-calendar { margin-bottom: 68px; box-shadow: 6px 6px 0 var(--fair-gold); }
  .hfg-fair-calendar__header { grid-template-columns: 76px minmax(0, 1fr) 76px; }
  .hfg-fair-calendar__header h3 { font-size: 19px; }
  .hfg-fair-month-button { min-height: 56px; font-size: 12px; }
  .hfg-fair-calendar__week span { padding: 11px 2px 9px; font-size: 11px; }
  .hfg-fair-day { min-height: 58px; padding-top: 9px; font-size: 13px; }
  .hfg-fair-day.has-fair::after { width: 8px; height: 8px; bottom: 9px; }
  .hfg-fair-calendar__legend { align-items: flex-start; flex-direction: column; gap: 10px; }
  .hfg-fair-list-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .hfg-fair-list-heading h2 { font-size: 27px; }
  .hfg-fair-list-heading > p { text-align: left; }
  .hfg-fair-source-note { margin: 0 0 26px; text-align: left; }
  .hfg-fair-cards { grid-template-columns: 1fr; gap: 28px; }
  .hfg-fair-card h3 { min-height: 0; }
  .hfg-fair-modal { padding: 16px 10px; }
  .hfg-fair-modal__media { aspect-ratio: 4 / 3; }
  .hfg-fair-modal__body { padding: 26px 20px 12px; }
  .hfg-fair-modal__body h2 { font-size: 21px; }
  .hfg-fair-modal__meta { grid-template-columns: 72px minmax(0, 1fr); padding: 13px; }
  .hfg-fair-modal__footer { padding: 20px 20px 28px; }
  .hfg-fair-modal__footer a { width: 100%; padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hfg-fair-loading { animation: none; }
  .hfg-fair-card__image img { transition: none; }
}
