.bep-intro > p { margin-block: 0 .6rem; }
.bep-intro .bep-scope { margin-top: .85rem; font-size: .9375rem; }
.bep-breadcrumbs, .bep-jump, .bep-resource-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .2rem .85rem;
}
.bep-breadcrumbs { margin-bottom: .85rem; color: var(--uj-text); font-size: .875rem; }
.bep-jump { margin-top: 1rem; }
.bep-jump a { display: inline-flex; align-items: center; min-height: 44px; }
.bep-jump .button { padding: .45rem .9rem; border-radius: 8px; line-height: 1.5; }
.bep-breadcrumbs a, .bep-resource-links a, .bep-credits a { color: var(--uj-teal); text-decoration: underline; text-underline-offset: .2em; }

.bep-workbench, .bep-reading { max-width: 1120px; }
.bep-workbench { padding-bottom: clamp(25px, 4vw, 48px); }
.break-even :is(#bep-form, #bep-guide, #bep-faq) { scroll-margin-block-start: 12px; }
#bep-form, .bep-calculator { display: grid; gap: clamp(12px, 2vw, 20px); }
#bep-form [hidden] { display: none; }
.bep-calculator { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.bep-calculator > *, .bep-more { min-width: 0; }
.break-even .pricing-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem 1rem;
}
.bep-fixed { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.bep-fixed legend { padding: 0; color: var(--uj-ink); font-size: 1.28rem; font-weight: 700; }
.bep-fixed .bep-fixed-help { margin: 0 0 .8rem; }
.bep-subtotal {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .15rem .85rem;
  margin-top: 1rem;
  padding: .55rem .8rem;
  border-radius: 8px;
  background: var(--uj-mist);
  color: var(--uj-ink);
  font-weight: 700;
}
.bep-subtotal output { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bep-variable { margin-top: 1.05rem; padding-top: 1.05rem; border-top: 1px solid #d8e4e9; }
.bep-field-group { min-width: 0; }
.bep-field-label { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .4rem; margin-bottom: .3rem; }
.bep-field-group label { display: block; margin: 0; color: var(--uj-ink); font-size: 1rem; font-weight: 700; }
.bep-field-label small { display: inline-block; color: var(--uj-text); font-size: .85rem; font-weight: 400; }
.break-even .pricing-field input { min-height: 48px; font-size: 1.125rem; }
.break-even .pricing-hint { font-size: .93rem; line-height: 1.55; }
.bep-actions { margin-top: 1rem; }
.bep-actions #bep-example { color: #fff; background: var(--uj-teal); border-color: var(--uj-teal); }
.bep-actions #bep-example:hover { background: var(--uj-ink); }
.bep-actions #bep-clear { background: #fff; }
.bep-actions #bep-clear:hover { background: var(--uj-mist); }

.bep-feedback {
  padding: clamp(14px, 2.35vw, 24px);
  border: 1px solid #c5d9d3;
  border-inline-start: 4px solid var(--uj-teal);
  border-radius: 10px;
  background: var(--uj-sage);
}
.bep-feedback h2 { color: var(--uj-teal); font-size: clamp(1.12rem, 2.2vw, 1.38rem); }
.bep-feedback .bep-month {
  margin-top: .25rem;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  letter-spacing: -.035em;
}
.bep-empty, .bep-formula, .bep-message, .bep-daily { margin: .35rem 0 0; color: var(--uj-text); font-size: .96rem; line-height: 1.6; }
.bep-message { color: #803c2a; }
.bep-extra { margin-top: 1.15rem; }
.bep-option-heading { color: var(--uj-ink); font-size: 1.18rem; }
.bep-output .bep-option-heading { margin-bottom: .65rem; }
.bep-target-result {
  margin-top: .85rem;
  padding: .7rem .8rem;
  border: 1px solid #d1dfd9;
  border-radius: 8px;
  background: var(--uj-mist);
}
.bep-target-result h3 { margin: 0; color: var(--uj-teal); font-size: .95rem; }
.bep-month { margin: .25rem 0 0; color: var(--uj-ink); font-size: 1.18rem; font-weight: 700; line-height: 1.35; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bep-example-tag { display: inline-block; margin: .45rem 0 0; padding: .05rem .45rem; border-radius: .3rem; background: #e1ebee; color: #345663; font-size: .8rem; }
.bep-field-label .bep-example-tag { margin: 0; }

.bep-details summary { cursor: pointer; color: var(--uj-teal); font-weight: 650; line-height: 1.55; }
.bep-details summary:hover { text-decoration: underline; text-underline-offset: .18em; }
.bep-cost-help .bep-details p { margin: .35rem 0 0; }
.bep-cost-help summary { width: fit-content; min-height: 44px; padding-block: .55rem; font-size: .94rem; }
.bep-more > .bep-details, .bep-faq > .bep-details { margin-top: .65rem; border: 1px solid #d8e4e9; border-radius: 9px; }
.bep-more > .bep-details[open], .bep-faq > .bep-details[open] { background: var(--uj-mist); }
.bep-more > .bep-details > summary, .bep-faq > .bep-details > summary {
  min-height: 44px;
  padding: .65rem .85rem;
}
.bep-more > .bep-details[open], .bep-faq > .bep-details[open] { padding: 0 .85rem .85rem; }
.bep-more > .bep-details[open] > summary, .bep-faq > .bep-details[open] > summary { margin-inline: -.85rem; }
.bep-details .pricing-fields { margin-top: .4rem; }
.bep-faq .bep-details p { margin: .3rem 0 0; }
.bep-daily { width: fit-content; padding: .35rem .6rem; border-radius: 6px; background: #fff; color: var(--uj-teal); font-weight: 700; }
.bep-bar { display: flex; overflow: hidden; height: .675rem; margin-block: .6rem; border-radius: 999px; background: #e8edee; }
.bep-bar [data-bep-piece="variable"], .bep-bar [data-bep-piece="goods"] { background: #567587; }
.bep-bar [data-bep-piece="extra"] { background: #ad582e; }
.bep-bar [data-bep-piece="left"] { background: var(--uj-teal); }
.bep-allocation dl { display: grid; gap: .33rem; margin: 0; font-size: .93rem; }
.bep-allocation dl div { display: flex; align-items: baseline; gap: .6rem; justify-content: space-between; }
.bep-allocation dt { display: flex; gap: .45rem; align-items: baseline; }
.bep-allocation dt::before { content: ''; width: .58rem; height: .58rem; border-radius: 50%; background: #567587; flex: 0 0 auto; }
.bep-allocation [data-bep-key="extra"] dt::before { background: #ad582e; }
.bep-allocation [data-bep-key="left"] dt::before { background: var(--uj-teal); }
.bep-allocation dd { margin: 0; white-space: nowrap; font-weight: 650; color: var(--uj-ink); }

.bep-reading { padding-bottom: 2.4rem; }
.bep-reading > section {
  margin-bottom: 1.2rem;
  padding: clamp(16px, 3vw, 32px);
  border: 1px solid var(--uj-line);
  border-radius: var(--uj-radius);
}
.bep-reading h2 { margin: 0 0 .7rem; font-size: clamp(1.35rem, 2.8vw, 1.95rem); line-height: 1.4; color: var(--uj-ink); }
.bep-reading h3 { margin: 1.2rem 0 .45rem; font-size: 1.15rem; line-height: 1.5; color: var(--uj-ink); }
.bep-reading p, .bep-guide-steps { font-size: 1rem; line-height: 1.8; color: var(--uj-text); }
.bep-reading p:last-child { margin-bottom: 0; }
.bep-guide-steps { padding-left: 1.5em; }
.bep-guide-steps li + li { margin-top: .3rem; }
.bep-formulas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin: 1rem 0; }
.bep-formulas div { padding: .8rem; border: 1px solid #d2e0d9; border-radius: 8px; background: var(--uj-mist); }
.bep-formulas dt { color: var(--uj-teal); font-weight: 700; }
.bep-formulas dd { margin: .25rem 0 0; font-size: .94rem; line-height: 1.65; }
.bep-example-table { width: 100%; border: 1px solid var(--uj-line); border-spacing: 0; border-radius: 9px; overflow: hidden; font-size: .97rem; line-height: 1.55; }
.bep-example-table caption { padding: .5rem 0; text-align: left; font-size: .9rem; color: var(--uj-text); }
.bep-example-table :is(th, td) { padding: .75rem .85rem; text-align: left; vertical-align: top; }
.bep-example-table thead { background: var(--uj-teal); color: #fff; }
.bep-example-table tbody tr + tr > * { border-top: 1px solid var(--uj-line); }
.bep-example-table tbody tr:nth-child(even) { background: var(--uj-mist); }
.bep-example-table td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bep-example-table td span { display: none; }
.bep-resources { background: var(--uj-paper); }
.bep-reading .bep-credits { margin-top: 1.05rem; font-size: .875rem; }

@media (max-width: 870px) {
  .bep-calculator { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 650px) {
  .bep-formulas { grid-template-columns: minmax(0, 1fr); }
  .bep-example-table, .bep-example-table :is(caption, tbody, tr, th, td) { display: block; }
  .bep-example-table { position: relative; overflow: visible; border: 0; }
  .bep-example-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .bep-example-table tbody tr { padding: .7rem .8rem; border: 1px solid var(--uj-line); border-radius: 8px; }
  .bep-example-table tbody tr + tr { margin-top: .5rem; }
  .bep-example-table tbody :is(th, td) { padding: .15rem 0; }
  .bep-example-table tbody tr + tr > * { border-top: 0; }
  .bep-example-table tbody td { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem .5rem; }
  .bep-example-table td span { display: inline; color: var(--uj-text); font-size: .9rem; }
}
@media (max-width: 370px) {
  .break-even .pricing-fields { grid-template-columns: minmax(0, 1fr); }
}
