/* The pocket money calculator page. Builds on /styles.css; same colours and type. */

.pmc-answer {
  font-size: 1.15rem;
  line-height: 1.55;
}

.pmc-ai-label,
.pmc-source,
.pmc-hint {
  color: var(--muted);
  font-size: 0.95rem;
}

.pmc-ai-label {
  border-left: 4px solid var(--accent);
  padding-left: 0.9rem;
}

.pmc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 1rem 0;
}

.pmc-card h3 {
  margin-top: 0;
}

.pmc-field {
  margin: 0.9rem 0;
}

.pmc-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.pmc-field input,
.pmc-field select,
.pmc-job select {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 10px;
  min-height: 44px;
  padding: 0.35rem 0.6rem;
}

.pmc-field input {
  width: 8rem;
}

.pmc-hint {
  margin: 0.35rem 0 0;
}

.pmc-link-button {
  font: inherit;
  color: var(--primary);
  background: none;
  border: none;
  padding: 0.25rem 0;
  min-height: 44px;
  text-decoration: underline;
  cursor: pointer;
}

.pmc-jobs {
  border: none;
  padding: 0;
  margin: 1rem 0;
}

.pmc-jobs legend {
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.pmc-group {
  border-top: 1px solid var(--border);
  padding: 0.4rem 0;
}

.pmc-group summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  display: list-item;
  padding: 0.6rem 0;
}

.pmc-job {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.6rem;
  align-items: center;
  padding: 0.35rem 0;
}

.pmc-job input[type="checkbox"] {
  width: 1.4rem;
  height: 1.4rem;
  margin: 0;
}

.pmc-job select {
  grid-column: 2;
  justify-self: start;
}

.pmc-job select:disabled {
  opacity: 0.6;
}

@media (min-width: 640px) {
  .pmc-job {
    grid-template-columns: auto 1fr auto;
  }

  .pmc-job select {
    grid-column: 3;
  }
}

.pmc-size {
  color: var(--muted);
  font-size: 0.9rem;
}

.pmc-result {
  border-top: 2px solid var(--primary);
  padding-top: 0.6rem;
}

.pmc-total {
  font-size: 1.15rem;
}

.pmc-warn {
  color: var(--accent);
  font-weight: 700;
}

.pmc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8rem 0;
  font-size: 0.98rem;
}

.pmc-table caption {
  text-align: left;
  font-weight: 700;
  padding-bottom: 0.4rem;
}

.pmc-table th,
.pmc-table td {
  text-align: left;
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.pmc-table thead th {
  border-bottom: 2px solid var(--primary);
}

.pmc-table tbody th {
  font-weight: 400;
}

.pmc-survey tbody th {
  font-weight: 700;
}

.pmc-outcome {
  background: var(--tint);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin-top: 2.5rem;
}

.pmc-outcome h2 {
  margin-top: 0;
}

.pmc-header-link {
  color: var(--primary);
  font-weight: 700;
  padding: 0.6rem 0;
}

.pmc-byline {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: -0.5rem;
}
