/**
 * NYJW rate tables, notices, TOC and CTA
 * ---------------------------------------------------------------------------
 * Used on /billing-questions/ and intended for reuse by the workshop-rates
 * shortcode. Brand orange #f26522 / #d4551d, ink #131313 — matching main.css.
 */

/* ---------------------------------------------------------------- rate tables */

.nyjw-rate-table {
  margin: 0 0 2.25rem;
  overflow-x: auto;              /* narrow screens scroll the table, not the page */
  -webkit-overflow-scrolling: touch;
}

.nyjw-rate-table table {
  width: 100%;
  min-width: 480px;              /* below this the columns collapse; scroll instead */
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e6e1dc;
  border-radius: 8px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(19, 19, 19, 0.06);
}

/* Caption sits above the table as a quiet label. */
.nyjw-rate-table caption {
  caption-side: top;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #6b6560;
  padding: 0 0 0.6rem;
}

.nyjw-rate-table thead th {
  background: #131313;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.85rem 1rem;
  text-align: center;
  white-space: nowrap;
  border: 0;
}

.nyjw-rate-table thead th:first-child {
  text-align: left;
}

.nyjw-rate-table tbody th,
.nyjw-rate-table tbody td {
  padding: 0.7rem 1rem;
  border: 0;
  border-top: 1px solid #ece8e4;
}

.nyjw-rate-table tbody tr:first-child th,
.nyjw-rate-table tbody tr:first-child td {
  border-top: 0;
}

/* Row label: the plan name. */
.nyjw-rate-table tbody th[scope="row"] {
  text-align: left;
  font-weight: 600;
  color: #131313;
}

/* Price cells: fixed narrow columns keep the numbers next to their heading and
   make a column scannable top-to-bottom. */
.nyjw-rate-table tbody td {
  width: 170px;
  text-align: center;
  font-weight: 700;
  color: #131313;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  white-space: nowrap;
}

.nyjw-rate-table tbody tr:nth-child(even) th,
.nyjw-rate-table tbody tr:nth-child(even) td {
  background: #faf8f6;
}

.nyjw-rate-table tbody tr:hover th,
.nyjw-rate-table tbody tr:hover td {
  background: #fff4ee;
}

.nyjw-rate-table figcaption,
.nyjw-rate-table .wp-element-caption {
  margin-top: 0.7rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #6b6560;
}

/* --------------------------------------------------------- effective-date line */

.nyjw-rates-effective {
  font-size: 0.9375rem;
  color: #6b6560;
  margin-bottom: 1.25rem;
}

.nyjw-rates-effective strong {
  color: #131313;
}

/* ------------------------------------------------------------------- notice box */

.nyjw-notice {
  background: #fff6f1;
  border-left: 4px solid #f26522;
  border-radius: 6px;
  padding: 1.1rem 1.35rem;
  margin: 0 0 2rem;
}

.nyjw-notice p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #3d3833;
}

.nyjw-notice strong {
  color: #131313;
}

/* -------------------------------------------------------------- table of contents */

.nyjw-toc {
  list-style: none;
  margin: 0 0 2.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nyjw-toc li {
  margin: 0;
}

.nyjw-toc a {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border: 1px solid #e6e1dc;
  border-radius: 999px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #3d3833;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nyjw-toc a:hover,
.nyjw-toc a:focus {
  background: #fff4ee;
  border-color: #f26522;
  color: #d4551d;
}

/* --------------------------------------------------------------------------- CTA */

.nyjw-cta {
  background: #faf8f6;
  border: 1px solid #e6e1dc;
  border-radius: 8px;
  padding: 1.75rem;
  margin: 2.5rem 0 1rem;
  text-align: center;
}

.nyjw-cta h3 {
  margin-top: 0 !important;
  margin-bottom: 0.75rem !important;
}

.nyjw-cta p {
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
  color: #3d3833;
}

.nyjw-cta .wp-block-buttons {
  justify-content: center;
  margin: 1.25rem 0 0.75rem;
}

.nyjw-cta .wp-block-button__link {
  background-color: #f26522;
  border-radius: 4px;
  padding: 0.7rem 2rem;
  font-weight: 700;
}

.nyjw-cta .wp-block-button__link:hover,
.nyjw-cta .wp-block-button__link:focus {
  background-color: #d4551d;
}

/* ------------------------------------------------------------------ small screens */

@media (max-width: 600px) {
  .nyjw-rate-table table {
    font-size: 14px;
  }

  .nyjw-rate-table thead th,
  .nyjw-rate-table tbody th,
  .nyjw-rate-table tbody td {
    padding: 0.6rem 0.7rem;
  }

  .nyjw-rate-table tbody td {
    width: 120px;
  }

  .nyjw-cta {
    padding: 1.25rem;
  }
}
