/* The location index and the directions inserted into existing guides. */
.lf-directory, .lf-detail {
  color: #192d3c;
  background: #f7f1e2;
}
.lf-directory-head {
  padding-block: 23px 18px;
  background: #cbe5d5;
  border-bottom: 1px solid #849d8b;
}
.lf-directory h1, .lf-detail h1 {
  margin: 0;
  color: #192d3c;
  font: 700 clamp(43px, 8vw, 83px)/.99 var(--display);
  letter-spacing: -.028em;
  overflow-wrap: anywhere;
}
.lf-directory h1 em {
  color: #265448;
  font: italic 400 .92em/1.02 var(--serif);
}
.lf-directory-head p {
  max-width: 53ch;
  margin: 9px 0 0;
  font-size: 15px;
}
.lf-library { padding-block: 16px 38px; }
.lf-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.lf-filters label {
  display: grid;
  min-width: 0;
  gap: 3px;
  font-weight: 700;
  font-size: 13px;
}
.lf-search-field { grid-column: 1 / -1; }
.lf-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.lf-search-wrap svg {
  position: absolute;
  left: 12px;
  width: 20px;
  color: #265448;
  pointer-events: none;
}
.lf-filters input, .lf-filters select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid #89938b;
  border-radius: 4px;
  background-color: #fffcf3;
  color: #192d3c;
  font: 400 16px/1.3 "DM Sans", Arial, sans-serif;
}
.lf-filters input { padding: 10px 7px 10px 40px; }
.lf-filters input::placeholder { color: #57665e; opacity: 1; }
.lf-filters select { padding: 7px; cursor: pointer; }
.lf-filters select:focus-visible, .lf-return:focus-visible, .lf-row-link:focus-visible {
  outline: 3px solid #862747;
  outline-offset: 2px;
}
.lf-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 50px;
}
#lf-count { margin: 0; color: #34574c; font-size: 14px; font-weight: 700; }
.lf-results-bar button {
  min-height: 44px;
  padding: 6px;
  border: 0;
  color: #862747;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lf-results {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
  margin: 0;
  list-style: none;
}
.lf-row { min-width: 0; border-top: 1px solid #b7bbab; scroll-margin-block: 4.5rem; }
.lf-row-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 74px;
  height: 100%;
  padding: 9px 4px 9px 0;
  color: #192d3c;
  text-decoration: none;
}
.lf-row-link:hover { color: #862747; }
.lf-row-link:has(+ .lf-shortcuts) { height: auto; }
.lf-shortcuts { display: flex; flex-wrap: wrap; gap: 0 16px; }
.lf-row-link[href*="#task-"] + .lf-shortcuts { display: none; }
.lf-shortcuts a {
  display: inline-flex; align-items: center; min-height: 44px; color: #265448;
  font: 700 14px/1.3 "DM Sans", Arial, sans-serif; text-underline-offset: 3px;
}
.lf-row-link:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.lf-row-link .lf-thumb {
  display: block;
  flex: none;
  width: 86px;
  height: 61px;
  object-fit: cover;
  padding: 0;
  border: 1px solid #b1aca0;
  border-radius: 2px;
}
.lf-thumb-wrap { position: relative; flex: none; }
.lf-thumb-label {
  position: absolute;
  bottom: 3px;
  left: 3px;
  padding: 1px 4px;
  border-radius: 2px;
  background: #233e35;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}
.lf-row-copy { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.lf-row-copy strong { font: 700 23px/1.08 var(--display); }
.lf-row-meta { color: #4a5a54; font-size: 13px; line-height: 1.35; }
.lf-row-meta > span, .lf-detail-head p > span { color: #727967; }
.lf-arrow { margin-left: auto; color: #862747; font: 700 21px/1 var(--display); }
.lf-guide-hits h3 { margin: 14px 0 4px; }
.lf-guide-hits ul { list-style: none; margin: 0; padding: 0; }
.lf-guide-hits a { display: inline-flex; align-items: center; min-height: 44px; }
.lf-empty {
  border-top: 1px solid #b7bbab;
  padding-block: 20px;
  color: #42534a;
}
.lf-detail { padding-bottom: 42px; }
.lf-breadcrumb { flex-wrap: wrap; padding-block: 11px; gap: 4px 9px; }
.lf-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.lf-detail-head { padding-block: 6px 15px; border-bottom: 3px solid #265448; }
.lf-detail-head p {
  margin: 0 0 7px;
  font-size: 14px;
  font-weight: 700;
  color: #265448;
}
.lf-spread { display: grid; gap: 22px; align-items: start; }
.lf-detail-copy { min-width: 0; }
.lf-guide {
  min-width: 0;
  max-width: 78ch;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid #b7bbab;
  border-top: 3px solid #265448;
  background: #fffcf3;
  color: #192d3c;
  scroll-margin-top: 4.6rem;
}
.lf-step-photo { margin-block: 8px; }
.lf-step-photo > summary {
  min-height: 44px;
  padding: 12px 0;
  color: #265448;
  font: 700 15px/1.4 "DM Sans", Arial, sans-serif;
  cursor: pointer;
}
.lf-step-photo .lf-guide { margin: 0; padding: 8px 0; border: 0; }
.lf-guide > h2 {
  margin: 0 0 10px;
  font: 700 clamp(28px, 4vw, 40px)/1.06 var(--display);
  letter-spacing: -.018em;
  overflow-wrap: anywhere;
}
.lf-guide > h2 span { white-space: normal; }
.lf-detail .lf-guide {
  padding: 0;
  border: none;
  background: transparent;
}
.lf-property { display: flex; flex-wrap: wrap; column-gap: 18px; border-bottom: 1px solid #b7bbab; }
.lf-property a { display: inline-flex; align-items: center; min-height: 44px; color: #862747; font-size: 14px; font-weight: 700; }
.lf-detail .lf-guide + .lf-guide { margin-top: 20px; padding-top: 16px; border-top: 3px solid #265448; }
.lf-nearby { margin-block: 20px 6px; padding: 14px 16px 6px; border-left: 3px solid #386153; background: #e7eee2; color: #192d3c; scroll-margin-top: 5rem; }
.lf-nearby h3 { margin: 0 0 4px; color: #234b42; font: 700 24px/1.2 var(--display); }
.lf-nearby ul { margin: 0; padding: 0; list-style: none; }
.lf-nearby li { margin: 0; padding: 0; border-bottom: 1px solid #b7c8b8; }
.lf-nearby li a { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding-block: 8px; min-height: 44px; color: #183c33; text-decoration: none; }
.lf-nearby strong, .lf-nearby small { display: block; overflow-wrap: anywhere; }
.lf-nearby small { margin-top: 2px; color: #485c53; font-size: 13px; }
.lf-nearby .lf-area-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: #743348; }
.lf-nearby a:focus-visible { outline: 2px solid #862747; outline-offset: 2px; }
.lf-guide .lf-instruction { margin: 0; padding: 15px 0; border-bottom: 1px solid #c9c9ba; }
.lf-guide .lf-instruction h3 {
  margin: 0 0 4px;
  color: #265448;
  font: 700 clamp(22px, 2.1vw, 28px)/1.16 var(--display);
  text-transform: none;
  letter-spacing: normal;
}
.lf-guide .lf-instruction p { margin: 0; color: #192d3c; font: 400 16px/1.55 "DM Sans", Arial, sans-serif; }
.lf-field-links { display: flex; flex-wrap: wrap; gap: 0 16px; }
.lf-onsite-tasks { margin: 12px 0 0; padding: 0; list-style: none; }
.lf-onsite-tasks li { padding: 12px 0 4px; border-top: 1px solid #c9c9ba; scroll-margin-top: 4.6rem; }
.lf-onsite-tasks h4 { margin: 0 0 4px; color: #265448; font: 700 20px/1.15 var(--display); }
.lf-evidence {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  color: #862747;
  font-size: 14px;
  font-weight: 700;
}
.lf-guide .lf-sources { padding-block: 3px; border-bottom: 1px solid #c9c9ba; }
.lf-guide .lf-sources summary {
  min-height: 44px;
  padding-block: 12px;
  cursor: pointer;
  color: #4a5a54;
  font-size: 14px;
  font-weight: 700;
}
.lf-sources ul { margin: 0 0 8px; padding-left: 1.25rem; }
.lf-sources li a { display: inline-block; min-height: 44px; padding-block: 9px; color: #862747; overflow-wrap: anywhere; }
.lf-return {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 4px;
  color: #862747;
  font-size: 14px;
  font-weight: 700;
}
.lf-scene {
  max-width: 40rem;
  margin: 12px 0 5px;
  padding: 6px;
  border: 1px solid #b7bbab;
  background: #fffcf3;
}
.lf-route-reference, .lf-task-photo { margin-top: 8px; }
.lf-route-reference summary, .lf-task-photo summary {
  width: fit-content;
  padding: 12px 12px 12px 0;
  color: #862747;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}
.lf-route-reference .lf-route-figure { margin: 0 0 8px; }
.lf-scene img { display: block; width: 100%; height: auto; }
.lf-enlarge { display: block; cursor: zoom-in; }
.lf-scene figcaption b { color: #254d41; }
.lf-scene figcaption small { display: block; margin-top: 4px; line-height: 1.45; }
.lf-scene figcaption a { color: #7b2d46; }
.lf-scene figcaption { padding: 8px 4px 2px; color: #4a5a54; font-size: 13px; }
@media (max-width: 360px) {
  .lf-row-link .lf-thumb { width: 72px; height: 52px; }
}
@media (min-width: 641px) {
  .lf-directory-head { padding-block: 32px 26px; }
  .lf-directory-head p { font-size: 17px; }
  .lf-library { padding-block: 23px 54px; }
  .lf-filters { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 15px; }
  .lf-search-field { grid-column: auto; }
  .lf-results { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(18px, 3vw, 45px); }
  .lf-row-link .lf-thumb { width: 80px; height: 54px; }
  .lf-row-copy strong { font-size: 25px; }
}
@media (min-width: 900px) {
  .lf-row-link .lf-thumb { width: 104px; height: 70px; }
  .lf-detail .lf-guide { max-width: none; }
  .lf-detail .lf-instructions:has(> .lf-scene) {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 0 5%;
    align-items: start;
  }
  .lf-detail .lf-instruction { grid-column: 1; }
  .lf-detail .lf-instructions > .lf-scene { grid-column: 2; grid-row: 1 / span 4; }
  .lf-detail-head { padding-bottom: 21px; }
  .lf-scene { margin-top: 1.2rem; }
}

/* A short, in-flow contents list for places with several independent tasks. */
.location-toc {
  min-width: 0;
  margin: 12px 0 18px;
  padding: 10px 0 5px;
  color: #192d3c;
  border-block: 1px solid #a8b7a7;
}
.location-toc .location-toc-title {
  margin: 0 0 3px;
  color: #42594e;
  font: 700 14px/1.35 "DM Sans", Arial, sans-serif;
}
.location-toc ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.location-toc li { min-width: 0; margin: 0; padding: 0; }
.location-toc li a {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  padding-block: 5px;
  color: #265448;
  font: 700 15px/1.3 "DM Sans", Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.location-toc li a:hover { color: #862747; }
.location-toc li a:focus-visible, .location-task-heading:focus-visible {
  outline: 2px solid #862747;
  outline-offset: 2px;
}
main :where([tabindex="-1"][id], .location-task-heading, .lf-onsite-tasks > li[id]) { scroll-margin-top: 5rem; }
@media (min-width: 740px) {
  .location-toc ul { display: flex; flex-wrap: wrap; column-gap: 24px; }
}
.lf-guide .lf-task > .location-task-heading {
  margin: 0 0 8px;
  color: #192d3c;
  font-size: clamp(26px, 3.7vw, 36px);
}
.lf-task .lf-instruction h4 {
  margin: 0 0 4px;
  color: #265448;
  font: 700 20px/1.2 var(--display);
}
.lf-primary-task .lf-instruction { padding-block: 8px; border: 0; }
.lf-guide > .lf-instruction:has(+ .location-toc) { padding-bottom: 0; border-bottom: 0; }
.estate-spread.guide-task-header, .sherwin-spread.guide-task-header { display: block; }
.guide-task-reading { max-width: 860px; padding-block: 24px; }
.guide-task-reading > section + section { margin-top: 28px; padding-top: 18px; border-top: 1px solid #b7bbab; }
.guide-task-reading .estate-arrival-card, .guide-task-reading #boatworks-photos { max-width: 680px; }
.guide-task-reading > .lf-sources { margin-top: 20px; }
@media (max-width: 730px) {
  [data-guide-id]:has(.location-toc) .gv-columns > .gv-side { order: 1; }
}
