/* EP17 page-only styles: Fee Band Stack and checklist.
   Muted text uses #5c6563 so meta copy on the sidebar paper clears WCAG AA.
   Not a rate table and not a decision tree. */

.episode .meta,
.crumbs,
.sources li::marker { color: #5c6563; }
.episode .meta,
.site-footer .meta { font-size: 0.95rem; }
.episode-main .section > p { max-width: var(--measure); }
.side-block .meta { color: var(--ink-soft); }
.video-frame--empty .meta,
.site-footer .meta { color: var(--brass-light); }

.episode-grid,
.episode-main,
.episode-side,
.header-inner { min-width: 0; }
.nav { flex-wrap: wrap; max-width: 100%; }

.ep17-token { white-space: nowrap; }
.ep17-caption,
.ep17-schedule li,
.ep17-math li,
.ep17-breakdown li,
.ep17-band-label {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.ep17-caption {
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 .6rem;
}
.ep17-schedule,
.ep17-math,
.ep17-breakdown {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.ep17-schedule li,
.ep17-math li,
.ep17-breakdown li { margin: .35rem 0; }

.ep17-figure { margin: 0 0 1.25rem; }
.ep17-figure figcaption {
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 .6rem;
  hyphens: none;
  overflow-wrap: normal;
}

.ep17-stack {
  list-style: none;
  margin: 0;
  padding: .85rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  background: var(--paper-raised);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
}
.ep17-band {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: .6rem;
  align-items: center;
}
.ep17-band-label {
  font: 600 1rem/1.2 var(--sans);
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}
.ep17-band-track {
  position: relative;
  height: 2.25rem;
  background: var(--paper-deep);
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  overflow: hidden;
}
.ep17-band-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--fill, 0) * 100%);
  background: var(--evergreen);
  transition: height .35s var(--ease);
}

.ep17-calc label {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .35rem;
}
.ep17-calc input[type="number"] {
  font: inherit;
  width: 100%;
  max-width: 22rem;
  min-height: 44px;
  padding: .5rem .75rem;
  border: 2px solid var(--ink-soft);
  border-radius: var(--radius-sm);
  background: var(--paper-raised);
  color: var(--ink);
}
.ep17-calc input[type="number"]:focus-visible {
  outline: 3px solid var(--evergreen);
  outline-offset: 2px;
}
.ep17-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .75rem;
  max-width: 22rem;
  margin: 0 0 1rem;
}
.ep17-actions .btn {
  width: 100%;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  height: auto;
  min-height: 44px;
}
@media (min-width: 40rem) {
  .ep17-actions { flex-direction: row; flex-wrap: wrap; max-width: none; }
  .ep17-actions .btn { width: auto; }
}

.ep17-assumptions { margin-top: 0; }
.ep17-result {
  background: var(--paper-raised);
  border: 1px solid var(--paper-line);
  border-left: 4px solid var(--evergreen);
  border-radius: var(--radius-sm);
  padding: .9rem 1rem .2rem;
  margin: 0 0 1rem;
  color: var(--ink);
}
.ep17-result p:last-child { margin-bottom: .7rem; }

.ep17-checks {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.ep17-checks li {
  display: flex;
  gap: .75rem;
  align-items: center;
  min-height: 44px;
  padding: .35rem 0;
  border-bottom: 1px solid var(--paper-line);
}
.ep17-checks input {
  width: 44px;
  height: 44px;
  margin: 0;
  flex: 0 0 44px;
  accent-color: var(--evergreen);
}
.ep17-checks input:focus-visible,
.ep17-reset:focus-visible {
  outline: 3px solid var(--evergreen);
  outline-offset: 3px;
}
.ep17-checks label {
  cursor: pointer;
  color: var(--ink);
  line-height: 1.45;
  hyphens: none;
  overflow-wrap: normal;
  min-width: 0;
}
.ep17-reset {
  font: inherit;
  min-height: 44px;
  min-width: 44px;
  padding: .5rem 1rem;
  border: 2px solid var(--evergreen);
  border-radius: var(--radius-sm);
  background: var(--paper-raised);
  color: var(--ink);
  cursor: pointer;
}
.ep17-reset:hover { background: var(--evergreen-tint); }
.ep17-status { display: block; margin: .6rem 0 0; max-width: 100%; }

@media (max-width: 520px) {
  .nav { margin-left: 0; }
}

@media print {
  .ep17-reset,
  .ep17-actions { display: none !important; }
}
