/* ============================================================
   CAPACITY GAP CALCULATOR (block: finsmart-capacity-calculator)
   One centred column of numbered steps: intro on white, steps on grey.
   ============================================================ */
.capcalc {
  --cc-good: #1f8a5b;
  --cc-warn: #b7791f;
  --cc-crit: var(--red-dark);
  --cc-cap:  #2d4a8a;
  color: var(--body);
  font-family: var(--font-body);
  container-type: inline-size;
  container-name: capcalc;
}
.capcalc *, .capcalc *::before, .capcalc *::after { box-sizing: border-box; }
.capcalc [hidden] { display: none !important; }
.cc-narrow { max-width: 860px; }

/* Intro */
.cc-intro { padding: 72px 0 44px; background: var(--bg); text-align: center; }
.cc-intro .section-eyebrow { justify-content: center; }
.cc-title { font: 900 clamp(32px, 4.4vw, 52px)/1.08 var(--font-display); color: var(--ink); letter-spacing: -.02em; margin: 14px auto 16px; text-wrap: balance; }
.cc-lede { font-size: 18px; line-height: 1.65; max-width: 62ch; margin: 0 auto; }
.cc-credit { display: inline-flex; gap: 12px; align-items: center; margin-top: 26px; font-size: 14.5px; line-height: 1.45; text-align: left; }
.cc-credit img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 15%; border: 2px solid var(--border); flex: none; }
.cc-credit b { color: var(--ink); font-weight: 700; }
.cc-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; list-style: none; margin: 16px 0 0; padding: 0; font-size: 14px; }
.cc-trust li::before { content: "\2713"; color: var(--red); font-weight: 800; margin-right: 6px; }
.cc-path { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 30px 0 0; padding: 0; counter-reset: ccpath; }
.cc-path li { counter-increment: ccpath; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; white-space: nowrap; border: 1px solid var(--border); border-radius: var(--r-full); background: var(--surface); font: 700 13.5px/1 var(--font-body); color: var(--ink-2); }
@media (min-width: 820px) { .cc-path { flex-wrap: nowrap; gap: 6px; } .cc-path li { font-size: 13px; } }
.cc-path li::before { content: counter(ccpath); width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; font: 800 12px/22px var(--font-display); text-align: center; }

/* Steps */
.cc-app { background: var(--surface); padding: 48px 0 72px; }
.cc-flow { display: grid; gap: 20px; }
.cc-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 18px; min-width: 0; box-shadow: var(--shadow-sm); scroll-margin-top: 110px; }
.cc-card:focus { outline: none; }
.cc-card h3 { font: 800 19px/1.3 var(--font-display); color: var(--ink); margin: 0; }
.cc-card p { margin: 0; }
.cc-card__sub { font-size: 14.5px; line-height: 1.55; max-width: 70ch; }
.cc-card--result { border: 2px solid var(--ink); }
.cc-card--report { border: 2px solid var(--red); }
.cc-card--book { background: var(--red-tint); border-color: var(--red-tint-2); }
.cc-card--extras { gap: 12px; }
@container capcalc (max-width: 520px) { .cc-card { padding: 20px; } }

.cc-step { display: flex; gap: 14px; align-items: flex-start; }
.cc-step h2 { font: 800 clamp(19px, 2.2vw, 23px)/1.3 var(--font-display); color: var(--ink); margin: 2px 0 0; text-wrap: balance; }
.cc-step__n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; font: 900 16px/34px var(--font-display); text-align: center; }
.cc-step__sub { font-size: 14.5px; margin-top: 6px !important; }

.cc-field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.cc-field label, .cc-lbl { font-size: 15px; font-weight: 700; color: var(--ink); }
.cc-hint { font-size: 13px; color: var(--muted); font-weight: 400; line-height: 1.5; }
.cc-hint b { color: var(--ink-2); }
.cc-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; align-items: start; }
.cc-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
@container capcalc (max-width: 560px) { .cc-pair, .cc-trio { grid-template-columns: minmax(0, 1fr); } }

