/* Land Measurement & Price Calculator (BD) — mobile-first styles.
   System font stack only (Bangla-capable names); no webfonts. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Noto Sans Bengali", "Hind Siliguri", "SolaimanLipi",
    system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f4f6f5;
  color: #1c2422;
  line-height: 1.55;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 12px; }
.site {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 0 4px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.brand .tool { font-weight: 600; color: #0b6b57; }
.spacer { flex: 1; }
.lang-toggle { display: flex; gap: 6px; }
.lang-toggle button {
  min-height: 44px; padding: 8px 14px; border: 1px solid #0b6b57;
  background: #fff; color: #0b6b57; border-radius: 8px; cursor: pointer;
  font: inherit;
}
.lang-toggle button[aria-pressed="true"] { background: #0b6b57; color: #fff; }
h1 { font-size: 1.35rem; margin: 10px 0 6px; }
h2 { font-size: 1.1rem; margin: 4px 0 10px; }
h3 { font-size: 1rem; margin: 4px 0 8px; }
.card {
  background: #fff; border: 1px solid #d8e2de; border-radius: 12px;
  padding: 14px; margin: 12px 0;
}
.banner {
  border-radius: 10px; padding: 10px 12px; margin: 10px 0;
  border: 1px solid #d8e2de; background: #fff8e6;
}
.banner.warn { border-color: #e3c878; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.tab-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tab-btn {
  min-height: 44px; padding: 8px 12px; border: 1px solid #0b6b57;
  background: #fff; color: #0b6b57; border-radius: 8px; cursor: pointer;
  font: inherit; flex: 1 1 auto;
}
.tab-btn[aria-pressed="true"] { background: #0b6b57; color: #fff; }
.field { margin: 10px 0; }
label, .field-label { display: block; font-weight: 600; margin-bottom: 4px; }
input[type="text"], select, textarea {
  width: 100%; min-height: 44px; padding: 10px; font: inherit;
  border: 1px solid #9db8b0; border-radius: 8px; background: #fff;
  color: inherit;
}
input:focus, select:focus, textarea:focus, button:focus {
  outline: 3px solid #f2a93b; outline-offset: 1px;
}
.hint { color: #4a5a55; font-size: 0.92rem; margin: 4px 0; }
.note { color: #33413c; font-size: 0.95rem; }
.row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.btn {
  min-height: 44px; padding: 9px 14px; border: 1px solid #0b6b57;
  background: #fff; color: #0b6b57; border-radius: 8px; cursor: pointer;
  font: inherit; display: inline-flex; align-items: center; gap: 6px;
}
.btn.primary { background: #0b6b57; color: #fff; }
.btn.danger { border-color: #b3261e; color: #b3261e; background: #fff; }
.form-errors { color: #b3261e; font-weight: 600; }
.sizes-box {
  background: #eef6f2; border: 1px solid #cfe3da; border-radius: 10px;
  padding: 10px 12px; margin-bottom: 10px;
}
.sizes-box p { margin: 4px 0; }
.warn-text { color: #7a4d00; font-weight: 600; }
.results-table { width: 100%; border-collapse: collapse; }
.results-table td {
  padding: 8px 6px; border-bottom: 1px solid #e3ebe8;
  overflow-wrap: anywhere;
}
.results-table td.value { text-align: right; font-weight: 700; }
.results-table tr.active td { background: #eef6f2; }
.warning-box {
  background: #fff8e6; border: 1px solid #e3c878; border-radius: 10px;
  padding: 10px 12px;
}
.plot-box {
  border: 1px solid #d8e2de; border-radius: 10px; padding: 12px;
  margin: 10px 0;
}
.result-line { margin: 6px 0; overflow-wrap: anywhere; }
.result-line strong { color: #0b6b57; }
.check-row {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: 600;
}
.check-row input { width: 22px; height: 22px; }
.confirm-bar {
  border: 1px solid #e3c878; background: #fff8e6; border-radius: 10px;
  padding: 10px 12px; margin: 10px 0;
}
details { margin: 8px 0; }
summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
footer { color: #4a5a55; font-size: 0.92rem; padding: 8px 0 24px; }
.print-only { display: none; }

@media (min-width: 640px) {
  .wrap { padding: 20px; }
  h1 { font-size: 1.6rem; }
}

@media print {
  body { background: #fff; }
  .no-print { display: none !important; }
  .print-only { display: block; }
  #print-sheet { font-size: 12pt; line-height: 1.6; white-space: pre-wrap; }
  #print-sheet p { margin: 2px 0; }
}
