/* ==========================================================================
   A2ZCALCULATE.COM - CALCULATOR TOOL STYLESHEET (BLACK & WHITE MINIMALIST)
   ========================================================================== */

/* Breadcrumbs */
.breadcrumbs,
.breadcrumb {
  font-family: var(--font-mono, ui-monospace, Consolas, monospace);
  font-size: 0.85rem;
  color: var(--text-muted, #555555);
  margin-bottom: 1.25rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  text-transform: lowercase;
  padding: 0;
}

.breadcrumbs li,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs li+li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--text-muted, #555555);
}

.breadcrumbs a,
.breadcrumb a {
  color: var(--text-main, #000000);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumbs a:hover,
.breadcrumb a:hover {
  text-decoration: underline;
}

/* Tool Header */
.tool-header {
  margin-bottom: 1.5rem;
}

.tool-title {
  font-family: var(--font-mono, ui-monospace, Consolas, monospace);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.tool-subtitle {
  font-size: 1rem;
  color: var(--text-muted, #555555);
  margin-bottom: 0;
}

/* 2-Column Responsive Layout */
.tool-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

.tool-main-col {
  min-width: 0;
}

.tool-sidebar-col {
  width: 100%;
}

.sticky-sidebar-wrap,
.sticky-sidebar {
  position: sticky;
  top: 1rem;
}

@media (max-width: 850px) {
  .tool-layout {
    grid-template-columns: 1fr;
  }
}

/* Form Card */
.bw-form-card {
  background: var(--bg-card, #ffffff);
  border: 2px solid var(--border, #000000);
  border-radius: 0;
  padding: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-main, #000000);
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.calc-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.calc-label {
  font-family: var(--font-mono, ui-monospace, Consolas, monospace);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-main, #000000);
}

.calc-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-mono, ui-monospace, Consolas, monospace);
  font-size: 1rem;
  color: var(--text-main, #000000);
  background: var(--bg-body, #ffffff);
  border: 2px solid var(--border, #000000);
  border-radius: 0;
  outline: none;
  transition: background 0.2s, color 0.2s;
}

.calc-input:focus {
  background: var(--text-main, #000000);
  color: var(--bg-body, #ffffff);
}

.calc-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-mono, ui-monospace, Consolas, monospace);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--bg-body, #ffffff);
  background: var(--text-main, #000000);
  border: 2px solid var(--border, #000000);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.calc-btn-primary:hover {
  background: var(--bg-body, #ffffff);
  color: var(--text-main, #000000);
}

/* Results Section */
.calc-result-section {
  margin-top: 2rem;
}

.hidden {
  display: none !important;
}

.section-subheading,
.calc-result-title {
  font-family: var(--font-mono, ui-monospace, Consolas, monospace);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--text-main, #000000);
  border-bottom: 2px solid var(--border, #000000);
  padding-bottom: 0.5rem;
}

/* Results Top Section (Side-by-Side Summary & Pie Chart) */
.results-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2rem;
}

.results-top-grid .summary-cards-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0;
}

.results-top-grid .chart-section {
  margin-bottom: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pie-chart-box canvas {
  max-height: 260px;
  width: 100% !important;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .results-top-grid {
    grid-template-columns: 1fr;
  }
}

/* Summary Cards (3-Column Grid) */
.summary-cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .summary-cards-container {
    grid-template-columns: 1fr;
  }
}

.calc-summary-card {
  background: var(--bg-card, #ffffff);
  border: 2px solid var(--border, #000000);
  border-radius: 0;
  padding: 1.25rem;
  color: var(--text-main, #000000);
}

.calc-summary-label {
  font-family: var(--font-mono, ui-monospace, Consolas, monospace);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted, #555555);
  margin-bottom: 0.4rem;
}

.calc-summary-value {
  font-family: var(--font-mono, ui-monospace, Consolas, monospace);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-main, #000000);
  margin-bottom: 0;
  word-break: break-word;
}

/* Colors Applied ONLY to Generated Result Amounts (Matching Chart Colors) */
.summary-text-investment {
  color: var(--color-investment, #3b82f6) !important;
}

.summary-text-returns {
  color: var(--color-returns, #10b981) !important;
}

.summary-text-maturity {
  color: var(--color-maturity, #8b5cf6) !important;
}

/* Chart Container Cards */
.chart-section {
  background: var(--bg-card, #ffffff);
  border: 2px solid var(--border, #000000);
  border-radius: 0;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.chart-title {
  font-family: var(--font-mono, ui-monospace, Consolas, monospace);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border, #000000);
  padding-bottom: 0.4rem;
  color: var(--text-main, #000000);
}

.chart-container {
  max-width: 100%;
  height: auto;
}

/* Results Table */
.results-table-container {
  overflow: hidden;
}

.table-scroll-wrap {
  width: 100%;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid var(--border, #000000);
}

.results-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--font-mono, ui-monospace, Consolas, monospace);
  font-size: 0.875rem;
}

.results-table-header {
  background: var(--text-main, #000000);
  color: var(--bg-body, #ffffff);
}

.results-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--text-main, #000000);
  color: var(--bg-body, #ffffff);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 2px solid var(--border, #000000);
  border-right: 1px solid var(--border, #000000);
}

.results-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border, #000000);
  border-right: 1px solid var(--border, #000000);
  color: var(--text-main, #000000);
}

.results-table th:last-child,
.results-table td:last-child {
  border-right: none;
}

.table-cell-left {
  text-align: left;
}

.table-cell-right {
  text-align: right;
}

.results-table tbody tr:nth-child(even) {
  background: rgba(128, 128, 128, 0.05);
}

/* SEO Article & Prose */
.calc-about-section {
  margin-top: 2rem;
}

.calc-about-title {
  font-family: var(--font-mono, ui-monospace, Consolas, monospace);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border, #000000);
  padding-bottom: 0.5rem;
}

.calc-prose p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
  color: var(--text-main, #000000);
}

.calc-prose h3 {
  font-family: var(--font-mono, ui-monospace, Consolas, monospace);
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border, #000000);
  padding-bottom: 0.3rem;
}

.calc-info-list {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.calc-info-list li {
  margin-bottom: 0.5rem;
}

/* FAQ Details & Summary */
.calc-info-faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.calc-info-faq {
  border-bottom: 2px solid var(--border, #000000);
  padding-bottom: 0.75rem;
}

.calc-info-faq summary {
  font-family: var(--font-mono, ui-monospace, Consolas, monospace);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.5rem 0;
  color: var(--text-main, #000000);
}

.calc-info-faq summary:hover {
  text-decoration: underline;
}

.calc-info-faq-answer {
  padding: 0.75rem 0 0.25rem 0;
  color: var(--text-muted, #555555);
  line-height: 1.6;
}

/* Sidebar Links & Ad Slot */
.sidebar-links-card {
  margin-top: 1.5rem;
}

.sidebar-card-title {
  font-family: var(--font-mono, ui-monospace, Consolas, monospace);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border, #000000);
  padding-bottom: 0.5rem;
}

.sidebar-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-links-list a {
  font-family: var(--font-mono, ui-monospace, Consolas, monospace);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-main, #000000);
}

.sidebar-links-list a:hover {
  text-decoration: underline;
}

.my-2 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* AdSense Slot Placement & Responsive Layout */
.ad-slot-leaderboard,
.ad-slot-sidebar,
.ad-slot-infeed {
  width: 100%;
  overflow: hidden;
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.ad-slot-leaderboard {
  min-height: 90px;
}

.ad-slot-sidebar {
  min-height: 250px;
}

.ad-slot-infeed {
  min-height: 100px;
}

.adsbygoogle {
  display: block !important;
  margin: 0 auto;
}