.capcalc input[type=text], .capcalc input[type=email], .capcalc select {
  font: 600 17px var(--font-body); width: 100%; height: 48px; margin: 0; padding: 8px 14px;
  border: 1px solid var(--border-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink);
  transition: border-color var(--t), background var(--t);
}
.capcalc input:focus, .capcalc select:focus { border-color: var(--red); background: #fff; outline: none; box-shadow: 0 0 0 3px var(--red-tint-2); }
.capcalc input.num { font-variant-numeric: tabular-nums; }
.capcalc input[aria-invalid="true"] { border-color: var(--red); }
.capcalc button:focus-visible, .capcalc a:focus-visible, .capcalc summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.cc-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cc-seg button { font: 700 14.5px/1.25 var(--font-body); min-height: 48px; padding: 8px; background: var(--surface); color: var(--ink-2); border: 1px solid var(--border-2); border-radius: var(--r-md); cursor: pointer; transition: all var(--t); }
.cc-seg button:hover { border-color: var(--red); }
.cc-seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.cc-more { display: block; min-width: 0; max-width: 100%; }
.cc-more > * + * { margin-top: 14px; }
.cc-more summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px; border: 1px solid var(--border-2); border-radius: var(--r-md); background: var(--surface); font: 700 15px/1.35 var(--font-body); color: var(--ink); cursor: pointer; transition: background var(--t), border-color var(--t); }
.cc-more summary::-webkit-details-marker { display: none; }
.cc-more summary::before { content: '+'; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font: 800 19px/1 var(--font-body); }
.cc-more[open] summary::before { content: '\2212'; }
.cc-more summary::after { content: 'Show'; flex: none; margin-left: auto; padding-left: 8px; font-size: 13px; font-weight: 700; color: var(--red); }
.cc-more[open] summary::after { content: 'Hide'; }
.cc-more summary:hover, .cc-more[open] summary { border-color: var(--red); background: var(--red-tint); }
.cc-sum-note { font-size: 13px; color: var(--cc-warn); margin: 0; }

