/* TaxTami Calculators — shared theme
   Brand palette: deep green #2c724f, dark green #1a5038, accent amber #c97a37, neutral #f8faf9
*/

.calc-hero {
  background: linear-gradient(135deg, #2c724f 0%, #1a5038 100%);
  color: #ffffff;
  padding: 70px 0 50px;
  text-align: center;
}
.calc-hero .crumb {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 14px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 18px;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.calc-hero .crumb a { color:#ffffff; text-decoration:none; }
.calc-hero h1 {
  color: #ffffff;
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
.calc-hero .lede {
  color: #e6f1ec;
  font-size: 17px;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.6;
}

.calc-section {
  padding: 60px 0 90px;
  background: #f8faf9;
}

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}
@media (max-width: 960px) {
  .calc-grid { grid-template-columns: 1fr; }
}

.calc-card {
  background: #ffffff;
  border: 1px solid #e6ebe8;
  border-radius: 14px;
  padding: 30px 30px 26px;
  box-shadow: 0 2px 10px rgba(20,50,35,0.04);
  margin-bottom: 22px;
}
.calc-card h2 {
  color: #1a5038;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
}
.calc-card .subtitle {
  color: #6b7670;
  font-size: 14px;
  margin: 0 0 22px;
}

.calc-field {
  margin-bottom: 18px;
}
.calc-field label {
  display: block;
  color: #1a5038;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}
.calc-field .hint {
  color: #6b7670;
  font-size: 12px;
  margin-top: 4px;
  font-weight: 400;
}
.calc-field input[type="number"],
.calc-field input[type="text"],
.calc-field input[type="date"],
.calc-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #cfd8d3;
  border-radius: 8px;
  font-size: 15px;
  color: #2a3530;
  background: #ffffff;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.calc-field input:focus, .calc-field select:focus {
  outline: none;
  border-color: #2c724f;
  box-shadow: 0 0 0 3px rgba(44,114,79,0.12);
}
.calc-field .currency-prefix {
  position: relative;
}
.calc-field .currency-prefix::before {
  content: attr(data-prefix);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7670;
  font-weight: 600;
  pointer-events: none;
  font-size: 14px;
}
.calc-field .currency-prefix input { padding-left: 44px; }

.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.calc-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) {
  .calc-row, .calc-row-3 { grid-template-columns: 1fr; }
}

.calc-toggle {
  display: inline-flex;
  background: #f0f4f2;
  border: 1px solid #d9e2dd;
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 16px;
}
.calc-toggle button {
  background: transparent;
  border: 0;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7670;
  cursor: pointer;
  transition: all .15s;
}
.calc-toggle button.active {
  background: #2c724f;
  color: #ffffff;
}

.calc-btn {
  background: #2c724f;
  color: #ffffff;
  border: 0;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  letter-spacing: 0.3px;
}
.calc-btn:hover { background: #1a5038; }
.calc-btn.secondary {
  background: transparent;
  color: #2c724f;
  border: 1px solid #2c724f;
}
.calc-btn.secondary:hover { background: #f0f7f3; }

.calc-result {
  background: linear-gradient(135deg, #f0f7f3 0%, #e6f1ec 100%);
  border: 1px solid #c5dccd;
  border-radius: 12px;
  padding: 24px 26px;
  margin-top: 14px;
}
.calc-result .label {
  color: #1a5038;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 4px;
}
.calc-result .value {
  color: #1a5038;
  font-size: 34px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
}
.calc-result .breakdown {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #b8d0c2;
}
.calc-result .breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: #2a3530;
}
.calc-result .breakdown-row strong { color: #1a5038; }
.calc-result .breakdown-row.total {
  border-top: 1px solid #b8d0c2;
  margin-top: 6px;
  padding-top: 10px;
  font-weight: 700;
  font-size: 15px;
}

.calc-step {
  background: #ffffff;
  border: 1px solid #e6ebe8;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 12px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.calc-step .step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: #2c724f;
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.calc-step .step-body h3 {
  color: #1a5038;
  font-size: 16px;
  font-weight: 700;
  margin: 4px 0 6px;
}
.calc-step .step-body p {
  color: #3c4744;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 6px;
}
.calc-step .step-body code {
  background: #f0f7f3;
  color: #1a5038;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'Menlo', monospace;
}

.calc-callout {
  background: #fef6ed;
  border-left: 4px solid #c97a37;
  padding: 14px 18px;
  border-radius: 4px;
  margin: 16px 0;
}
.calc-callout strong { color: #8e561f; }
.calc-callout p {
  margin: 0;
  color: #4a3520;
  font-size: 14px;
  line-height: 1.55;
}

.calc-rates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.calc-rates-table th,
.calc-rates-table td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid #e6ebe8;
  color: #2a3530;
}
.calc-rates-table th {
  color: #1a5038;
  font-weight: 700;
  background: #f8faf9;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.calc-rates-table td.r { text-align: right; font-variant-numeric: tabular-nums; }

.calc-disclaimer {
  font-size: 12px;
  color: #6b7670;
  font-style: italic;
  margin: 18px 0 0;
  line-height: 1.55;
}

.calc-link-list {
  margin: 0;
  padding-left: 18px;
}
.calc-link-list li {
  margin-bottom: 6px;
  font-size: 14px;
}
.calc-link-list li a { color: #2c724f; text-decoration: none; }
.calc-link-list li a:hover { color: #1a5038; text-decoration: underline; }

/* Hub page tile grid */
.calc-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 18px;
}
.calc-tile {
  background: #ffffff;
  border: 1px solid #e6ebe8;
  border-radius: 14px;
  padding: 26px 24px;
  text-decoration: none;
  display: block;
  transition: all .2s;
  box-shadow: 0 2px 10px rgba(20,50,35,0.04);
}
.calc-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(20,50,35,0.10);
  border-color: #2c724f;
  text-decoration: none;
}
.calc-tile .tile-icon {
  width: 44px;
  height: 44px;
  background: #f0f7f3;
  color: #2c724f;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.calc-tile h3 {
  color: #1a5038;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}
.calc-tile p {
  color: #4a554f;
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 12px;
}
.calc-tile .tile-meta {
  color: #2c724f;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
