/* Farm detail page — editorial monochrome */

html.b-editorial {
  scroll-behavior: smooth;
}

html.b-editorial [hidden] {
  display: none !important;
}

html.b-editorial .b-farm-detail {
  background: #fff;
  color: #000;
}

/* Hero */
html.b-editorial .b-detail-hero {
  border-top: 1px solid var(--b-line-soft);
  background: #fff;
}

html.b-editorial .b-detail-hero__inner {
  width: 100%;
  max-width: var(--b-max-width-detail);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 72px) var(--b-space-page) 0;
}

html.b-editorial .b-detail-title {
  margin: 0;
  font-family: var(--b-font-display);
  font-size: clamp(4.6rem, 11vw, 10rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  color: #000;
  max-width: 1100px;
}

html.b-editorial .b-detail-hero__location {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 34px;
  max-width: 1100px;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

html.b-editorial .b-detail-location {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* Merkliste — floating unten links */
html.b-editorial .b-detail-wishlist-fab.farm__wishlist-btn {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 11620;
  box-sizing: border-box;
  width: 3.35rem;
  height: 3.35rem;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: 1.5px solid #000;
  background: #fff;
  color: #000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  opacity: 1;
  transform: none;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

html.b-editorial .b-detail-wishlist-fab .b-farm-card__save-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html.b-editorial .b-detail-wishlist-fab .ph {
  font-size: 1.28rem;
  line-height: 1;
}

html.b-editorial .b-detail-wishlist-fab:hover:not(.is-added):not(.is-active),
html.b-editorial .b-detail-wishlist-fab:focus-visible:not(.is-added):not(.is-active) {
  background: #000;
  color: #fff;
  outline: 3px solid #000;
  outline-offset: 3px;
}

html.b-editorial .b-detail-wishlist-fab.is-added,
html.b-editorial .b-detail-wishlist-fab.is-active {
  background: #000;
  color: #fff;
}

html.b-editorial .b-detail-wishlist-fab.is-added:hover,
html.b-editorial .b-detail-wishlist-fab.is-active:hover,
html.b-editorial .b-detail-wishlist-fab.is-added:focus-visible,
html.b-editorial .b-detail-wishlist-fab.is-active:focus-visible {
  background: #000;
  color: #fff;
  outline: 3px solid #000;
  outline-offset: 3px;
}

html.b-editorial .b-detail-wishlist-fab.is-added .ph-fill.ph-heart,
html.b-editorial .b-detail-wishlist-fab.is-active .ph-fill.ph-heart,
html.b-editorial .b-detail-wishlist-fab.is-added:hover .ph-fill.ph-heart,
html.b-editorial .b-detail-wishlist-fab.is-active:hover .ph-fill.ph-heart,
html.b-editorial .b-detail-wishlist-fab.is-added:focus-visible .ph-fill.ph-heart,
html.b-editorial .b-detail-wishlist-fab.is-active:focus-visible .ph-fill.ph-heart {
  color: var(--b-wishlist-heart);
}

html.nav-drawer-open .b-detail-wishlist-fab {
  display: none !important;
}

@media (min-width: 768px) {
  html.b-editorial .b-detail-wishlist-fab.farm__wishlist-btn {
    display: none !important;
  }
}

html.b-editorial .b-detail-location__flag {
  font-size: 1.5em;
  line-height: 1;
}

/* Merkmale — abgerundete Chips (siehe .b-feature-list in farm-directory-card.css) */
html.b-editorial .b-detail-hero__features {
  margin: 0 0 34px;
  min-width: 0;
}

html.b-editorial .b-detail-hero__features.b-farm-card__row {
  margin-top: 0;
}

html.b-editorial .b-detail-hero-image {
  margin: 0;
  border: 1.5px solid #000;
  border-radius: 0;
  overflow: hidden;
  background: var(--b-gray-100);
}

html.b-editorial .b-detail-hero-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* Sticky bar — shown when original TOC scrolls out of view */
html.b-editorial {
  --b-sticky-bar-top: 0px;
  --b-detail-sticky-offset: 96px;
}

html.b-editorial .b-detail-sticky-bar {
  position: fixed;
  top: var(--b-sticky-bar-top, 0px);
  left: 0;
  right: 0;
  z-index: 120;
  background: #fff;
  color: #000;
  border-top: 1px solid #000;
  border-bottom: 1.5px solid #000;
  transform: translateY(-100%);
  transition: transform 180ms ease;
  box-sizing: border-box;
}

html.b-editorial .b-detail-sticky-bar[hidden] {
  display: none !important;
}

html.b-editorial .b-detail-sticky-bar:not([hidden]) {
  display: block;
}

html.b-editorial .b-detail-sticky-bar.is-visible {
  transform: translateY(0);
}

html.b-editorial .b-detail-sticky-bar__inner {
  width: 100%;
  max-width: var(--b-max-width-detail, 1280px);
  margin: 0 auto;
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 8px var(--b-space-page, clamp(22px, 5vw, 72px));
  box-sizing: border-box;
}

html.b-editorial .b-detail-sticky-bar__identity {
  min-width: 0;
  color: #000;
  text-decoration: none;
}

html.b-editorial .b-detail-sticky-bar__identity:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

html.b-editorial .b-detail-sticky-bar__name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--b-font-display, "Roboto Condensed", "Arial Narrow", sans-serif);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

html.b-editorial .b-detail-sticky-bar__location {
  display: block;
  margin-top: 4px;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #555;
}

html.b-editorial .b-detail-sticky-bar__nav-wrap {
  min-width: 0;
}

html.b-editorial .b-detail-sticky-bar__nav {
  min-width: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

html.b-editorial .b-detail-sticky-bar__nav::-webkit-scrollbar {
  display: none;
}

html.b-editorial .b-detail-sticky-bar__nav a {
  flex: 0 0 auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #000;
  padding: 0 12px;
  color: #000;
  background: #fff;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}

html.b-editorial .b-detail-sticky-bar__nav a:hover,
html.b-editorial .b-detail-sticky-bar__nav a.is-active,
html.b-editorial .b-detail-sticky-bar__nav a:focus-visible {
  background: #000;
  color: #fff;
}

html.b-editorial .b-detail-sticky-bar__nav-wrap .b-scroll-row__control {
  width: 34px;
  height: 36px;
}

@media (max-width: 767px) {
  html.b-editorial .b-detail-hero__inner {
    padding: 34px 0px 0;
  }

  html.b-editorial .b-detail-title {
    font-size: clamp(4.2rem, 17vw, 6.4rem);
    line-height: 0.86;
    letter-spacing: -0.055em;
  }

  html.b-editorial .b-detail-hero__location {
    margin: 22px 0 28px;
    font-size: 1rem;
  }

  html.b-editorial .b-detail-hero__features {
    margin: 0 0 28px;
  }

  html.b-editorial .b-detail-hero-image img {
    aspect-ratio: 4 / 3;
  }

  html.b-editorial .b-detail-sticky-bar__inner {
    min-height: 66px;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px 22px 10px;
  }

  html.b-editorial .b-detail-sticky-bar__name {
    font-size: 1.35rem;
  }

  html.b-editorial .b-detail-sticky-bar__location {
    font-size: 0.58rem;
  }

  html.b-editorial .b-detail-sticky-bar__nav a {
    min-height: 32px;
    font-size: 0.62rem;
    padding: 0 10px;
  }

  html.b-editorial .b-detail-sticky-bar__nav-wrap .b-scroll-row__control {
    width: 30px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.b-editorial .b-detail-sticky-bar {
    transition: none;
  }

  html.b-editorial .b-detail-sticky-bar__nav {
    scroll-behavior: auto;
  }
}

/* Subnav — TOC + Merkliste (Desktop) */
html.b-editorial .b-detail-subnav {
  display: flex;
  width: 100%;
  max-width: var(--b-max-width-detail);
  margin: 0 auto;
  align-items: stretch;
  gap: 12px;
  padding: 22px var(--b-space-page);
  border-bottom: 1px solid #000;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-sizing: border-box;
}

html.b-editorial .b-detail-toc-wrap {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-bottom: 0;
  background: transparent;
  position: static;
  top: auto;
  z-index: auto;
}

html.b-editorial .b-detail-subnav__wishlist.farm__wishlist-btn {
  display: none;
  flex: 0 0 auto;
  align-self: center;
  box-sizing: border-box;
  position: static;
  top: auto;
  right: auto;
  left: auto;
  bottom: auto;
  z-index: auto;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  margin: 0;
  padding: 0;
  opacity: 1;
  transform: none;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  color: #000;
  border: 1px solid #000;
  gap: 0;
  line-height: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
  html.b-editorial .b-detail-subnav__wishlist.farm__wishlist-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

html.b-editorial .b-detail-subnav__wishlist .ph {
  font-size: 1.1rem;
  line-height: 1;
}

html.b-editorial .b-detail-sticky-bar .b-detail-subnav__wishlist.farm__wishlist-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
}

html.b-editorial .b-detail-subnav__wishlist:hover:not(.is-added):not(.is-active),
html.b-editorial .b-detail-subnav__wishlist:focus-visible:not(.is-added):not(.is-active) {
  background: #000;
  color: #fff;
  border-color: #000;
  outline: 3px solid #000;
  outline-offset: 3px;
}

html.b-editorial .b-detail-subnav__wishlist.is-added,
html.b-editorial .b-detail-subnav__wishlist.is-active {
  background: #000;
  color: #fff;
}

html.b-editorial .b-detail-subnav__wishlist.is-added:hover,
html.b-editorial .b-detail-subnav__wishlist.is-active:hover,
html.b-editorial .b-detail-subnav__wishlist.is-added:focus-visible,
html.b-editorial .b-detail-subnav__wishlist.is-active:focus-visible {
  background: #000;
  color: #fff;
  border-color: #000;
  outline: 3px solid #000;
  outline-offset: 3px;
}

html.b-editorial .b-detail-subnav__wishlist.is-added .ph-fill.ph-heart,
html.b-editorial .b-detail-subnav__wishlist.is-active .ph-fill.ph-heart,
html.b-editorial .b-detail-subnav__wishlist.is-added:hover .ph-fill.ph-heart,
html.b-editorial .b-detail-subnav__wishlist.is-active:hover .ph-fill.ph-heart,
html.b-editorial .b-detail-subnav__wishlist.is-added:focus-visible .ph-fill.ph-heart,
html.b-editorial .b-detail-subnav__wishlist.is-active:focus-visible .ph-fill.ph-heart {
  color: var(--b-wishlist-heart);
}

html.b-editorial .b-detail-sticky-bar .b-detail-subnav__wishlist.farm__wishlist-btn {
  display: none;
}

@media (min-width: 768px) {
  html.b-editorial .b-detail-sticky-bar.is-visible .b-detail-subnav__wishlist.farm__wishlist-btn,
  html.b-editorial .b-detail-sticky-bar:not([hidden]) .b-detail-subnav__wishlist.farm__wishlist-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

html.b-editorial .b-detail-toc-wrap .b-scroll-row__control {
  width: 42px;
  height: 42px;
}

html.b-editorial .b-detail-toc.b-scroll-row__viewport {
  display: flex;
  gap: 8px;
}

html.b-editorial .b-detail-toc a {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #000;
  padding: 0 14px;
  color: #000;
  background: #fff;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

html.b-editorial .b-detail-toc a:hover,
html.b-editorial .b-detail-toc a.is-active,
html.b-editorial .b-detail-toc a:focus-visible {
  background: #000;
  color: #fff;
}

html.b-editorial .b-detail-section,
html.b-editorial .b-farm-detail section[id] {
  scroll-margin-top: var(--b-detail-sticky-offset, 96px);
  border-bottom: 1px solid var(--b-line-soft);
}

/* Section layout */
html.b-editorial .b-detail-section__inner {
  width: 100%;
  max-width: var(--b-max-width-detail);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 88px) var(--b-space-page);
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
}

html.b-editorial .b-detail-section__header {
  align-self: start;
}

html.b-editorial .b-detail-section__header h2 {
  margin: 0;
  font-family: var(--b-font-display);
  font-size: clamp(2.4rem, 4vw, 4.6rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

html.b-editorial .b-detail-section__content {
  min-width: 0;
}

html.b-editorial .b-detail-section__content > p {
  margin: 0;
  max-width: 760px;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.45;
  padding: 24px 0;
}

html.b-editorial .b-detail-richtext {
  max-width: 760px;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.45;
}

html.b-editorial .b-detail-richtext p,
html.b-editorial .b-detail-richtext ul,
html.b-editorial .b-detail-richtext ol {
  margin: 0 0 1em;
}

html.b-editorial .b-detail-richtext > :last-child {
  margin-bottom: 0;
}

html.b-editorial .b-detail-richtext a {
  color: #000;
  text-decoration: underline;
}

/* h3 spacing — coffee & export */
html.b-editorial .b-detail-section h3 {
  font-family: var(--b-font-display);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
  line-height: 1;
}

html.b-editorial .b-detail-section--coffee h3,
html.b-editorial .b-detail-section--export h3,
html.b-editorial #coffee-details h3,
html.b-editorial #export-logistics h3 {
  margin-top: 24px;
  margin-bottom: 14px;
}

html.b-editorial .b-detail-section--coffee .b-option-checkgrid > .b-detail-subblock:first-child h3,
html.b-editorial .b-detail-section--export .b-option-checkgrid > .b-option-checkgrid__cols > .b-detail-subblock--checks:first-child h3,
html.b-editorial #coffee-details .b-option-checkgrid > .b-detail-subblock:first-child h3,
html.b-editorial #export-logistics .b-option-checkgrid__cols > .b-detail-subblock--checks:first-child h3,
html.b-editorial .b-option-checkgrid__cols > .b-detail-subblock--harvest-season h3 {
  /* margin-top: 0; */
}

html.b-editorial .b-detail-section--coffee .b-detail-subblock + .b-detail-subblock,
html.b-editorial .b-detail-section--export .b-option-checkgrid__cols .b-detail-subblock--checks + .b-detail-subblock--checks {
  margin-top: 0;
}

html.b-editorial .b-detail-subblock--varieties {
  padding: 24px;
  border-bottom: 1px solid var(--b-line-soft);
}

html.b-editorial .b-detail-subblock--varieties h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  color: var(--b-muted);
}

html.b-editorial .b-chip-list--varieties {
  margin-top: 0;
}

/* Back navigation */
html.b-editorial .b-detail-back-nav {
  width: 100%;
  max-width: var(--b-max-width-detail);
  margin: 0 auto;
  padding: 28px var(--b-space-page) clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--b-line-soft);
}

html.b-editorial .b-detail-back-nav__button {
  width: 100%;
}

@media (min-width: 768px) {
  html.b-editorial .b-detail-back-nav__button {
    width: auto;
  }
}

/* Profile table */
html.b-editorial .b-profile-table {
  border-top: 1.5px solid var(--b-line-soft);
  border-bottom: 1.5px solid var(--b-line-soft);
}

html.b-editorial .b-profile-row {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  border-bottom: 1px solid var(--b-line-soft);
}

html.b-editorial .b-profile-row:last-child {
  border-bottom: 0;
}

html.b-editorial .b-profile-row__label,
html.b-editorial .b-profile-row__value {
  min-width: 0;
  padding: 20px 0;
}

html.b-editorial .b-profile-row__label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 24px;
  border-right: 1px solid var(--b-line-soft);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--b-muted);
}

html.b-editorial .b-profile-row__label .b-icon,
html.b-editorial .b-profile-row__label svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #000;
}

html.b-editorial .b-profile-row__value {
  padding-left: 24px;
  font-size: 1rem;
  font-weight: 800;
  color: #000;
  line-height: 1.4;
}

html.b-editorial .b-profile-row__value strong {
  font-weight: 900;
}

html.b-editorial .b-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

html.b-editorial .b-chip-list li {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #000;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #000;
  background: #fff;
}

html.b-editorial .b-detail-subblock--harvest-season .b-option__label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Location */
html.b-editorial .b-location-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  align-items: stretch;
  border: 1.5px solid #000;
}

html.b-editorial .b-location-info {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  border-right: 1px solid #000;
}

html.b-editorial .b-location-info__body {
  flex: 1 1 auto;
}

html.b-editorial .b-location-info h3 {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

html.b-editorial .b-location-info p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 500;
}

html.b-editorial .b-location-info__body p:last-child {
  margin-bottom: 0;
}

html.b-editorial .b-location-map {
  min-height: 360px;
  background: var(--b-gray-100);
  position: relative;
}

html.b-editorial .b-location-map .maplibregl-map,
html.b-editorial .b-location-map [id*="map"] {
  min-height: 360px;
  width: 100%;
}

html.b-editorial .b-location-map .farm-profile__map-marker {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0;
  background: #000;
  border: 2px solid #fff;
  box-shadow: none;
}

html.b-editorial .b-location-map .farm-profile__map-marker::after {
  border-top-color: #000;
}

html.b-editorial .b-map-attribution {
  margin-top: auto;
  padding-top: 20px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--b-muted);
  letter-spacing: 0.04em;
  text-wrap-style: balance;
}

.b-map-attribution {
  margin-bottom: 0 !important;
  font-size: 0.9rem !important;
}

/* Gallery */
html.b-editorial .b-farm-detail .farm-gallery {
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  padding: 0;
  margin-top: 0;
  border-top: 0;
}

html.b-editorial .b-farm-detail .farm-gallery__head {
  display: none;
}

html.b-editorial .b-gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

html.b-editorial .b-gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1.5px solid #000;
  border-radius: 0;
  background: var(--b-gray-100);
  text-decoration: none;
  color: inherit;
}

