/* ============================================================
   WorQuick — Tool page styles
   Extends blog.css for interactive tool/calculator pages.
   ============================================================ */

/* ---------- Tool widget shell ---------- */
.tool-widget {
  margin: 0 0 48px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}

.tool-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
}

@media (max-width: 700px) {
  .tool-panel { grid-template-columns: 1fr; }
}

/* ---------- Inputs column ---------- */
.tool-inputs {
  padding: 32px 36px;
  background: var(--bg-alt);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (max-width: 700px) {
  .tool-inputs { border-right: none; border-bottom: 1px solid var(--line); padding: 24px; }
}

.tool-h {
  font-size: 13px;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 24px;
}

/* ---------- Field group ---------- */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.field-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.field-group input,
.field-group select {
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  font-size: 15px;
  color: var(--ink);
  font-family: inherit;
  transition: border-color .15s;
  outline: none;
}

.field-group input:focus,
.field-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-tint);
}

.field-hint {
  font-size: 12.5px;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  line-height: 1.5;
}

/* ---------- Results column ---------- */
.tool-results {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (max-width: 700px) {
  .tool-results { padding: 24px; }
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
}

.result-row:last-of-type { border-bottom: none; }

.result-label {
  font-size: 14px;
  color: var(--ink-2);
  flex: 1;
}

.result-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  font-weight: 600;
  color: var(--blue);
  flex-shrink: 0;
}

.tool-note {
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  line-height: 1.5;
  border-top: 1px solid var(--line-2);
  padding-top: 16px;
}
