/* Styles for the mantsala.net front page (index.html) and the plot calculator
   (tonttilaskuri.html). Everything else comes from style.css; this file only adds
   what those two pages need, with the same tokens. No shadows, no gradients, no
   one-sided accent borders, radius 6px. */

.tekija {
  max-width: 60ch;
  margin: 1.25rem 0 0;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

/* Small fact tables: they must fit a 320px screen without horizontal scrolling,
   so cells may wrap (DESIGN-RULES: tables do not scroll by default). */
.faktataulu {
  margin: 1.25rem 0 0.5rem;
}

.faktataulu .data-table th,
.faktataulu .data-table td {
  white-space: normal;
}

.lahde-rivi {
  max-width: 68ch;
  margin: 0.5rem 0 1.5rem;
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
}

.toiminnot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
}

/* --- Tonttilaskuri ------------------------------------------------------ */

.laskuri {
  margin: 1.5rem 0 2rem;
  padding: clamp(1.1rem, 3vw, 1.75rem);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius);
  background: var(--color-bg-light);
}

.laskuri__kentta {
  margin: 0 0 1.1rem;
}

.laskuri__kentta label {
  display: block;
  margin: 0 0 0.35rem;
  color: var(--color-laivasto);
  font-weight: 700;
}

.laskuri__ohje {
  margin: 0.3rem 0 0;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.laskuri select,
.laskuri input {
  width: 100%;
  max-width: 32rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--color-keskisininen);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
}

.laskuri input {
  max-width: 9rem;
}

.tulos {
  margin: 1.5rem 0 0;
}

.tulos .data-table th {
  white-space: normal;
}

/* Two columns only: the label wraps, the euro value stays on one line. */
.tulos .data-table td {
  white-space: nowrap;
}

.tulos .data-table tr.is-summa th,
.tulos .data-table tr.is-summa td {
  background: var(--color-bg-keltainen);
  color: var(--color-laivasto);
  font-weight: 750;
}

.kaava {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
}

.kaava li {
  margin: 0 0 0.4rem;
}

@media (max-width: 48rem) {
  .faktataulu .data-table,
  .tulos .data-table {
    font-size: var(--text-xs);
  }

  .faktataulu .data-table th,
  .faktataulu .data-table td,
  .tulos .data-table th,
  .tulos .data-table td {
    padding: 0.45rem 0.5rem;
  }
}