html.b-editorial .b-gallery-item:nth-child(1) {
  grid-column: span 7;
}

html.b-editorial .b-gallery-item:nth-child(2) {
  grid-column: span 5;
}

html.b-editorial .b-gallery-item:nth-child(n + 3) {
  grid-column: span 4;
}

html.b-editorial .b-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 0.25s ease;
}

html.b-editorial .b-gallery-item:hover img {
  transform: scale(1.025);
}

html.b-editorial .b-gallery-item[data-alt]::after {
  content: attr(data-alt);
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 8px 10px;
  background: #000;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

html.b-editorial .b-gallery-item:hover::after,
html.b-editorial .b-gallery-item:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

html.b-editorial .b-farm-detail .farm-gallery__clip {
  max-height: 520px;
  overflow: hidden;
  transition: max-height 0.68s ease;
}

html.b-editorial .b-farm-detail .farm-gallery--expanded .farm-gallery__clip,
html.b-editorial .b-farm-detail .farm-gallery--no-expand .farm-gallery__clip {
  max-height: none;
  overflow: visible;
}

html.b-editorial .b-farm-detail .farm-gallery__reveal-fade {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.85) 78%,
    #fff 100%
  );
}

html.b-editorial .b-farm-detail .farm-gallery__reveal-btn {
  border: 1.5px solid #000;
  border-radius: 0;
  padding: 0 22px;
  min-height: 52px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: #000;
  box-shadow: none;
}

