/* Commissions page (aff-kit/pages/commissions.php). Every class starts with cm- so the shell can change freely. */
.cm-page { font-size: 18px; line-height: 1.6; padding: 8px 0 40px; }
.cm-page p { margin: 0 0 14px; }
.cm-sec { margin: 44px 0; }
.cm-head { max-width: 820px; margin-bottom: 22px; }
.cm-head h2, .cm-boost h2 { font-size: clamp(26px, 3vw, 32px); font-family: var(--serif); font-weight: 600; color: #0d2236; margin: 0 0 10px; line-height: 1.2; }
.cm-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: start; }
.cm-table-wrap { background: #fff; border: 1px solid #e7e0d2; border-radius: 14px; padding: 8px 22px 16px; box-shadow: 0 10px 30px rgba(13, 34, 54, .06); }
.cm-table { width: 100%; border-collapse: collapse; }
.cm-table thead th { text-align: left; font-size: 16px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: #5a6776; padding: 14px 8px 10px; border-bottom: 2px solid #14598a; white-space: nowrap; }
.cm-table thead th:nth-child(n+2), .cm-table td { text-align: right; }
.cm-table tbody th, .cm-table td { padding: 16px 8px; border-bottom: 1px solid #efe9dd; vertical-align: top; }
.cm-table tbody tr:last-child th, .cm-table tbody tr:last-child td { border-bottom: 0; }
.cm-table tbody th { text-align: left; font-weight: 400; }
.cm-table tbody th b { display: block; font-size: 19px; color: #0d2236; }
.cm-table tbody th span { display: block; color: #2a3846; font-size: 16px; }
.cm-table tbody th small { display: block; color: #5a6776; font-size: 16px; margin-top: 4px; line-height: 1.45; }
.cm-price { font-weight: 700; color: #2a3846; white-space: nowrap; }
.cm-you { font-weight: 900; font-size: 22px; color: #14598a; white-space: nowrap; }
.cm-down th { box-shadow: inset 4px 0 0 #14598a; padding-left: 14px; }
.cm-src { font-size: 16px; color: #5a6776; margin: 10px 0 0 !important; }
.cm-chart { margin: 0; background: #fff; border: 1px solid #e7e0d2; border-radius: 14px; padding: 18px; }
.cm-chart img { display: block; width: 100%; height: auto; }
.cm-chart figcaption { font-size: 16px; color: #5a6776; text-align: center; margin-top: 8px; }

.cm-rates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cm-rate { padding: 24px 26px; }
.cm-rate small { display: block; margin-bottom: 10px; color: #5a6776; font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.cm-rate h3 { margin: 0 0 10px; color: #0d2236; font-size: 22px; line-height: 1.3; }
.cm-rate p { margin: 0; color: #0d2236; }
.cm-terms { display: flex; flex-wrap: wrap; gap: 10px 34px; margin: 0 0 12px; }
.cm-terms dt { color: #5a6776; font-size: 16px; font-weight: 700; }
.cm-terms dd { margin: 0; color: #0d2236; font-size: 22px; font-weight: 700; }
.cm-terms dd.big { color: #14598a; font-size: 44px; font-weight: 900; line-height: 1.05; }
.cm-table-wrap .cm-table thead th:nth-child(2) { text-align: right; }

.cm-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cm-flow li { display: flex; gap: 16px; background: #fff; border: 1px solid #e7e0d2; border-radius: 14px; padding: 22px; }
.cm-flow h3 { font-size: 20px; margin: 2px 0 8px; color: #0d2236; }
.cm-flow p { margin: 0; }
.cm-n { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #14598a; color: #ffffff; font-weight: 900; font-size: 19px; display: flex; align-items: center; justify-content: center; }

.cm-link { background: #0d2236; border-radius: 14px; padding: 22px 24px; }
.cm-url { margin: 0 !important; font-family: ui-monospace, Consolas, monospace; font-size: 18px; color: #c4d2df; overflow-wrap: anywhere; line-height: 1.7; }
.cm-url b { font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.cm-a { color: #ffffff; background: #1b6ea8; }
.cm-t { color: #0d2236; background: #f4b733; }
.cm-y { color: #0d2236; background: #b9dcef; }
.cm-parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.cm-part { background: #fff; border: 1px solid #e7e0d2; border-radius: 14px; padding: 20px; }
.cm-part > b { display: inline-block; font-family: ui-monospace, Consolas, monospace; font-size: 18px; padding: 2px 8px; border-radius: 6px; margin-bottom: 10px; }
.cm-part p { margin: 0; }
.cm-page code { font-family: ui-monospace, Consolas, monospace; font-size: 16px; background: #e9f6fc; padding: 1px 6px; border-radius: 5px; color: #0d2236; }
.cm-more { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 22px 0 0 !important; }
.cm-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; background: #14598a; color: #ffffff; font: 900 17px "Source Sans 3", "Segoe UI", Arial, sans-serif; text-decoration: none; box-shadow: 0 8px 20px rgba(20, 89, 138, .3); }
.cm-btn:hover { background: #1b6ea8; }
.cm-btn .ico, .cm-textlink .ico { width: 18px; height: 18px; }
.cm-textlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #14598a; }

.cm-boost { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center; background: #fff; border: 1px solid #e7e0d2; border-left: 6px solid #14598a; border-radius: 14px; padding: 30px; }
.cm-mgr { background: #f6f2ea; border-radius: 14px; padding: 16px; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .cm-grid, .cm-boost, .cm-rates { grid-template-columns: minmax(0, 1fr); }
  .cm-parts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .cm-page { font-size: 17px; }
  .cm-sec { margin: 34px 0; }
  .cm-flow { grid-template-columns: minmax(0, 1fr); }
  .cm-table-wrap { padding: 4px 14px 12px; }
  .cm-table tbody th, .cm-table td { padding: 14px 4px; }
  .cm-you { font-size: 19px; }
  .cm-url { font-size: 16px; }
  .cm-boost { padding: 22px 18px; }
  .cm-flow li { padding: 18px; }
}

/* HM additions */
.cm-rate-boost { border-top: 5px solid var(--gold); background: #fffdf8; }
.cm-rate h3, .cm-flow h3 { font-family: var(--serif); font-weight: 600; }
.cm-terms dd.big { font-family: var(--serif); font-weight: 600; }
.cm-table tbody th span { color: var(--storm); font-weight: 700; }
.cm-y { color: #0d2236; background: #f4b733; }
.cm-t { color: #0d2236; background: #b9dcef; }
.cm-more .btn { margin-right: 14px; }
