/* Free tools pages (/<lang>/tools/<slug>): the cigarette cost calculator and
   the Fagerström test. Built on site.css (colours, fields, tables); only what
   those two pages add is here. Made by hosting/.araclar/uret.py, 2026-10-13. */

.band-tight { padding-block: 20px 40px; }
/* Same left edge as the page heading; the tool itself stays a readable width. */
.tool-single > * { max-width: 780px; }
.tool-kicker {
  color: var(--brand); font-weight: 700; font-size: .85rem; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 8px;
}
:lang(ar) .tool-kicker, :lang(hi) .tool-kicker, :lang(ur) .tool-kicker, :lang(ckb) .tool-kicker { letter-spacing: 0; }

.tool-local {
  display: flex; align-items: flex-start; gap: 10px; max-width: 62ch;
  background: var(--surface-2); color: var(--ink-2); border-radius: 12px;
  padding: 10px 14px; font-size: .92rem; margin: 4px 0 0;
}
.tool-local svg { flex: none; margin-top: .2em; color: var(--brand); }

.tool h2 { font-size: 1.25rem; margin: 22px 0 10px; }
.tool h2:first-child { margin-top: 0; }
.fields-one { grid-template-columns: minmax(0, 260px); }

.result-grid {
  display: grid; gap: 10px; margin: 0 0 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.result-grid > div { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.result-grid dt { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.result-grid dd {
  margin: 4px 0 0; font: 700 1.4rem/1.15 var(--serif); font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.result-grid > .hl { background: var(--lime); color: #0f2a20; }
.result-grid > .hl dt { color: #2b4a3d; }
.tool-hint { color: var(--ink-2); }
.tool-hint[hidden] { display: none; }

/* Fagerström questions */
.q { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.q legend { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; margin-bottom: 10px; padding: 0; }
.q-num {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--brand); font-size: .85rem; line-height: 1;
}
.opts { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.opt {
  display: flex; align-items: center; gap: 10px; cursor: pointer; min-width: 0;
  padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg);
}
.opt input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.opt span { overflow-wrap: anywhere; }
.opt:hover { border-color: var(--mint); }
.opt:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--surface)); }
.opt:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }

.ftnd-result { border-top: 1px solid var(--line); padding-top: 16px; }
.ftnd-result [hidden] { display: none; }
.tool-warn {
  border-inline-start: 4px solid var(--brand); background: var(--surface-2);
  padding: 10px 14px; border-radius: 8px; font-weight: 600;
}
.ftnd-result .btn-line, .btn-share { background: none; font: inherit; font-weight: 600; cursor: pointer; }

.bands { max-width: 360px; }
.sources { padding-inline-start: 1.1rem; margin: 0 0 1rem; }
.sources li { margin: 4px 0; }
.sources a { overflow-wrap: anywhere; }

/* Share and the other tool */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.share-note { margin: 0; flex: 1 1 220px; }
.share-status { min-height: 1.4em; margin: 8px 0 18px; }
.share-status input {
  display: block; width: 100%; margin-top: 6px; font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
}
.other-tool .small { margin: 0 0 4px; }
.other-tool h3 { margin-bottom: 6px; }