html.b-editorial .b-farm-detail .farm-gallery__reveal-btn:hover {
  background: #fff;
  color: #000;
  filter: none;
}

html.b-editorial .b-gallery-more {
  margin-top: 18px;
}

/* Read-only option checklists (coffee / export) */
html.b-editorial .b-option-checkgrid {
  border-top: 1.5px solid var(--b-line-soft);;
}

html.b-editorial .b-option-checkgrid__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

html.b-editorial .b-option-checkgrid--export .b-option-checkgrid__cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html.b-editorial .b-detail-subblock--checks {
  padding: 24px;
  border-bottom: 1px solid var(--b-line-soft);
  border-right: 1px solid var(--b-line-soft);
  margin: 0;
}

html.b-editorial .b-option-checkgrid__cols .b-detail-subblock--checks:nth-child(3n) {
  border-right: 0;
}

html.b-editorial .b-option-checkgrid--export .b-detail-subblock--checks:nth-child(2n) {
  border-right: 0;
}

html.b-editorial .b-detail-subblock--checks h3 {
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--b-muted);
}

html.b-editorial .b-option-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Harvest season — 3 columns × 4 rows (overrides flex on .b-option-list) */
html.b-editorial ul.b-option-list.b-option-list--harvest-months {
  display: grid;
  flex-direction: unset;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
}

