/* Text tools (Franco, numerals). Builds on style.css. */

.text-tool [hidden] { display: none !important; }

.text-tool textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 18px;
  line-height: 1.6;
  padding: 10px 12px;
  min-height: 120px;
}
.text-tool textarea[dir="ltr"] { text-align: left; }
.text-tool .field:first-child { margin-top: 0; }

.text-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 12px; }
.text-options .calendar-choice { margin-bottom: 12px; }
.segmented span { font-size: 15px; }

.text-more { margin: 4px 0 0; }
.text-more summary { cursor: pointer; color: var(--muted); font-size: 15px; }
.two-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.two-selects .field { margin-top: 8px; }

.text-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.text-actions .copy { min-height: 36px; }
.text-actions .copy:disabled { opacity: 0.4; cursor: default; }
.text-status { margin: 0; color: var(--muted); font-size: 15px; flex: 1 1 160px; }
.text-status:empty { display: none; }

.digits-choice { margin-top: 16px; }
.digits-choice .segmented span { font-size: 18px; font-variant-numeric: tabular-nums; }
.digits-choice .hint { margin-top: 6px; }

/* Words with more than one reading */
.alts { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.alts h3 { font-size: 16px; margin: 0; }
.alts .hint { margin: 2px 0 8px; }
.alts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.alts li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg); }
.alts li > span[dir="ltr"] { color: var(--muted); font-size: 15px; min-width: 72px; }
.alt-options { display: flex; flex-wrap: wrap; gap: 6px; }
button.alt {
  font: inherit;
  font-size: 17px;
  min-height: 36px;
  padding: 2px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
button.alt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
button.alt:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Reference tables */
.franco-table th[scope="row"] { font-size: 18px; font-variant-numeric: tabular-nums; }
.franco-table td[lang="ar"] { font-size: 18px; }
.franco-table { white-space: normal; }
.pairs-title { margin-top: 20px; }
.letter-pairs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.letter-pairs li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--bg); }

.privacy-note { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.steps { margin: 0; padding-inline-start: 20px; }
.steps li { margin-bottom: 6px; }

/* Hub page: space between the tool cards and the text under them. */
.cards + .prose { margin-top: 16px; }
