/* アプリ001 専用の見た目（共通の見た目は shared/base.css） */

.modes {
  border: 0;
  padding: 0;
  margin: 0 0 12px;
}

.modes legend {
  font-weight: 600;
  padding: 0;
  margin-bottom: 4px;
}

.mode {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  min-height: 40px;
}

.mode input {
  width: 20px;
  height: 20px;
  margin: 0;
}

.search-row input {
  flex: 1 1 240px;
  width: auto;
}

.sample-line {
  margin-top: 12px;
}

.small-note {
  font-size: 0.8rem;
}

.examples {
  margin: 8px 0 0;
  padding-left: 1.2em;
}

.examples li {
  margin: 4px 0;
}

.examples button {
  min-height: 36px;
  padding: 4px 10px;
  font-weight: 400;
}

.result-actions {
  margin: 8px 0 12px;
}

/* 結果の表 */
.result-table {
  min-width: 720px;
}

.result-table .col-article {
  width: 28%;
}

.result-table .col-target {
  width: 40%;
}

.article-url,
.small {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.badge {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.8rem;
  padding: 0 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}

.nowrap {
  white-space: nowrap;
}

/* スマホ幅：表をやめて、1件ずつのカードとして縦に並べる */
@media (max-width: 640px) {
  .result-wrap {
    overflow-x: visible;
    border: 0;
    background: transparent;
  }

  .result-table {
    min-width: 0;
  }

  .result-table thead {
    display: none;
  }

  .result-table,
  .result-table tbody,
  .result-table tr,
  .result-table td {
    display: block;
    width: auto;
  }

  .result-table tr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    padding: 8px 0;
  }

  .result-table td {
    border-bottom: 0;
    padding: 4px 12px;
  }

  /* 各項目の前に見出し（data-label）を出す */
  .result-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
  }

  .result-table td:empty {
    display: none;
  }

  .result-table .small {
    display: inline;
    margin-left: 6px;
  }
}