html.b-editorial .b-option__label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: default;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  color: #000;
}

html.b-editorial .b-option--off .b-option__label {
  color: var(--b-muted);
  font-weight: 500;
}

html.b-editorial .b-option--checks .b-option__label,
html.b-editorial .b-detail-subblock--checks .b-option__label,
html.b-editorial .b-detail-subblock--checks .b-option__input {
  pointer-events: none;
}

html.b-editorial .b-option__input {
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.1rem 0 0;
  accent-color: #000;
  border: 1.5px solid #000;
  cursor: default;
}

html.b-editorial .b-option--off .b-option__input {
  opacity: 0.45;
}

html.b-editorial .b-detail-coffee-lead {
  margin: 0 0 28px;
  max-width: 760px;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.45;
}

html.b-editorial .b-detail-section__content--coffee > .b-option-checkgrid {
  margin-top: 0;
}

/* Coffee / export sub-blocks inside section */
html.b-editorial .b-detail-subblock {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--b-line-soft);
}

html.b-editorial .b-detail-section__content--coffee .b-detail-subblock,
html.b-editorial .b-option-checkgrid .b-detail-subblock {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

html.b-editorial .b-detail-subblock:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

html.b-editorial .b-detail-subblock h3 {
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--b-muted);
}

/* Contact panel */
html.b-editorial .b-contact-panel {
  border: 1.5px solid #000;
  padding: clamp(28px, 5vw, 56px);
}

