/* Styles that only the tools need. Everything else (colours, fonts, header, footer, page frame, cells,
   hairline grids, buttons) comes from the main site's style.css, site.css and signal.css, which every
   page loads from https://www.pieterverschueren.com. Never copy those files here. */

/* ── page hero: label, title, intro ── */
.tl-hero { padding-top: var(--nav-height); }
.tl-hero .cell { padding-top: var(--space-80); padding-bottom: var(--space-56); }
.tl-back {
  display: inline-flex; align-items: center; gap: var(--space-6);
  font-size: 0.8rem; color: var(--h-muted); text-decoration: none; margin-bottom: var(--space-24);
}
.tl-back:hover { color: var(--h-text); }
.tl-label {
  display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--h-muted); margin-bottom: var(--space-16);
}
.tl-hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 500; letter-spacing: -0.04em;
  line-height: 1.1; color: var(--h-text); margin-bottom: var(--space-20); max-width: 18em;
}
.tl-hero h1 em {
  font-style: normal; background: var(--highlight); border-radius: var(--radius-3); padding: 0 var(--space-4);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.cell .tl-desc { max-width: 34em; }

/* ── overview: one cell per tool ── */
.tl-card { display: flex; flex-direction: column; gap: var(--space-12); text-decoration: none; transition: background 0.15s; }
a.tl-card:hover { background: var(--bg2); }
.tl-card h2 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; color: var(--h-text); }
.tl-card p { font-size: 0.9rem; }
.tl-card .tl-go { margin-top: auto; display: inline-flex; align-items: center; gap: var(--space-6); font-size: 0.8rem; font-weight: 500; color: var(--h-text); }
.tl-card--soon h2, .tl-card--soon p { color: var(--h-muted); }
/* The "more tools coming" card is always the last card. It stretches over the columns left in its row, so no
   empty grey cell shows. grid-hairline--3 has 3 columns, 2 up to 960px and 1 up to 480px (style.css). */
.grid-hairline--3 > .tl-card--soon:nth-child(3n+1) { grid-column: span 3; }
.grid-hairline--3 > .tl-card--soon:nth-child(3n+2) { grid-column: span 2; }
@media (max-width: 960px) {
  .grid-hairline--3 > .tl-card--soon:nth-child(n) { grid-column: auto; }
  .grid-hairline--3 > .tl-card--soon:nth-child(2n+1) { grid-column: span 2; }
}
@media (max-width: 480px) {
  .grid-hairline--3 > .tl-card--soon:nth-child(n) { grid-column: auto; }
}

/* ── tool UI: fields, button, result ── */
.tl-form { display: flex; flex-direction: column; gap: var(--space-20); }
.tl-field { display: flex; flex-direction: column; gap: var(--space-8); }
.tl-field label { font-size: 0.8rem; font-weight: 500; color: var(--h-text); }
.tl-field small { font-size: 0.75rem; color: var(--h-muted); }
.tl-field input, .tl-field textarea, .tl-field select {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--h-text);
  background: var(--bg2); border: 1px solid var(--h-border); border-radius: var(--radius-6);
  padding: var(--space-10) var(--space-12);
}
.tl-field textarea { min-height: 8em; resize: vertical; }
.tl-field input:focus, .tl-field textarea:focus, .tl-field select:focus { outline: none; border-color: rgba(255,255,255,0.35); }
button.nav-cta { border: 0; font: inherit; cursor: pointer; width: fit-content; }

.tl-result-label { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--h-muted); margin-bottom: var(--space-12); }
.tl-big { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: var(--h-text); }
.tl-result p { margin-top: var(--space-16); }
.tl-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-24); margin-top: var(--space-32); }
.tl-stats .tl-big { font-size: 1.8rem; }
