/* Fees page */

/* the schedule: the table beside the blended-rate curve */
.sched { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 0; overflow: hidden; }
.sched__table { padding: clamp(18px, 2.6vw, 34px); border-right: 1px solid var(--line); }
.sched__table td:first-child { color: var(--fg); }
.sched__table td.num { white-space: nowrap; }
.sched__chart { padding: clamp(18px, 2.6vw, 34px); display: grid; gap: 14px; align-content: start; min-width: 0; }
.rate__chart { height: clamp(220px, 20vw, 280px); }
.rate__chart canvas { cursor: crosshair; }
.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--line); }
.terms li { display: grid; gap: 8px; align-content: start; padding: 22px 24px 24px 0; border-bottom: 1px solid var(--line); }
.terms li:not(:nth-child(3n + 1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.terms b { font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: -.015em; line-height: 1.2; }
.terms span { color: var(--muted); font-size: 15px; line-height: 1.6; }
@media (max-width: 1000px) {
  .sched { grid-template-columns: 1fr; }
  .sched__table { border-right: 0; border-bottom: 1px solid var(--line); }
  .terms { grid-template-columns: 1fr 1fr; }
  .terms li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .terms li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .terms { grid-template-columns: 1fr; }
  .terms li:nth-child(even) { padding-left: 0; border-left: 0; }
  .sched__table .table th:nth-child(4), .sched__table .table td:nth-child(4) { display: none; }
  .sched__table .table { font-size: 14px; }
  .sched__table td.num { white-space: normal; }
}

/* household billing */
.hh { display: grid; grid-template-columns: minmax(320px, 500px) minmax(0, 1fr); overflow: hidden; }
.hh__in { padding: clamp(20px, 2.6vw, 34px); border-right: 1px solid var(--line); display: grid; gap: 22px; align-content: start; }
.hh__out { padding: clamp(20px, 2.6vw, 34px); display: grid; gap: 22px; align-content: start; min-width: 0; }
.hh__list { display: grid; gap: 8px; }
.hh-row { display: grid; grid-template-columns: minmax(0, 1fr) 134px 36px; gap: 8px; align-items: center; animation: hhIn .5s var(--ease); }
@keyframes hhIn { from { opacity: 0; transform: translateY(8px); } }
.hh-row.is-out { animation: hhOut .32s var(--ease) forwards; }
@keyframes hhOut { to { opacity: 0; transform: translateX(-12px); } }
.hh-row input { width: 100%; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); outline: none; font-size: 15px; transition: border-color .3s; }
.hh-row input:focus { border-color: var(--fg); }
.hh-row input.amt { font-family: var(--mono); text-align: right; font-size: 14.5px; }
.hh-row input[aria-invalid="true"] { border-color: var(--down); }
.hh-row .x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); transition: color .3s, border-color .3s, background-color .3s; }
.hh-row .x:hover { color: var(--fg); border-color: var(--fg); }
.hh-row .x[disabled] { opacity: .3; pointer-events: none; }
.hh__empty { font-size: 14px; color: var(--muted); padding: 14px 0; }
.hh__bars { display: grid; gap: 14px; }
.hh__bar p { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.hh__bar b { font-family: var(--mono); font-weight: 500; color: var(--fg); }
.hh__bar i { display: block; height: 10px; border-radius: 6px; background: var(--card-2); overflow: hidden; }
.hh__bar em { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--accent); transition: width .8s var(--ease); }
.hh__bar.is-sep em { background: color-mix(in srgb, var(--fg) 40%, transparent); }
.hh__say { font-family: var(--serif); font-size: clamp(19px, 1.6vw, 24px); line-height: 1.32; letter-spacing: -.012em; text-wrap: pretty; }
.hh__say em { color: var(--accent); }
.hh__share td { padding-block: 11px; font-size: 14.5px; }
.hh__share td:not(:first-child), .hh__share th:not(:first-child) { text-align: right; padding-right: 0; padding-left: 14px; white-space: nowrap; }
.hh__share tfoot td { border-bottom: 0; font-weight: 500; color: var(--fg); }
.hh__share .bar { display: inline-block; vertical-align: middle; height: 4px; margin-right: 10px; border-radius: 2px; background: var(--accent); opacity: .7; }
@media (max-width: 1000px) { .hh { grid-template-columns: minmax(0, 1fr); } .hh__in { min-width: 0; border-right: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .hh-row { grid-template-columns: minmax(0, 1fr) 124px 34px; gap: 6px; } .hh-row input { padding: 11px 10px; font-size: 14px; } .hh-row input.amt { font-size: 13px; } .hh-row .x { width: 34px; height: 34px; } .hh .kpis { grid-template-columns: 1fr 1fr; } .hh .kpis .kpi:first-child { grid-column: 1 / -1; } .hh__share th, .hh__share th:not(:first-child) { white-space: normal; } .hh__share .bar { display: none; } .hh__share td:not(:first-child), .hh__share th:not(:first-child) { padding-left: 10px; } }

/* included */
.incl-cards .card--note { background: transparent; border-style: dashed; border-color: var(--line-2); }
.incl-cards .card--note h3 em { color: var(--accent); }

/* comparison */
.cmp { overflow: hidden; }
.cmp__bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px clamp(18px, 2.4vw, 28px); border-bottom: 1px solid var(--line); }
.cmp .table-wrap { padding: 0 clamp(18px, 2.4vw, 28px); }
.cmp__table { table-layout: fixed; min-width: 860px; }
.cmp__table th[scope="row"] { width: 17%; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding-top: 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp__table thead th { font-family: var(--serif); font-size: 19px; letter-spacing: -.01em; text-transform: none; color: var(--fg); font-weight: 400; padding: 22px 16px 16px 0; vertical-align: bottom; line-height: 1.2; }
.cmp__table td { font-size: 14.5px; line-height: 1.5; color: var(--muted); padding-right: 18px; transition: background-color .3s, color .3s; }
.cmp__table .c-us { color: var(--fg); background: color-mix(in srgb, var(--accent) 7%, transparent); padding-left: 16px; }
.cmp__table thead .c-us { color: var(--accent); font-style: italic; }
.cmp__table tr:hover td { color: var(--fg); }
.cmp__cost td { font-family: var(--mono); font-size: 13.5px; }
.cmp__table[data-show="bank"] .c-robo, .cmp__table[data-show="bank"] .c-diy,
.cmp__table[data-show="robo"] .c-bank, .cmp__table[data-show="robo"] .c-diy,
.cmp__table[data-show="diy"] .c-bank, .cmp__table[data-show="diy"] .c-robo { display: none; }
.cmp__table:not([data-show="all"]) { min-width: 0; }
.cmp__table:not([data-show="all"]) th[scope="row"] { width: 22%; }
.cmp__note { padding: 18px clamp(18px, 2.4vw, 28px) 22px; }
@media (max-width: 800px) {
  /* two columns side by side, each row's label above them */
  .cmp__table { min-width: 0; }
  .cmp__table, .cmp__table thead, .cmp__table tbody { display: block; }
  .cmp__table tr { display: grid; grid-template-columns: 1fr 1fr; }
  .cmp__table thead th:first-child { display: none; }
  .cmp__table thead th { font-size: 16px; padding: 18px 12px 12px 0; border-bottom: 1px solid var(--line-2); }
  .cmp__table thead th.c-us { padding-left: 12px; }
  .cmp__table tbody th[scope="row"] { grid-column: 1 / -1; width: auto !important; font-size: 10.5px; padding: 16px 0 6px; border-bottom: 0; }
  .cmp__table td { font-size: 13.5px; padding: 8px 12px 14px 0; }
  .cmp__table td.c-us { padding-left: 12px; }
  .cmp__table[data-show="all"] .c-robo, .cmp__table[data-show="all"] .c-diy { display: none; }
  #cmpPick [data-v="all"] { display: none; }
}

/* pledge */
.pledge { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 120px); }
.pledge__list { display: grid; border-top: 1px solid var(--line); }
.pledge__list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.pledge__list span { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.pledge__list p { font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.2; letter-spacing: -.02em; }
.pledge__list p em { color: var(--accent); }
.pledge__sig { border-bottom: 0 !important; }
.pledge__sig i { display: block; width: 52px; height: 1px; background: var(--accent); align-self: center; }
.pledge__sig p { font-family: var(--sans) !important; font-size: 14px !important; color: var(--muted); letter-spacing: 0 !important; }
@media (max-width: 900px) { .pledge { grid-template-columns: 1fr; } .pledge__list li { grid-template-columns: 40px minmax(0, 1fr); } }

/* stand-in until site.css stacks .split-head on narrow screens */
@media (max-width: 800px) { .split-head { grid-template-columns: minmax(0, 1fr); align-items: start; } }
