:root {
  --wf-text: #666;
  --wf-heading: #222;
  --wf-muted: #888f96;
  --wf-rule: #d9d9d9;
  --wf-soft: #f6f6f6;
  --wf-focus: #416a85;
}

.wf-distillery-container * {
  box-sizing: border-box;
}

.wf-distillery a:focus-visible,
.wf-distillery button:focus-visible,
.wf-distillery-archive a:focus-visible,
.wf-distillery-archive button:focus-visible,
.wf-distillery-archive input:focus-visible,
.wf-distillery-archive select:focus-visible,
.wf-distillery-directory a:focus-visible,
.wf-distillery-sidebar a:focus-visible,
.wf-distillery-sidebar button:focus-visible,
.wf-distillery-sidebar input:focus-visible,
.wf-taste-metric:focus-visible {
  outline: 2px solid var(--wf-focus);
  outline-offset: 2px;
}

.wf-distillery .entry_heading {
  line-height: 1.2;
}

.wf-distillery__pronunciation {
  color: #aaa;
  font-size: 0.62em;
  white-space: nowrap;
}

.wf-distillery__hero {
  margin: 0 0 22px;
}

.wf-distillery__hero img {
  display: block;
  height: auto;
  margin: 0;
  max-width: 100%;
  width: 100%;
}

.wf-section {
  border-top: 1px solid var(--wf-rule);
  clear: both;
  margin-top: 22px;
  padding-top: 13px;
}

.wf-section:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.wf-section__heading {
  color: var(--wf-heading);
  font: normal 15px/1.35 Arial, Helvetica, sans-serif;
  margin: 0 0 10px;
}

.wf-facts__list {
  margin: 0;
}

.wf-facts__list > div {
  display: grid;
  gap: 8px;
  grid-template-columns: 118px minmax(0, 1fr);
  min-height: 24px;
}

.wf-facts__list dt {
  color: #444;
}

.wf-facts__list dd {
  margin: 0;
  min-width: 0;
}

.wf-facts__list a,
.wf-similar-link,
.wf-map__link a {
  text-decoration: none;
}

.wf-cross-search {
  color: var(--wf-muted);
  display: inline-block;
  font-size: 15px;
  line-height: 1;
  margin-left: 4px;
  padding: 2px;
}

.wf-distillery__content > :first-child {
  margin-top: 0;
}

.wf-taste-profile {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 4px 0 14px;
}

.wf-taste-metric {
  float: none;
  margin: 0;
  min-width: 70px;
  position: relative;
  text-align: center;
  width: 70px;
}

.wf-taste-metric__wheel {
  border: 0;
  display: block;
  height: 32px;
  margin: 0 auto;
  width: 32px;
}

.wf-taste-metric figcaption {
  font-size: 11px;
  line-height: 1.35;
  margin-top: 5px;
}

.wf-taste-metric figcaption strong {
  color: #333;
  display: block;
}

.wf-taste-metric__tooltip {
  background: #222;
  bottom: calc(100% + 7px);
  color: #fff;
  font-size: 11px;
  left: 50%;
  line-height: 1.45;
  max-width: calc(100vw - 32px);
  opacity: 0;
  padding: 8px 9px;
  pointer-events: none;
  position: absolute;
  transform: translate(-50%, 4px);
  transition: opacity 120ms ease, transform 120ms ease;
  visibility: hidden;
  width: 220px;
  z-index: 5;
}

.wf-taste-metric:hover .wf-taste-metric__tooltip,
.wf-taste-metric:focus .wf-taste-metric__tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}

.wf-taste-metric:first-child .wf-taste-metric__tooltip {
  left: 0;
  transform: translate(0, 4px);
}

.wf-taste-metric:first-child:hover .wf-taste-metric__tooltip,
.wf-taste-metric:first-child:focus .wf-taste-metric__tooltip {
  transform: translate(0, 0);
}

.wf-taste-note,
.wf-map__link {
  color: #777;
  font-size: 11px;
}

.wf-bottlings {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
}

.wf-bottlings--with-image {
  grid-template-columns: 105px minmax(0, 1fr);
}

.wf-bottlings__image {
  border: 1px solid var(--wf-rule);
  height: auto;
  padding: 3px;
  width: 104px;
}

