/* module-tables.css — the generated module price table (/pricing.html) and the module list
   (every other page). Written as a real stylesheet rather than injected by shared.js because
   both blocks are static HTML a crawler must be able to read, and because shared.js keeps its
   CSS inside a JS template literal where a stray backtick ends the string.
   Mobile-first: the table collapses to stacked cards under 760px via the data-th labels. */

.mt-wrap { max-width: 1100px; margin: 0 auto; }

.mt { width: 100%; border-collapse: collapse; font-size: 14px; }
.mt thead th {
  text-align: left; font-size: 11px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--jp-dim, #7c8b86); font-weight: 700; padding: 0 12px 10px;
  border-bottom: 1px solid rgba(127,127,127,.18);
}
.mt tbody tr { border-bottom: 1px solid rgba(127,127,127,.10); }
.mt tbody tr:hover { background: rgba(45,212,167,.04); }
.mt th[scope="row"] { text-align: left; font-weight: 600; padding: 14px 12px; min-width: 0; }
.mt td { padding: 14px 12px; vertical-align: top; white-space: nowrap; }

.mt-tag { display: block; font-weight: 400; font-size: 12.5px; color: var(--jp-dim, #7c8b86); margin-top: 3px; }
.mt-unit { display: block; font-size: 11.5px; font-weight: 400; color: var(--jp-dim, #7c8b86); margin-top: 2px; }
.mt-slab { display: block; font-size: 11.5px; color: var(--jp-dim, #7c8b86); margin-top: 4px; white-space: normal; }
.mt-add { display: inline-block; font-size: 11.5px; color: var(--jp-dim, #7c8b86); }
.mt-none { opacity: .5; }

.mt-foot { max-width: 78ch; margin: 18px auto 0; font-size: 12.5px; line-height: 1.75; color: var(--jp-dim, #7c8b86); }
.mt-h3 { margin: 40px 0 14px; font-size: 16px; font-weight: 750; letter-spacing: -.005em; }

/* Each module's optional features, with their own prices — collapsed so 21 rows stay readable. */
.mt-det summary {
  cursor: pointer; font-size: 11.5px; color: var(--jp-accent, #2dd4a7);
  min-height: 44px; display: flex; align-items: center;   /* touch target */
}
.mt-det[open] summary { margin-bottom: 4px; }
.mt-det ul { list-style: none; margin: 0; padding: 0; }
.mt-det li { font-size: 11.5px; color: var(--jp-dim, #7c8b86); padding: 2px 0; white-space: normal; }
.mt-det li b { color: inherit; font-weight: 700; }

/* Under 760px a four-column price table cannot be read, and a horizontal scroller hides the
   right-hand columns. Each cell carries its own label instead. */
@media (max-width: 760px) {
  .mt thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mt, .mt tbody, .mt tr, .mt th, .mt td { display: block; width: auto; }
  .mt tbody tr {
    border: 1px solid rgba(127,127,127,.16); border-radius: 14px;
    padding: 12px 14px; margin-bottom: 12px;
  }
  .mt th[scope="row"] { padding: 0 0 8px; font-size: 15px; }
  .mt td { padding: 5px 0; white-space: normal; display: flex; gap: 10px; justify-content: space-between; align-items: baseline; }
  .mt td::before {
    content: attr(data-th); flex: 0 0 auto;
    font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--jp-dim, #7c8b86);
  }
  .mt-unit, .mt-slab { text-align: right; }
}

/* ── the module LIST (no prices) ── */
.ml-s { padding: 54px 0; }
.ml-h { font-size: clamp(20px, 3vw, 27px); font-weight: 800; letter-spacing: -.01em; margin: 0 0 22px; }
.ml-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px; grid-template-columns: 1fr;
}
@media (min-width: 560px) { .ml-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .ml-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ml-grid li {
  border: 1px solid rgba(127,127,127,.14); border-radius: 13px; padding: 12px 14px;
  font-size: 14px; min-width: 0;
}
.ml-grid li b { display: block; font-weight: 650; }
.ml-grid li span { display: block; font-size: 12.5px; color: var(--jp-dim, #7c8b86); margin-top: 3px; }
.ml-foot { margin: 20px 0 0; font-size: 13px; color: var(--jp-dim, #7c8b86); }
.ml-foot a { color: var(--jp-accent, #2dd4a7); text-decoration: none; font-weight: 650; }
.ml-foot a:hover { text-decoration: underline; }
