/* dt-find-v1 (lane find, 2026-10-21). Diba Teb store look: #1354ff / #00369a, paper #f5f8ff, line #e3eaf8, Vazirmatn (inherited).
   Mobile first: no fixed widths, min-width:0 everywhere, tap targets >= 44 px. Never loaded on "/". */
:root{--dtf-blue:var(--dt-blue,#1354ff);--dtf-navy:#00369a;--dtf-paper:var(--dt-paper,#f5f8ff);--dtf-line:#e3eaf8;--dtf-ink:#1f2a44;--dtf-mute:#52658d}

/* chips shared by F18 */
.dtf-chip{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 14px;border-radius:999px;border:1px solid #cddbf5;
  background:#fff;color:var(--dtf-navy)!important;font-size:14px;font-weight:700;line-height:1.4;text-decoration:none!important;white-space:nowrap}
.dtf-chip:hover{border-color:var(--dtf-blue);color:var(--dtf-blue)!important}
.dtf-chip.is-ghost{background:transparent;border-style:dashed;color:var(--dtf-mute)!important}
.dtf-chip:focus-visible,.dtf-sample:focus-visible,.dtf-sg-pv:focus-visible,.dtf-recent__card:focus-visible,.dtf-recent__clear:focus-visible,.dtf-dym a:focus-visible{outline:2px solid var(--dtf-blue);outline-offset:2px}

/* F18L: "this chapter is in block N" on the results page */
.dtf-f18{margin:0 0 18px;padding:12px 14px;background:var(--dtf-paper);border:1px solid var(--dtf-line);border-radius:16px;min-width:0}
.dtf-f18__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.dtf-f18__item{min-width:0}
.dtf-f18__item+.dtf-f18__item{padding-top:12px;border-top:1px solid var(--dtf-line)}
.dtf-f18__block{margin:0 0 2px;font-size:15.5px;font-weight:800;line-height:1.8;color:var(--dtf-navy)}
.dtf-f18__line{margin:0 0 10px;font-size:14px;font-weight:500;line-height:1.9;color:var(--dtf-mute);overflow-wrap:anywhere}
.dtf-f18__chips{display:flex;flex-wrap:wrap;gap:6px;min-width:0}

/* F18L / F27 rows inside the live search */
.dtf-sg .dtf-sg-ic{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;background:var(--dtf-paper);color:var(--dtf-blue)}
.dtf-sg .dtf-sg-ic svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dtf-sg .wd-entities-title{font-weight:700;color:var(--dtf-navy)}
.dtf-sg--f27 .wd-entities-title{color:var(--dtf-blue)}

/* F25 sample buttons */
.dtf-sample{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin:6px 0 2px;padding:0 12px;border-radius:12px;border:1px solid #cddbf5;
  background:#fff;color:var(--dtf-blue)!important;font-size:13.5px;font-weight:800;text-decoration:none!important;position:relative;z-index:2;max-width:100%}
.dtf-sample svg,.dtf-sg-pv::before{flex:0 0 auto}
.dtf-sample svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.dtf-sample span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dtf-sample:hover{border-color:var(--dtf-blue);background:var(--dtf-paper)}
.dtf-sg-pv{position:relative;z-index:3;display:inline-flex;align-items:center;min-height:44px;margin-top:4px;padding:0 12px;border-radius:10px;border:1px solid #cddbf5;
  background:#fff;color:var(--dtf-blue)!important;font-size:13px;font-weight:800;text-decoration:none!important;line-height:1.4}
.dtf-sg-pv:hover{border-color:var(--dtf-blue);background:var(--dtf-paper)}

/* F23 recently viewed */
.dtf-recent{margin:0 0 clamp(22px,3vw,34px);min-width:0}
.dtf-recent[hidden]{display:none!important}
.dtf-recent__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;min-width:0}
.dtf-recent__title{margin:0;font-size:clamp(17px,2.2vw,20px);font-weight:800;color:var(--dtf-ink);line-height:1.6}
.dtf-recent__clear{min-height:44px;padding:0 10px;border:0;background:transparent;color:var(--dtf-mute);font:inherit;font-size:13.5px;font-weight:700;cursor:pointer;border-radius:10px}
.dtf-recent__clear:hover{color:var(--dtf-blue);background:var(--dtf-paper)}
.dtf-recent__row{list-style:none;margin:0;padding:2px 2px 8px;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(132px,40%);gap:10px;
  overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;min-width:0}
.dtf-recent__item{position:relative;min-width:0;scroll-snap-align:start}
.dtf-recent__card{display:flex;flex-direction:column;gap:6px;height:100%;padding:8px;border:1px solid var(--dtf-line);border-radius:14px;background:#fff;
  text-decoration:none!important;color:var(--dtf-ink)!important;min-width:0}
.dtf-recent__card:hover{border-color:#b9cdf3}
.dtf-recent__img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:10px;background:var(--dtf-paper)}
.dtf-recent__name{font-size:13px;font-weight:700;line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.dtf-recent__meta{font-size:12px;color:var(--dtf-mute);line-height:1.6}
.dtf-recent__note{margin:4px 0 0;font-size:12px;color:#7a8bb0}
@media (min-width:768px){
  .dtf-recent__row{grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:repeat(6,minmax(0,1fr));overflow:visible}
}

/* F26 book chips: standalone row when dt-ui2's bar (and its stylesheet) is not on the page */
.dtf-f26bar{display:flex;flex-direction:column;gap:10px;margin:0 0 18px;padding:12px 14px;background:var(--dtf-paper);border:1px solid var(--dtf-line);border-radius:16px;min-width:0}
.dtf-f26bar .dtui2-fbar__row,.dtui2-fbar .dtf-f26row{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:start;gap:8px;min-width:0}
.dtf-f26bar .dtui2-fbar__lbl{padding-top:11px;font-size:12.5px;font-weight:800;color:var(--dtf-mute);line-height:1.6}
.dtf-f26bar .dtui2-fbar__chips{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.dtf-f26bar .dtui2-chip{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:44px;padding:0 14px;border-radius:999px;
  background:#fff;border:1px solid #cddbf5;color:var(--dtf-navy)!important;font-size:14px;font-weight:700;text-decoration:none!important}
.dtf-f26bar .dtui2-chip.is-on{background:var(--dtf-blue);border-color:var(--dtf-blue);color:#fff!important}
.dtf-chip26 .dtf-ic{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
@media (min-width:1025px){.dtui2-fbar .dtf-f26row,.dtf-f26bar .dtui2-fbar__row{grid-template-columns:auto minmax(0,1fr)}}

/* F27 did you mean (results page) */
.dtf-dym{display:flex;align-items:center;gap:10px;margin:0 0 16px;padding:10px 14px;border-radius:14px;background:var(--dtf-paper);border:1px solid var(--dtf-line);
  font-size:15px;line-height:1.9;color:var(--dtf-ink);min-width:0}
.dtf-dym svg{flex:0 0 auto;width:22px;height:22px;fill:none;stroke:var(--dtf-blue);stroke-width:2;stroke-linecap:round}
.dtf-dym span{min-width:0;overflow-wrap:anywhere}
.dtf-dym a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:0 6px;font-weight:800;color:var(--dtf-blue)!important;text-decoration:underline;text-underline-offset:4px}
@media (prefers-reduced-motion:reduce){.dtf-recent__row{scroll-behavior:auto}}

/* live search: the chapter line and the did-you-mean row take the whole width of the results grid */
.dtf-sg{grid-column:1/-1}
.wd-suggestions-group>.wd-suggestion.dtf-sg{flex:0 0 100%!important;max-width:100%!important;width:100%!important}
