/* Find a technique: static grouped index, progressively filtered. */
.tf-main { padding-top: 20px; }
.tf-stats { font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.tf-brief { color: var(--gray-600); line-height: 1.55; margin-bottom: 14px; max-width: 860px; }
.tf-about { margin: -6px 0 20px; max-width: 860px; }
.tf-about > summary { font-weight: 700; color: var(--navy); }
.tf-notes { display: grid; gap: 8px; margin: 8px 0 0; padding-left: 1.2em; color: var(--gray-600); line-height: 1.65; }

.tf-controls { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end;
  padding: 16px; margin-bottom: 20px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--gray-50); }
.tf-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tf-field label { font-weight: 700; font-size: .85rem; color: var(--navy); }
.tf-field input, .tf-field select { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); background: var(--white); font: inherit; color: var(--navy); }
.tf-clear { min-height: 44px; }
.tf-field-check { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: center; }
.tf-field-check input { width: 22px; height: 22px; margin: 11px 0; accent-color: var(--red-dark); }
.tf-field-check label { font-weight: 700; color: var(--navy); cursor: pointer; }
.tf-hint, .tf-cues-status { grid-column: 2; font-size: .85rem; color: var(--gray-600); line-height: 1.5; }
.tf-cues-status { color: var(--navy); }
.tf-cues-status:focus { outline: 3px solid var(--red); outline-offset: 2px; }
.tf-cues-retry { min-height: 44px; padding: 6px 2px; background: none; border: 0; color: var(--red-dark); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

.tf-results h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); margin-bottom: 6px; }
.tf-summary { color: var(--gray-600); margin-bottom: 14px; }
.tf-empty { margin-bottom: 16px; }
.tf-empty p + p { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }

.tf-groups { display: grid; gap: 10px; }
.tf-group { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); background: var(--white); overflow-wrap: anywhere; }
.tf-group > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 16px; cursor: pointer; min-height: 44px; list-style: none; }
.tf-about > summary { display: inline-flex; align-items: center; gap: 8px; padding: 8px 2px; cursor: pointer; min-height: 44px; list-style: none; }
.tf-group > summary::-webkit-details-marker, .tf-about > summary::-webkit-details-marker { display: none; }
/* Decorative disclosure chevron drawn with borders (no text, so nothing extra
   is announced; <details> keeps the expanded/collapsed semantics). It points
   right when closed and down when open. No animation. */
.tf-group > summary::before, .tf-about > summary::before { content: ""; flex: none; width: .55em; height: .55em; margin: 0 .2em 0 .1em;
  border-right: 2px solid var(--red-dark); border-bottom: 2px solid var(--red-dark); transform: rotate(-45deg); }
.tf-group[open] > summary::before, .tf-about[open] > summary::before { transform: rotate(45deg) translate(-.12em, -.12em); }
.tf-group > summary:hover .tf-name { text-decoration: underline; }
.tf-group > summary:focus-visible, .tf-about > summary:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.tf-name { flex: 1 1 10em; min-width: 0; font-weight: 800; color: var(--navy); }
.tf-count { font-size: .85rem; color: var(--gray-600); }
.tf-group[open] > summary { border-bottom: 1px solid var(--gray-200); }

.tf-form { padding: 10px 16px 12px; }
.tf-form + .tf-form { border-top: 1px dashed var(--gray-200); }
.tf-form-name { font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.tf-form-name span { margin-left: 6px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-600); }
.tf-form ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tf-form li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; line-height: 1.5; }
.tf-form a { color: var(--red-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.tf-ref, .tf-ko, .tf-kihap { font-size: .82rem; color: var(--gray-600); }
.tf-kihap { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.tf-cue { flex: 1 0 100%; font-size: .88rem; color: var(--gray-600); line-height: 1.5; }
.tf-cue-label { font-weight: 700; color: var(--navy); }
.tf-show-all { margin-top: 6px; padding: 6px 2px; min-height: 44px; background: none; border: 0; color: var(--red-dark); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

.tf-more { margin-top: 28px; color: var(--gray-600); }
.tf-more a { color: var(--red-dark); font-weight: 600; text-decoration: underline; }

@media (max-width: 768px) {
  .tf-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tf-field-q { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .tf-controls { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .tf-group > summary, .tf-form { padding-left: 12px; padding-right: 12px; }
}
