/* ============================================================
   Wireless Calculators — content styles
   ------------------------------------------------------------
   Adapted from the static deliverable (resources-wireless.css).
   ALL rules are scoped to .rf-calc-main-col (the right-hand
   column of the calculator page layout) so they CANNOT touch
   the L-com site chrome (header, top menu, footer, sidebar).
   ============================================================ */

.rf-calc-main-col {
  --lcom-blue: #0066b3;
  --lcom-blue-dark: #004a82;
  --rfc-text: #333;
  --rfc-muted: #555;
  --rfc-border: #ccc;
  --rfc-bg-card: #fff;
  color: var(--rfc-text);
}

/* Article card */
.rf-calc-main-col .content-card {
  background: var(--rfc-bg-card);
  border: 1px solid var(--rfc-border);
  border-radius: 2px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}

.rf-calc-main-col .content-card h1 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  color: var(--lcom-blue-dark);
  font-weight: 700;
}

.rf-calc-main-col .content-card h2 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.25rem;
  color: var(--lcom-blue-dark);
}

.rf-calc-main-col .content-card h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
}

.rf-calc-main-col .content-card p {
  margin: 0 0 1rem;
}

.rf-calc-main-col .content-card a {
  color: var(--lcom-blue);
}

.rf-calc-main-col .content-card a:hover,
.rf-calc-main-col .content-card a:focus {
  color: var(--lcom-blue-dark);
  text-decoration: underline;
}

.rf-calc-main-col .lead {
  font-size: 1.05rem;
  color: var(--rfc-muted);
}

.rf-calc-main-col .disclaimer {
  font-size: 0.875rem;
  color: var(--rfc-muted);
  border-left: 4px solid var(--lcom-blue);
  padding: 0.75rem 1rem;
  background: #f9f9f9;
  margin: 1.5rem 0;
}

.rf-calc-main-col .hub-select-prompt {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--lcom-blue-dark);
  margin: 0 0 1rem;
}

/* Hub grid */
.rf-calc-main-col .calculator-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 0;
}

.rf-calc-main-col .hub-tile {
  border: 1px solid var(--rfc-border);
  border-radius: 2px;
  padding: 1rem 1.25rem;
  background: #fafafa;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rf-calc-main-col .hub-tile:hover {
  border-color: var(--lcom-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.rf-calc-main-col .hub-tile h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.rf-calc-main-col .hub-tile h2 a {
  color: var(--lcom-blue-dark);
  text-decoration: none;
  font-weight: 700;
}

.rf-calc-main-col .hub-tile h2 a:hover,
.rf-calc-main-col .hub-tile h2 a:focus {
  color: var(--lcom-blue);
  text-decoration: underline;
}

.rf-calc-main-col .hub-tile p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--rfc-muted);
}

/* Calculator tables */
.rf-calc-main-col .calc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
  background: #fff;
}

.rf-calc-main-col .calc-table th,
.rf-calc-main-col .calc-table td {
  border: 1px solid var(--rfc-border);
  padding: 0.5rem 0.65rem;
  vertical-align: middle;
}

/* Force td background to white so row-header (th) blue does not visually bleed */
.rf-calc-main-col .calc-table td {
  background: #fff;
}

.rf-calc-main-col .calc-table th {
  background: #eef6fc;
  font-weight: 600;
  text-align: left;
}

.rf-calc-main-col .calc-table input[type="text"],
.rf-calc-main-col .calc-table input[type="number"],
.rf-calc-main-col .calc-table select {
  width: 100%;
  max-width: 10rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--rfc-border);
  font-family: inherit;
  font-size: 0.95rem;
}

.rf-calc-main-col .calc-actions {
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.rf-calc-main-col button.btn-primary,
.rf-calc-main-col .calc-actions .btn-primary {
  background: var(--lcom-blue);
  color: #fff;
  border: none;
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  font-family: inherit;
}

.rf-calc-main-col button.btn-primary:hover,
.rf-calc-main-col button.btn-primary:focus {
  background: var(--lcom-blue-dark);
}

.rf-calc-main-col .result-readout {
  font-weight: 600;
  color: var(--lcom-blue-dark);
}

.rf-calc-main-col .equations-block {
  font-size: 0.9rem;
  color: var(--rfc-muted);
}

.rf-calc-main-col .equations-block ol {
  margin: 0.5rem 0 0 1.25rem;
  padding: 0;
}

@media (max-width: 600px) {
  .rf-calc-main-col .content-card h1 {
    font-size: 1.4rem;
  }

  .rf-calc-main-col .calc-table input[type="text"],
  .rf-calc-main-col .calc-table input[type="number"],
  .rf-calc-main-col .calc-table select {
    max-width: 100%;
  }
}

