/* Getting around the classic farm office (office-nav.js): the "I want to…" finder strip, "Your farming year"
   on the Overview and the "Up next" cards at the bottom of each page. Colours use the --fh-* tokens. */

/* ------------------------------------------------------------------ finder strip */
.fh-navstrip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px clamp(12px, 2.4vw, 28px) 0;
}
.fh-find {
  position: relative;
  flex: 1 1 300px;
  max-width: 620px;
}
.fh-find input {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  padding: 0 44px 0 40px;
  border-radius: 999px;
  border: 1.5px solid var(--fh-line-strong);
  background: var(--fh-input);
  color: var(--fh-ink);
  font: inherit;
  font-size: 15px;
  box-shadow: var(--fh-shadow);
}
.fh-find input:focus {
  outline: none;
  border-color: var(--fh-accent-ink);
  box-shadow: 0 0 0 4px var(--fh-accent-soft);
}
.fh-find input::placeholder {
  color: var(--fh-faint);
}
.fh-find-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 19px;
  color: var(--fh-muted);
  pointer-events: none;
}
.fh-find-key {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  padding: 1px 7px;
  border-radius: 5px;
  border: 1px solid var(--fh-line-strong);
  color: var(--fh-faint);
  font-size: 12px;
  pointer-events: none;
}
.fh-find input:focus ~ .fh-find-key {
  display: none;
}
.fh-find-list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 16px;
  background: var(--fh-surface);
  border: 1px solid var(--fh-line-strong);
  box-shadow: 0 18px 40px #0003;
}
.fh-find-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--fh-ink);
}
.fh-find-list li.on,
.fh-find-list li:hover {
  background: var(--fh-accent-soft);
}
.fh-find-list li > span:nth-child(2) {
  flex: 1;
  font-weight: 700;
}
.fh-find-list small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fh-faint);
}
.fh-find-ico {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--fh-fair-bg);
  color: var(--fh-accent-ink);
}
.fh-find-ico .om-icon {
  width: 18px;
  height: 18px;
}
.fh-find-none {
  cursor: default !important;
  color: var(--fh-muted) !important;
  background: none !important;
}
.fh-learn {
  --tone: #e8b63f;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--tone) 55%, var(--fh-line-strong));
  background: color-mix(in srgb, var(--tone) 14%, var(--fh-surface));
  color: var(--fh-ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  box-shadow: var(--fh-shadow);
  transition: transform 0.15s;
}
.fh-learn:hover {
  transform: translateY(-1px);
}
.fh-learn-keys {
  --tone: #5fb3d9;
}
@media (max-width: 700px) {
  .fh-learn-keys > span:last-child {
    display: none;
  }
  .fh-learn {
    padding: 0 12px;
  }
}

/* ------------------------------------------------------------------ your farming year */
.fh-path .fh-card-head small {
  color: var(--fh-muted);
}
.fh-path-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 4px 2px 10px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(124px, 1fr);
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  position: relative;
}
.fh-path-stage {
  scroll-snap-align: start;
  position: relative;
}
/* the road between stages */
.fh-path-stage:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 44px;
  right: -11px;
  width: 12px;
  height: 4px;
  border-radius: 2px;
  background: var(--fh-line-strong);
}
.fh-path-stage.done:not(:last-child)::after {
  background: var(--fh-good);
}
.fh-path-stage button {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 0 0 10px;
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  border: 1.5px solid var(--fh-line);
  background: var(--fh-surface);
  color: var(--fh-ink);
  font: inherit;
  cursor: pointer;
  position: relative;
  transition:
    transform 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
.fh-path-stage button:hover,
.fh-path-stage button:focus-visible {
  transform: translateY(-3px);
  border-color: var(--fh-accent-ink);
  box-shadow: 0 10px 24px #0002;
}
.fh-path-art {
  display: block;
  width: 100%;
  height: 84px;
  overflow: hidden;
  position: relative;
  background: var(--fh-fair-bg);
}
.fh-path-art > svg {
  display: block;
  width: 100%;
  height: 100%;
}
.fh-path-stage.done .fh-path-art {
  filter: saturate(0.55) brightness(0.96);
}
.fh-path-glyph {
  --tone: #e8b63f;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--tone) 40%, transparent), transparent 70%),
    color-mix(in srgb, var(--tone) 12%, var(--fh-surface));
  color: color-mix(in srgb, var(--tone) 75%, var(--fh-ink));
}
.fh-path-glyph .om-icon {
  width: 40px;
  height: 40px;
}
.fh-path-n {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  background: #000a;
  color: #fff;
}
.fh-path-stage.done .fh-path-n {
  background: var(--fh-good);
}
.fh-path-stage b {
  padding: 4px 10px 0;
  font-size: 14px;
  line-height: 1.2;
}
.fh-path-stage small {
  padding: 0 10px;
  font-size: 12px;
  color: var(--fh-muted);
  line-height: 1.3;
}
.fh-path-stage em {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  background: var(--lime, #d6e85c);
  color: #1a2a10;
}
.fh-path-stage.now button {
  border-color: var(--fh-accent-ink);
  box-shadow:
    0 0 0 3px var(--fh-accent-soft),
    0 10px 24px #0002;
}
:root:not([data-motion='calm']):not([data-motion='reduced']) .fh-path-stage.now em {
  animation: fh-path-pulse 2.2s ease-in-out infinite;
}
@keyframes fh-path-pulse {
  50% {
    transform: scale(1.12);
  }
}
@media (prefers-reduced-motion: reduce) {
  .fh-path-stage.now em {
    animation: none !important;
  }
}
.fh-path-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--fh-accent-soft);
}
.fh-path-next > span:last-child {
  display: flex;
  gap: 8px;
}

/* ------------------------------------------------------------------ up next */
.fh-nextup {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 26px 0 6px;
  padding-top: 18px;
  border-top: 1px dashed var(--fh-line-strong);
}
.fh-nextup-label {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--fh-faint);
}
.fh-nextup button {
  --tone: var(--fh-accent-ink);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--fh-line);
  background: var(--fh-surface);
  color: var(--fh-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--fh-shadow);
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.fh-nextup button:hover,
.fh-nextup button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--tone);
}
.fh-nextup button .om-icon,
.fh-nextup-book {
  width: 34px;
  height: 34px;
  flex: none;
  padding: 7px;
  box-sizing: border-box;
  border-radius: 10px;
  background: var(--fh-fair-bg);
  color: var(--fh-accent-ink);
  display: grid;
  place-items: center;
  font-size: 17px;
}
.fh-nextup button > span:not(.fh-nextup-book) {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.fh-nextup small {
  color: var(--fh-muted);
  font-size: 12px;
}
.fh-nextup i {
  font-style: normal;
  color: var(--fh-faint);
}
.fh-nextup-learn {
  background: color-mix(in srgb, var(--tone) 12%, var(--fh-surface)) !important;
}
@media print {
  .fh-navstrip,
  .fh-nextup,
  .fh-path {
    display: none !important;
  }
}