html.b-editorial .b-contact-panel h2 {
  margin: 0;
  font-family: var(--b-font-display);
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  font-weight: 900;
}

html.b-editorial .b-contact-panel > p {
  max-width: 620px;
  margin: 18px 0 0;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.45;
  font-weight: 500;
}

html.b-editorial .b-contact-person {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--b-line-soft);
}

html.b-editorial .b-contact-person__photo {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  border: 1.5px solid #000;
  flex-shrink: 0;
}

html.b-editorial .b-contact-person__photo--initials {
  display: grid;
  place-items: center;
  background: var(--b-gray-100);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

html.b-editorial .b-contact-person__name {
  margin: 0;
  font-weight: 900;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

html.b-editorial .b-contact-lang-tip {
  position: relative;
  display: inline-block;
  margin-left: 0.2em;
  vertical-align: middle;
  cursor: default;
}

html.b-editorial .b-contact-lang-tip .b-flag {
  display: inline-block;
  vertical-align: middle;
}

html.b-editorial .b-contact-lang-tip__bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  z-index: 12000;
  transform: translateX(-50%);
  padding: 8px 12px;
  border: 1.5px solid #000;
  border-radius: 0;
  background: #000;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
  text-transform: none;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.18s cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0.18s ease;
}

html.b-editorial .b-contact-lang-tip__bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 0;
  height: 0;
  margin-left: -7px;
  margin-top: -1px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid #000;
}

