/* Water tank volume mini-calculator (draft widget) */
.tc-tank {
  margin: 24px 0;
  border-radius: 22px;
  border: 1px solid rgba(10, 77, 140, 0.16);
  background:
    radial-gradient(circle at top right, rgba(232, 168, 56, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(10, 77, 140, 0.08), rgba(255, 255, 255, 0.92));
  box-shadow: 0 22px 55px rgba(10, 77, 140, 0.13);
  overflow: hidden;
}
.tc-inner {
  padding: 26px;
}
.tc-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(10, 77, 140, 0.1);
  color: var(--c-brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.tc-head h3 {
  margin: 0 0 6px;
  font-family: 'Bricolage Grotesque', 'Be Vietnam Pro', sans-serif;
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.05;
  color: var(--c-ink);
}
.tc-head p {
  margin: 0;
  max-width: 650px;
  color: var(--c-ink-2);
  font-size: 14.5px;
  line-height: 1.55;
}
.tc-badge {
  flex-shrink: 0;
  border-radius: 12px;
  padding: 9px 12px;
  background: var(--c-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.tc-scenario-label {
  margin: 0 0 8px;
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 800;
}
.tc-scenarios {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.tc-scenario {
  border: 1px solid rgba(10, 77, 140, 0.16);
  border-radius: 999px;
  padding: 7px 13px;
  background: #fff;
  color: var(--c-ink-2);
  font-size: 13px;
  font-weight: 700;
  transition: background .15s, color .15s, border-color .15s;
}
.tc-scenario:hover {
  background: rgba(10, 77, 140, 0.06);
}
.tc-scenario.active {
  background: var(--c-ink);
  color: #fff;
  border-color: var(--c-ink);
}
.tc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.tc-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-radius: 15px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(10, 77, 140, 0.1);
}
.tc-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--c-ink-2);
  line-height: 1.35;
}
.tc-field input,
.tc-field select {
  width: 100%;
  border: 1px solid rgba(10, 77, 140, 0.15);
  border-radius: 12px;
  padding: 12px 13px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  background: var(--c-surface);
  color: var(--c-ink);
}
.tc-field input:focus,
.tc-field select:focus {
  outline: none;
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px rgba(10, 77, 140, 0.12);
}
.tc-result {
  margin-top: 18px;
}
.tc-main-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(145deg, var(--c-ink), #123b62);
  color: #fff;
}
.tc-main-result span,
.tc-card span,
.tc-range span {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tc-main-result span {
  color: #b8c8d8;
}
.tc-main-result strong {
  display: block;
  margin-top: 4px;
  color: var(--c-accent);
  font-size: clamp(32px, 6vw, 48px);
  line-height: .98;
}
.tc-main-result small {
  display: block;
  margin-top: 8px;
  color: #b8c8d8;
  font-size: 12px;
}
.tc-ring {
  --tc-fill: 70%;
  flex: 0 0 auto;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #123b62 0 58%, transparent 60%),
    conic-gradient(var(--c-accent) var(--tc-fill), rgba(255, 255, 255, .18) 0);
  text-align: center;
}
.tc-ring b,
.tc-ring em {
  grid-area: 1 / 1;
}
.tc-ring b {
  margin-top: -14px;
  font-size: 28px;
  line-height: 1;
  color: #fff;
}
.tc-ring em {
  margin-top: 34px;
  color: #b8c8d8;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}
.tc-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.tc-card {
  min-width: 0;
  border-radius: 16px;
  padding: 15px;
  background: #fff;
  border: 1px solid rgba(10, 77, 140, 0.1);
  box-shadow: var(--shadow-sm);
}
.tc-card span,
.tc-range span {
  color: var(--c-muted);
}
.tc-card strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.12;
  color: var(--c-ink);
}
.tc-card small {
  display: block;
  margin-top: 8px;
  color: var(--c-muted);
  font-size: 12px;
  line-height: 1.35;
}
.tc-verdict {
  margin-top: 14px;
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(15, 138, 95, 0.1);
  color: #0a6043;
  font-size: 14px;
  line-height: 1.55;
  border: 1px solid rgba(15, 138, 95, 0.18);
}
.tc-range {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.tc-range span {
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(10, 77, 140, 0.1);
}
.tc-range strong {
  color: var(--c-ink);
}
.tc-note {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--c-muted);
}
@media (max-width: 720px) {
  .tc-inner { padding: 20px; }
  .tc-head { display: block; }
  .tc-badge { display: inline-flex; margin-top: 12px; }
  .tc-grid,
  .tc-cards { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .tc-main-result {
    align-items: flex-start;
    flex-direction: column;
  }
}