.cc-btn { justify-self: start; display: inline-flex; gap: 8px; align-items: center; font: 700 16px/1.3 var(--font-body); padding: 14px 24px; border-radius: var(--r-md); border: 0; background: var(--red); color: #fff !important; cursor: pointer; text-decoration: none; box-shadow: var(--shadow-red); transition: background var(--t), transform var(--t); }
.cc-btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.cc-btn--go { justify-self: stretch; justify-content: center; }

/* Result */
.cc-tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cc-tag.example { color: var(--cc-warn); }
.cc-verdict { font: 700 clamp(19px, 2.2vw, 24px)/1.42 var(--font-display); color: var(--ink); text-wrap: pretty; }
.cc-verdict em { font-style: normal; color: var(--cc-crit); }
.cc-verdict.ok em { color: var(--cc-good); }
.cc-verdict.is-list { font-size: clamp(17px, 1.8vw, 20px); line-height: 1.45; }
.cc-verdict ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cc-verdict li { position: relative; padding-left: 22px; }
.cc-verdict li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.cc-verdict--wait { font-size: 17px; font-weight: 600; color: var(--body); background: var(--surface); border: 1px dashed var(--border-2); border-radius: var(--r-md); padding: 16px 18px; }
.cc-wait { font-size: 14.5px; font-weight: 600; color: var(--body); background: var(--surface); border: 1px dashed var(--border-2); border-radius: var(--r-md); padding: 14px 16px; }
.cc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@container capcalc (max-width: 720px) { .cc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cc-stat { border-top: 3px solid var(--border-2); padding-top: 10px; display: grid; gap: 3px; align-content: start; min-width: 0; }
.cc-stat.crit { border-color: var(--cc-crit); }
.cc-stat.warn { border-color: var(--cc-warn); }
.cc-stat.good { border-color: var(--cc-good); }
.cc-stat .v { font: 900 30px/1.1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.cc-stat .k { font-size: 13.5px; line-height: 1.4; }
.cc-detail { display: grid; gap: 28px; }
.cc-total { margin: 4px 0 0; padding: 12px 16px; background: var(--surface); border-radius: var(--r-md); font-size: 15px; line-height: 1.5; color: var(--ink); }
.cc-total b { font-weight: 800; }
.cc-timing { display: grid; gap: 14px; padding: 20px 22px; background: #fff5f5; border: 1px solid #f6d3d2; border-left: 4px solid var(--red); border-radius: var(--r-md); }
.cc-timing h3 { margin: 0; font: 900 22px/1.25 var(--font-display); color: var(--ink); text-wrap: balance; }
.cc-timing h3 em { font-style: normal; color: var(--cc-crit); }
.cc-timing p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink); }
.cc-mbars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; height: 210px; padding: 8px 4px 0; background: #fff; border: 1px solid #f6d3d2; border-radius: var(--r-md); }
.cc-mbar { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding-bottom: 8px; }
.cc-mbar .v { font: 800 15px/1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.cc-mbar .bw { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.cc-mbar .b { display: block; width: 70%; max-width: 76px; background: #c9d1e3; border-radius: 6px 6px 0 0; }
.cc-mbar.late .b { background: var(--red); }
.cc-mbar.late .v { color: var(--cc-crit); }
.cc-mbar .m { font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.cc-mbar .p { font-size: 12px; color: var(--muted); }
.cc-mbars__k { display: flex; gap: 6px 18px; flex-wrap: wrap; margin: 0; font-size: 13px !important; color: var(--muted) !important; }
.cc-mbars__k span { display: inline-flex; align-items: center; gap: 6px; }
.cc-mbars__k i { width: 12px; height: 12px; border-radius: 3px; background: #c9d1e3; }
.cc-mbars__k i.late { background: var(--red); }
.cc-glance { display: grid; gap: 12px; }
.cc-glance h3 { margin: 6px 0 0; font: 800 18px/1.3 var(--font-display); color: var(--ink); }
.cc-gls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@container capcalc (max-width: 640px) { .cc-gls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cc-gl { display: grid; gap: 4px; align-content: start; padding: 14px; border: 1px solid var(--border); border-top: 3px solid #b8c3da; border-radius: var(--r-md); background: var(--surface); min-width: 0; }
.cc-gl .v { font: 900 22px/1.1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.cc-gl .k { font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.cc-gl.good { border-top-color: var(--cc-good); }
.cc-gl.crit { border-top-color: var(--red); background: var(--red-tint); }
.cc-gl.crit .v { color: var(--cc-crit); }
.capcalc table.cc-roles td.ok { color: var(--cc-good); font-weight: 700; }
.capcalc table.cc-roles td.hot { font-weight: 800; }
.cc-quad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@container capcalc (max-width: 560px) { .cc-quad { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cc-timing__nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@container capcalc (max-width: 720px) { .cc-timing__nums { grid-template-columns: minmax(0, 1fr); } }
.cc-timing__n { display: grid; gap: 3px; align-content: start; min-width: 0; }
.cc-timing__n .v { font: 900 24px/1.1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.cc-timing__n .k { font-size: 13.5px; line-height: 1.4; }
.cc-timing__n.short .v { color: var(--cc-crit); }
.cc-timing__n.spare .v { color: var(--cc-good); }
.cc-sub { display: grid; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border); }

.cc-chart { overflow-x: auto; }
.cc-chart svg text { font-family: var(--font-body); }
.cc-plot { position: relative; min-width: 560px; }
.cc-plot svg { cursor: crosshair; }
.cc-plot svg:focus { outline: none; }
.cc-plot svg:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 4px; }
.cc-tip { position: absolute; z-index: 2; pointer-events: none; display: grid; gap: 5px; min-width: 196px; padding: 10px 12px; background: #fff; border: 1px solid var(--border-2); border-radius: var(--r-md); box-shadow: 0 8px 24px rgba(15, 23, 41, .14); font: 600 13px/1.3 var(--font-body); color: var(--ink-2); }
.cc-tip b { font: 800 13.5px/1.3 var(--font-body); color: var(--ink); }
.cc-tip span { display: flex; align-items: center; gap: 8px; }
.cc-tip i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.cc-tip em { margin-left: auto; padding-left: 12px; font-style: normal; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.cc-tip .hot { color: var(--cc-crit); font-weight: 700; }
.cc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cc-legend { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 13px; }
.cc-legend span { display: inline-flex; gap: 6px; align-items: center; }
.cc-sw { width: 14px; height: 10px; border-radius: 2px; display: inline-block; }
.cc-note { font-size: 14px; font-weight: 600; color: var(--cc-good); }
.cc-note:empty { display: none; }

.cc-list { display: grid; gap: 6px; margin: 0; padding-left: 20px; font-size: 15px; list-style: disc; }
.cc-list li { list-style: disc; }
.cc-list li::marker { color: var(--red); }
.cc-lead { display: grid; gap: 12px; }
.cc-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
/* Fluent Form inside the report card: two columns, button left-aligned at its natural width */
.cc-card--report .fluentform .ff-t-container { gap: 16px; }
.cc-card--report .ff-finsmart-wrap .ff-btn-submit { width: auto !important; }
.cc-card--report .ff-message-success { border: 0; background: #e9f6ef; color: var(--cc-good); border-radius: var(--r-md); padding: 12px 16px; font-weight: 600; }

.cc-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@container capcalc (max-width: 720px) { .cc-options { grid-template-columns: minmax(0, 1fr); } }
.cc-opt { border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px; display: grid; gap: 6px; align-content: start; background: var(--surface); }
.cc-opt.is-seat { border-color: var(--red); background: var(--red-tint); }
.cc-opt.is-zero { opacity: .55; }
.cc-opt__hrs { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); border-bottom: 1px dashed var(--border-2); padding-bottom: 8px; }
.cc-opt__hrs b { color: var(--ink); }
.cc-sum { grid-column: 1 / -1; border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px 18px; background: #fff; display: grid; gap: 10px; }
.cc-why { font-size: 14px; line-height: 1.55; color: var(--ink-2); background: var(--surface); border-left: 3px solid var(--red); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 12px 14px; }
.cc-why b { color: var(--ink); }
.cc-sum .cc-why ul { margin: 6px 0; padding-left: 20px; display: grid; gap: 2px; list-style: disc; }
.cc-sum .cc-why li { display: list-item; padding: 0; border: 0; font-size: 14px; }
.cc-sum h4 { margin: 0; font: 800 16px/1.3 var(--font-display); color: var(--ink); }
.cc-sum ul { list-style: none; margin: 0; padding: 0; display: grid; }
.cc-sum li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.cc-sum li b { font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.cc-sum li.tot { border-bottom: 2px solid var(--ink); font-weight: 800; color: var(--ink); }
.cc-sum li.peak { border-bottom: 0; color: var(--cc-crit); }
.cc-sum li.peak b { color: var(--cc-crit); }
.cc-opt .n { font: 900 32px/1 var(--font-display); color: var(--ink); }
.cc-opt .t { font-weight: 800; font-size: 15.5px; color: var(--ink); }
.cc-opt p { font-size: 14px; line-height: 1.5; }
.cc-seats { list-style: none; margin: 4px 0 2px; padding: 0; display: grid; gap: 6px; }
.cc-seats li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 13.5px; line-height: 1.4; }
.cc-seats li b { font: 900 18px/1.2 var(--font-display); color: var(--red); text-align: right; }
.cc-seats li strong { color: var(--ink); }
.cc-seats li.is-zero { opacity: .5; }
.cc-seats li.is-zero b { color: var(--muted); }
.cc-opt .meta { font-size: 13px; font-weight: 700; color: var(--ink-2); border-top: 1px solid var(--border); padding-top: 8px; }

.cc-whatif { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
@container capcalc (max-width: 560px) { .cc-whatif { grid-template-columns: minmax(0, 1fr); } }
.cc-tbl { overflow-x: auto; }
.capcalc table { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 480px; }
.capcalc th, .capcalc td { padding: 10px; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
.capcalc th:first-child, .capcalc td:first-child { text-align: left; white-space: normal; }
.capcalc thead th { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; border-bottom-color: var(--border-2); }
.capcalc td.n { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.capcalc td.hot { color: var(--cc-crit); }
.capcalc table.cc-months tbody th, .capcalc table.cc-months tfoot th { text-align: left; font-weight: 600; color: var(--ink); white-space: normal; }
.capcalc table.cc-months tfoot th, .capcalc table.cc-months tfoot td { border-bottom: 0; border-top: 2px solid var(--border-2); font-weight: 800; }
.capcalc table.cc-months .cc-barcol { width: 34%; min-width: 120px; }
/* Step 4: month tiles and per-type segmented bars */
#bs-split { display: grid; gap: 18px; }
.cc-split__head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; color: var(--ink-2); }
.cc-split__head b { color: var(--ink); }
.cc-split__head span:first-child b { color: var(--cc-crit); }
.cc-mtiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
@container capcalc (max-width: 560px) { .cc-mtiles { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cc-mtile { display: grid; gap: 4px; padding: 14px 14px 12px; border: 1px solid var(--border); border-top: 3px solid #b8c3da; border-radius: var(--r-md); background: var(--surface); min-width: 0; }
.cc-mtile.late { border-top-color: var(--red); background: var(--red-tint); }
.cc-mtile .k { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cc-mtile .v { font: 900 28px/1.05 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.cc-mtile.late .v { color: var(--cc-crit); }
.cc-mtile .s { font-size: 13px; color: var(--ink-2); }
.cc-mtile .f { display: block; height: 6px; margin-top: 6px; border-radius: 3px; background: rgba(15, 23, 41, .08); overflow: hidden; }
.cc-mtile .f i { display: block; height: 100%; border-radius: 3px; background: #b8c3da; }
.cc-mtile.late .f i { background: var(--red); }
.cc-types { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; }
.cc-types h4 { margin: 0; font: 800 16px/1.3 var(--font-display); color: var(--ink); }
.cc-seglegend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: 12.5px; color: var(--muted); }
.cc-seglegend span { display: inline-flex; align-items: center; gap: 6px; }
.cc-seglegend i { width: 12px; height: 12px; border-radius: 3px; }
.cc-type { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 8px 16px; align-items: center; padding-top: 12px; border-top: 1px solid var(--border); }
@container capcalc (max-width: 640px) { .cc-type { grid-template-columns: minmax(0, 1fr); } }
.cc-type__n { display: grid; gap: 2px; min-width: 0; }
.cc-type__n b { font-size: 14.5px; color: var(--ink); }
.cc-type__n span { font-size: 12.5px; color: var(--muted); }
.cc-seg2 { display: flex; height: 40px; border-radius: 8px; overflow: hidden; gap: 2px; background: #fff; }
.cc-seg2 span { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 0; line-height: 1.05; }
.cc-seg2 b { font-size: 13px; font-weight: 800; }
.cc-seg2 small { font-size: 11px; opacity: .85; }
.capcalc .m0 { background: #dfe4ef; color: var(--ink); }
.capcalc .m1 { background: #b8c3da; color: var(--ink); }
.capcalc .m2 { background: var(--red); color: #fff; }
.capcalc .m3 { background: #b71c1c; color: #fff; }
.capcalc .m4 { background: var(--ink); color: #fff; }
.cc-bar { display: block; height: 10px; border-radius: 5px; background: var(--red); min-width: 2px; }
.capcalc table.cc-months td .c { font-weight: 400; color: var(--muted); }

.cc-ready { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.cc-ready label { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.cc-ready input { margin-top: 3px; accent-color: var(--red); width: 18px; height: 18px; flex: none; }
.cc-callout { border-left: 3px solid var(--red); background: var(--red-tint); padding: 12px 14px; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 14.5px; }

.cc-foot { display: grid; gap: 12px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.cc-disclaimer { border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px; line-height: 1.6; background: #fff; }
.cc-disclaimer b { color: var(--ink); }
.cc-foot p { margin: 0; }

@media (prefers-reduced-motion: reduce) { .capcalc * { transition: none !important; } }
.cc-how { margin: 14px 0 0; font-size: 14.5px; }
.cc-how a { color: var(--red); font-weight: 700; text-decoration: none; }
.cc-how a:hover { text-decoration: underline; }

/* Optional split per return type (v3.0.0) */
.cc-tsplit { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border-2); display: grid; gap: 8px; }
.cc-tsplit__btn { justify-self: start; padding: 0; border: 0; background: none; color: var(--red); font: 700 14.5px/1.4 var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cc-tsplit__btn:hover { color: var(--red-dark); }
.cc-tsplit .cc-hint { margin: 0; }
.cc-tsplit__tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.cc-tsplit__tbl th, .cc-tsplit__tbl td { padding: 8px 6px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.cc-tsplit__tbl thead th { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cc-tsplit__tbl tbody th { font-weight: 700; color: var(--ink); }
.cc-tsplit__tbl input { width: 76px; min-height: 40px; padding: 6px 8px; border: 1px solid var(--border-2); border-radius: 8px; font: 600 15px var(--font-body); color: var(--ink); background: #fff; }
.cc-tsplit__tbl input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(229, 57, 53, .12); }
.cc-tsplit__tbl tr.is-own input { background: var(--red-tint); border-color: #f4b4b2; }
.cc-tsplit__cnt { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.cc-tsplit__reset { padding: 4px 8px; border: 1px solid var(--border-2); border-radius: 6px; background: #fff; font: 600 12.5px var(--font-body); color: var(--ink-2); cursor: pointer; }
.cc-tsplit__reset:hover { border-color: var(--red); color: var(--red); }

/* Client complexity section (v3.1.0) */
.cc-mix { display: grid; gap: 14px; margin-top: 6px; }
.cc-mix__lede { margin: 0; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border-left: 3px solid var(--red); font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.cc-mix__lede b { color: var(--ink); }
.cc-tsplit__tot { font-weight: 700; color: var(--ink); white-space: nowrap; }
.cc-tsplit__cnt:empty { display: none; }
.cc-tsplit__tbl tr.is-own .cc-tsplit__cnt { color: var(--red-dark); }
/* Complexity table fits a phone without sideways scrolling (v3.1.1) */
.cc-mix, #bs-tsplit { min-width: 0; }
.capcalc table.cc-tsplit__tbl { min-width: 0; table-layout: auto; }
.cc-tsplit__tbl input { width: 100%; max-width: 84px; min-width: 44px; }
@media (max-width: 600px) {
	.cc-tsplit__tbl { font-size: 13px; }
	.cc-tsplit__tbl th, .cc-tsplit__tbl td { padding: 6px 3px; }
	.cc-tsplit__tbl thead th { font-size: 10.5px; letter-spacing: 0; }
	.cc-tsplit__tbl input { min-height: 38px; padding: 6px 4px; font-size: 14px; text-align: center; }
	.cc-tsplit__tbl tr > *:last-child { padding-left: 0; }
	.cc-tsplit__reset { padding: 3px 5px; font-size: 11.5px; }
}
/* Phones: each return type becomes a small card: name and count on top, three labelled boxes below (v3.1.2) */
@media (max-width: 600px) {
	#bs-tsplit .cc-tbl { overflow: visible; }
	.cc-tsplit__tbl, .cc-tsplit__tbl tbody { display: block; width: 100%; }
	.cc-tsplit__tbl thead { display: none; }
	.cc-tsplit__tbl tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 8px; padding: 12px 0; border-bottom: 1px solid var(--border); }
	.cc-tsplit__tbl th, .cc-tsplit__tbl td { padding: 0; border: 0; }
	.cc-tsplit__tbl tbody th { grid-column: 1 / 3; font-size: 14px; }
	.cc-tsplit__tbl .cc-tsplit__tot { grid-column: 3; text-align: right; font-size: 13px; }
	.cc-tsplit__tbl .cc-tsplit__tot::after { content: " returns"; font-weight: 400; color: var(--muted); }
	.cc-tsplit__tbl td:nth-child(3)::before, .cc-tsplit__tbl td:nth-child(4)::before, .cc-tsplit__tbl td:nth-child(5)::before { display: block; margin-bottom: 3px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
	.cc-tsplit__tbl td:nth-child(3)::before { content: "Simple"; }
	.cc-tsplit__tbl td:nth-child(4)::before { content: "Moderate"; }
	.cc-tsplit__tbl td:nth-child(5)::before { content: "Complex"; }
	.cc-tsplit__tbl input { max-width: none; width: 100%; }
	.cc-tsplit__tbl td:last-child { grid-column: 1 / -1; }
	.cc-tsplit__tbl td:last-child:has(button[hidden]) { display: none; }
}

/* "I don't have a tax team yet" (v3.2.0) */
.cc-noteam { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--border-2); border-radius: var(--r-md); background: var(--surface); cursor: pointer; transition: border-color var(--t), background var(--t); }
.cc-noteam:hover { border-color: var(--red); }
.cc-noteam:has(input:checked) { border-color: var(--red); background: var(--red-tint); }
.cc-noteam input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.cc-noteam span { display: grid; gap: 3px; font-size: 14px; line-height: 1.5; color: var(--body); }
.cc-noteam b { font-size: 15px; color: var(--ink); }
.capcalc input.num:disabled { opacity: .45; cursor: not-allowed; }

/* Hours per return under each complexity box (v3.3.0) */
.cc-tsplit__h { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.cc-tsplit__tbl td { vertical-align: top; }

/* v4.0.0: complexity definitions per return type, plan by month, report link */
.cc-tsplit__def { display: block; max-width: 340px; margin-top: 3px; font-size: 12px; font-weight: 400; line-height: 1.45; color: var(--muted); }
.cc-tsplit__def b { font-weight: 700; color: var(--ink-2); }
.cc-need { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.cc-need li { position: relative; padding: 10px 14px 10px 30px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); font-size: 15px; line-height: 1.5; color: var(--body); }
.cc-need li::before { content: ""; position: absolute; left: 13px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.cc-need b { color: var(--ink); }
.cc-plan { margin-bottom: 18px; }
.cc-plan td.z { color: var(--muted); }
.cc-options__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
@container capcalc (max-width: 720px) { .cc-options__cards { grid-template-columns: minmax(0, 1fr); } }
.cc-options > .cc-need, .cc-options > .cc-tbl, .cc-options > .cc-options__cards { grid-column: 1 / -1; }
.cc-btn--open { display: inline-flex; margin-top: 8px; }

/* v4.2.0: full plan behind the report form */
.cc-lock { margin-top: 24px; padding: 24px; border: 1px solid var(--border-2); border-top: 3px solid var(--red); border-radius: 0 0 var(--r-md) var(--r-md); background: var(--surface); display: grid; gap: 12px; }
.cc-lock h3 { margin: 0; font-size: 21px; color: var(--ink); }
.cc-lock p { margin: 0; color: var(--body); }
.cc-lock__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cc-lock__list li { position: relative; padding-left: 24px; font-size: 15px; color: var(--ink-2); }
.cc-lock__list li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 10px; height: 6px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }
.cc-lock__form { margin-top: 6px; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); }

/* v4.3.0: paywall. Two bullets readable, the rest blurred and fading under the form. */
.cc-verdict--more { margin-top: 10px; }
.cc-verdict--more:empty { display: none; }
.cc-pw { position: relative; }
.cc-pw.is-locked .cc-pw__body { max-height: 1150px; overflow: hidden; filter: blur(5px); opacity: .8; user-select: none; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 40%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 40%, transparent 100%); }
.cc-pw.is-locked::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(to bottom, rgba(255,255,255,0) 0, rgba(255,255,255,.35) 18%, rgba(255,255,255,.85) 60%, #fff 100%); }
.cc-pw.is-locked .cc-lock { position: absolute; z-index: 3; top: 26px; left: 50%; transform: translateX(-50%); width: min(640px, 100%); margin: 0; background: #fff; box-shadow: 0 22px 60px rgba(15, 23, 41, .18), 0 2px 8px rgba(15, 23, 41, .06); border-radius: var(--r-md); }
@container capcalc (max-width: 720px) { .cc-pw.is-locked .cc-lock { top: 12px; padding: 18px; } .cc-pw.is-locked .cc-lock__form { padding: 12px; } }

/* iOS Safari: a <details> (.cc-more) ignores display:grid and its wide tables (min-width 480-560px)
   pushed the cards, the locked report and the lock form past the screen edge. Keep every card
   child inside its card; wide tables and charts scroll inside their own .cc-tbl box. */
.capcalc .cc-card > *, .cc-pw, .cc-pw__body { min-width: 0; max-width: 100%; }
.capcalc .cc-tbl { max-width: 100%; -webkit-overflow-scrolling: touch; }
.cc-pw { overflow-x: clip; }