html.b-editorial .b-contact-lang-tip:hover .b-contact-lang-tip__bubble,
html.b-editorial .b-contact-lang-tip:focus-visible .b-contact-lang-tip__bubble,
html.b-editorial .b-contact-lang-tip:focus-within .b-contact-lang-tip__bubble {
  opacity: 1;
  visibility: visible;
}

html.b-editorial .b-contact-lang-tip:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html.b-editorial .b-contact-lang-tip__bubble {
    transition: none;
  }
}

html.b-editorial .b-contact-person__role {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--b-muted);
  font-weight: 600;
}

html.b-editorial .b-contact-person__note {
  margin: 12px 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 620px;
}

html.b-editorial .b-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

html.b-editorial .b-contact-actions .b-btn {
  min-height: 52px;
}

html.b-editorial .b-about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

html.b-editorial .b-about-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #000;
  padding: 0 14px;
  color: #000;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

html.b-editorial .b-about-links a:hover {
  background: #000;
  color: #fff;
}

/* Hide legacy farm-detail layout on editorial pages */
html.b-editorial.farm-page .farm-detail,
html.b-editorial .farm-page .farm-detail__sidebar {
  display: none !important;
}

html.b-editorial .farm-page .b-facts,
html.b-editorial .farm-page .b-detail-actions,
html.b-editorial .farm-page .b-varieties,
html.b-editorial .farm-page .b-location-box,
html.b-editorial .farm-page .b-detail-section#farm-about-full {
  display: none !important;
}

