.rate-mast {
  background:linear-gradient(180deg,var(--bg-top),var(--bg));
}

.rate-mast-inner {
  padding-block:clamp(32px,5vw,72px) clamp(24px,4vw,44px);
}

.rate-mast h1 {
  margin-block:14px 10px;
}

.rate-summary {
  margin:0;
  color:var(--text-muted);
}

.rate-index-panel {
  margin-bottom:0;
}

.rate-index-panel .data-table tbody + tbody tr:first-child > * {
  border-top:2px solid var(--relief);
}

.rate-choices {
  padding-bottom:0;
}

.rate-period .plan-grid {
  margin-bottom:0;
  padding-bottom:24px;
}

.rate-rule {
  margin-bottom:16px;
  color:var(--text-muted);
}

.rate-rule strong {
  color:var(--text);
}

.rate-card .rate-amount {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}

.rate-card p:not(.rate-amount) {
  color:var(--text-muted);
}

.rate-card > .btn {
  flex-shrink:0;
}

.rate-ledger {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  list-style:none;
  padding:0;
  margin:0;
}

.rate-ledger p,
.rate-entry p {
  margin:0;
  color:var(--text-muted);
}

.rate-inclusions,
.rate-procedure {
  padding-bottom:0;
}

.rate-reading {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,2fr);
  align-items:start;
  gap:clamp(16px,4vw,56px);
}

.rate-reading ol {
  margin:0;
  padding-inline-start:1.5em;
}

.rate-reading li + li {
  margin-top:12px;
}

.rate-help {
  margin-block:16px 24px;
}

.rate-entry {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
  padding-top:24px;
  border-top:1px solid var(--border);
}

@media (min-width:641px) and (max-width:900px) {
  .rate-period .plan-card {
    padding-inline:16px;
  }
}

@media (max-width:640px) {
  .rate-index-panel .data-table tbody + tbody tr:first-child > * {
    border-top:0;
  }

  .rate-ledger,
  .rate-reading {
    grid-template-columns:minmax(0,1fr);
  }

  .rate-period .plan-grid {
    padding-bottom:40px;
  }
}