#content .wf-bottlings ul {
  border-top: 0;
  margin: 0;
  padding: 0;
}

#content .wf-bottlings li {
  background-position: 0 8px;
  border-bottom: 1px solid #eee;
  font-size: 12px;
  list-style: none;
  padding: 4px 0 4px 10px;
}

#content .wf-history {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wf-history li {
  border-bottom: 1px solid #f0f0f0;
  display: grid;
  gap: 12px;
  grid-template-columns: 44px minmax(0, 1fr);
  padding: 6px 0;
}

.wf-history time {
  color: #333;
  font-weight: bold;
}

.wf-map {
  aspect-ratio: 572 / 230;
  background: var(--wf-soft);
  border: 1px solid var(--wf-rule);
  overflow: hidden;
  width: 100%;
}

.wf-map iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

.wf-share__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.wf-share__actions a,
.wf-share__actions button,
.wf-distillery-filters button,
.wf-distillery-filters__actions a {
  background: linear-gradient(#fafafa, #eee);
  border: 1px solid var(--wf-rule);
  color: var(--wf-text);
  cursor: pointer;
  font: 11px/1.2 Arial, Helvetica, sans-serif;
  padding: 7px 10px;
  text-decoration: none;
}

.wf-share__actions a:hover,
.wf-share__actions button:hover,
.wf-distillery-filters button:hover,
.wf-distillery-filters__actions a:hover {
  border-color: #aaa;
  color: var(--wf-heading);
}

[data-wf-copy-status] {
  color: var(--wf-muted);
  font-size: 11px;
}

.wf-distillery-filters {
  background: var(--wf-soft);
  border: 1px solid var(--wf-rule);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 20px;
  padding: 14px;
}

.wf-distillery-filters label,
.wf-distillery-filters label span {
  display: block;
}

.wf-distillery-filters label span {
  color: #444;
  font-size: 11px;
  margin-bottom: 3px;
}

.wf-distillery-filters input,
.wf-distillery-filters select {
  background: #fff;
  border: 1px solid #c9c9c9;
  color: var(--wf-text);
  font: 12px/1.3 Arial, Helvetica, sans-serif;
  min-height: 34px;
  padding: 6px 7px;
  width: 100%;
}

.wf-distillery-filters__search,
.wf-distillery-filters__actions {
  grid-column: 1 / -1;
}

.wf-distillery-filters__taste {
  border: 0;
  border-top: 1px solid var(--wf-rule);
  grid-column: 1 / -1;
  margin: 2px 0 0;
  min-width: 0;
  padding: 11px 0 0;
  scroll-margin-top: 16px;
}

.wf-distillery-filters__taste legend {
  color: #333;
  font-size: 12px;
  font-weight: bold;
  padding: 0 7px 0 0;
}

.wf-distillery-filters__taste > div {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wf-distillery-filters__actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.wf-distillery-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wf-distillery-card {
  border: 1px solid var(--wf-rule);
  margin: 0;
  min-width: 0;
}

.wf-distillery-card__image {
  background: var(--wf-soft);
  display: block;
  min-height: 120px;
}

.wf-distillery-card__image img {
  display: block;
  height: 150px;
  object-fit: cover;
  width: 100%;
}

.wf-distillery-card__content {
  padding: 10px;
}

.wf-distillery-card h2 {
  font-size: 16px;
  margin: 0 0 5px;
}

.wf-distillery-card h2 a {
  color: var(--wf-heading);
  text-decoration: none;
}

.wf-distillery-card p {
  font-size: 11px;
  margin: 3px 0;
}

.wf-pagination {
  margin: 24px 0 0;
}

.wf-pagination ul.page-numbers {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wf-pagination ul.page-numbers > li {
  background: none;
  border: 0;
  display: block;
  margin: 0;
  padding: 0;
}

.wf-pagination .page-numbers a,
.wf-pagination .page-numbers span {
  align-items: center;
  background: #fff;
  border: 1px solid var(--wf-rule);
  border-radius: 2px;
  color: #555;
  display: inline-flex;
  font-size: 13px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  min-width: 38px;
  padding: 0 11px;
  text-decoration: none;
}

.wf-pagination .page-numbers a:hover {
  background: var(--wf-soft);
  border-color: #aaa;
  color: var(--wf-heading);
}

.wf-pagination .page-numbers .current {
  background: var(--wf-heading);
  border-color: var(--wf-heading);
  color: #fff;
  font-weight: bold;
}

.wf-pagination .page-numbers .dots {
  background: transparent;
  border-color: transparent;
  color: var(--wf-muted);
  min-width: 24px;
  padding: 0 3px;
}

.wf-pagination .page-numbers .prev,
.wf-pagination .page-numbers .next {
  min-width: auto;
}

.wf-distillery-sidebar .box {
  margin-bottom: 16px;
}

.wf-distillery-sidebar .box h3 {
  border-bottom: 1px solid var(--wf-rule);
  margin: 0;
}

.wf-distillery-sidebar .box ul {
  border-top: 0;
}

.wf-distillery-sidebar .menu .current > a {
  color: var(--wf-heading);
  font-weight: bold;
}

.wf-distillery-sidebar__search form {
  margin-top: 7px;
}

.wf-distillery-sidebar__search input {
  background: #fff;
  border: 1px solid #c9c9c9;
  color: var(--wf-text);
  font: 12px/1.3 Arial, Helvetica, sans-serif;
  min-height: 36px;
  padding: 7px;
  width: 100%;
}

.wf-distillery-sidebar__search button {
  background: linear-gradient(#fafafa, #eee);
  border: 1px solid #c9c9c9;
  color: var(--wf-text);
  cursor: pointer;
  font: 12px/1.2 Arial, Helvetica, sans-serif;
  margin-top: 7px;
  min-height: 34px;
  padding: 7px 12px;
}

.wf-directory-map {
  background: var(--wf-soft);
  border: 1px solid var(--wf-rule);
  height: 430px;
  margin: 16px 0 10px;
  position: relative;
  width: 100%;
  z-index: 0;
}

.wf-directory-map--error {
  align-items: center;
  color: var(--wf-muted);
  display: flex;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.wf-directory-map .leaflet-popup-content a {
  color: var(--wf-heading);
  display: block;
  font-weight: bold;
}

.wf-directory-map .leaflet-popup-content small {
  color: var(--wf-muted);
  display: block;
  margin-top: 2px;
}

.wf-directory-map-list {
  border-bottom: 1px solid var(--wf-rule);
  border-top: 1px solid var(--wf-rule);
  margin-top: 14px;
  padding: 9px 0;
}

.wf-directory-map-list summary {
  color: var(--wf-heading);
  cursor: pointer;
  font-weight: bold;
}

#content .wf-directory-map-list ul,
#content .wf-directory-index {
  border: 0;
  display: grid;
  gap: 0 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

#content .wf-directory-map-list li,
#content .wf-directory-index li {
  background: none;
  border-bottom: 1px solid #eee;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wf-directory-map-list li {
  padding: 6px 0;
}

.wf-directory-map-list li span {
  color: var(--wf-muted);
  display: block;
  font-size: 11px;
}

.wf-directory-index li a {
  align-items: center;
  color: var(--wf-text);
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-height: 40px;
  padding: 7px 0;
  text-decoration: none;
}

.wf-directory-index li a:hover span {
  color: var(--wf-heading);
  text-decoration: underline;
}

.wf-directory-index li strong {
  background: var(--wf-soft);
  border-radius: 10px;
  color: var(--wf-muted);
  font-size: 10px;
  min-width: 22px;
  padding: 2px 6px;
  text-align: center;
}

@media (max-width: 640px) {
  .wf-distillery__pronunciation {
    display: block;
    margin-top: 5px;
    white-space: normal;
  }

  .wf-facts__list > div {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .wf-taste-metric__tooltip {
    width: 180px;
  }

  .wf-distillery-filters,
  .wf-distillery-grid {
    grid-template-columns: 1fr;
  }

  .wf-distillery-filters__taste > div,
  #content .wf-directory-map-list ul,
  #content .wf-directory-index {
    grid-template-columns: 1fr;
  }

  .wf-directory-map {
    height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wf-taste-metric__tooltip {
    transition: none;
  }
}