/* Focus */
html.b-editorial .b-farm-detail :focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  html.b-editorial .b-detail-section__inner {
    display: block;
    padding: 42px 0;
  }

  html.b-editorial .b-detail-section__header {
    margin-bottom: 24px;
  }

  html.b-editorial .b-detail-subnav {
    padding: 14px 22px;
    gap: 8px;
  }

  html.b-editorial .b-detail-toc-wrap {
    padding: 0;
    gap: 8px;
  }

  html.b-editorial .b-detail-toc-wrap .b-scroll-row__control {
    width: 38px;
    height: 38px;
  }

  html.b-editorial .b-detail-toc a {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.66rem;
  }

  html.b-editorial .b-profile-row {
    grid-template-columns: 1fr;
  }

  html.b-editorial .b-profile-row__label {
    border-right: 0;
    padding: 16px 0 6px;
  }

  html.b-editorial .b-profile-row__value {
    padding: 0 0 16px;
  }

  html.b-editorial .b-location-layout {
    grid-template-columns: 1fr;
  }

  html.b-editorial .b-location-info {
    border-right: 0;
    border-bottom: 1px solid #000;
  }

  html.b-editorial .b-location-map {
    min-height: 280px;
  }

  html.b-editorial .b-gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  html.b-editorial .b-gallery-item,
  html.b-editorial .b-gallery-item:nth-child(1),
  html.b-editorial .b-gallery-item:nth-child(2),
  html.b-editorial .b-gallery-item:nth-child(n + 3) {
    grid-column: span 1;
  }

  html.b-editorial .b-contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  html.b-editorial .b-option-checkgrid__cols,
  html.b-editorial .b-option-checkgrid--export .b-option-checkgrid__cols {
    grid-template-columns: 1fr;
  }

  html.b-editorial .b-detail-subblock--checks {
    border-right: 0;
  }

  html.b-editorial ul.b-option-list.b-option-list--harvest-months {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html.b-editorial .b-farm-detail .farm-gallery__clip {
    transition: none;
  }

  html.b-editorial .b-gallery-item img {
    transition: none;
  }
}
