/**
 * AQL calculator — light theme, aligned with site-public-light stat cards.
 */
.aql-page {
  padding-bottom: 3rem;
}

.aql-page .container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.aql-layout {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .aql-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.aql-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.aql-panel h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  color: #0f172a;
  margin: 0 0 1rem;
}

.aql-field {
  margin-bottom: 1rem;
}

.aql-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
}

.aql-field input,
.aql-field select {
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  color: #0f172a;
  background: #f8fafc;
}

.aql-field input:focus,
.aql-field select:focus {
  outline: 2px solid rgba(34, 211, 238, 0.45);
  border-color: #22d3ee;
  background: #fff;
}

.aql-hint {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.25rem;
  line-height: 1.4;
}

.aql-submit {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  background: linear-gradient(45deg, #22d3ee, #06b6d4);
  color: #0f172a;
}

.aql-submit:hover {
  filter: brightness(1.05);
}

.aql-result-card--hidden {
  opacity: 0.55;
}

.aql-result-card--hidden .aql-stat-grid .num {
  color: #94a3b8;
}

.aql-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .aql-stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.aql-stat-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 0.65rem;
  text-align: center;
}

.aql-stat-card .lbl {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.aql-stat-card .num {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0891b2;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
}

.aql-summary {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: #f0fdfa;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 10px;
  font-size: 0.9rem;
  color: #0f172a;
  line-height: 1.55;
}

.aql-disclaimer {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.5;
}

.aql-cta-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.aql-cta-row a {
  text-decoration: none;
}
