/* Full-page layout. ui.mjs supplies common component rules before this stylesheet. */
@font-face {
  font-family: 'Public Sans';
  src: url('assets/public-sans-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
/* Static for loading, error and no-JS styling; the Node suite pins these declarations to ui.mjs TOKENS_CSS. */
:root {
  --cherry-tco-bg: #f1f4f8;
  --cherry-tco-surface: #fff;
  --cherry-tco-text: #3f3f3f;
  --cherry-tco-muted: #656565;
  --cherry-tco-divider: #e2eaf1;
  --cherry-tco-accent: #d93a43;
  --cherry-tco-link: #c92730;
  --cherry-tco-icon: #8a8f98;
  --cherry-tco-control-border: #7f8995;
  --cherry-tco-control-hover: #f7f9fb;
  --cherry-tco-control-border-hover: #8a94a0;
  --cherry-tco-pressed: #d3dde7;
  --cherry-tco-accent-pressed: #ad222a;
  --cherry-tco-seg-text: #505e6b;
  --cherry-tco-tag-bg: #cff3ea;
  --cherry-tco-tag-text: #2e6e5f;
  --cherry-tco-font: 'Public Sans', Arial, sans-serif;
}
html {
  /* With no visible editor, leave one text line below focused controls. */
  --sticky-focus-gap: 24px;
  /* Before measurement: a 64 px bar plus the focus gap; the footer keeps another gap. */
  --sticky-bar-clearance: 88px;
  --sticky-footer-clearance: calc(var(--sticky-bar-clearance) + var(--sticky-focus-gap));
  scroll-padding-block-end: var(--sticky-clearance, var(--sticky-focus-gap));
}
input,
button,
a,
summary,
[tabindex] {
  scroll-margin-block-end: var(--sticky-clearance, var(--sticky-focus-gap));
}
*,
*::before,
*::after {
  box-sizing: border-box;
  letter-spacing: normal;
}
body {
  margin: 0;
  background: var(--cherry-tco-surface);
  color: var(--cherry-tco-text);
  font: 400 13px/20px var(--cherry-tco-font);
}
button,
input,
output {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
p,
h1,
h2,
h3,
fieldset {
  margin: 0;
}
p {
  text-wrap: pretty;
}
/* Recovery and no-JS links stay styled even when app.mjs cannot load the common components. */
.skip,
.load-status a,
noscript a {
  color: var(--cherry-tco-link);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.link {
  padding: 0;
  border: 0;
  background: none;
  min-height: 32px;
  cursor: pointer;
}
/* Keep the same keyboard ring on the links available before the application loads. */
.brand:focus-visible,
.skip:focus-visible,
.load-status a:focus-visible,
noscript a:focus-visible {
  outline: 2px solid var(--cherry-tco-link);
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 30;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--cherry-tco-surface);
}
.skip:focus {
  top: 8px;
}
.wrap {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}
.site-header {
  border-bottom: 1px solid var(--cherry-tco-divider);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
  padding-block: 16px;
}
.brand img {
  display: block;
  width: 188px;
  height: auto;
}
.currency-control {
  width: 128px;
}
.currency-control .field {
  padding: 0;
  border: 0;
}
.currency-control .label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.intro {
  padding: 32px 0 24px;
}
h1 {
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
}
.intro p {
  margin-top: 8px;
  max-width: 760px;
  font-size: 16px;
  line-height: 24px;
  color: var(--cherry-tco-muted);
}
.view-toolbar:where(:not([hidden])) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 24px;
}
.view-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--cherry-tco-bg);
}
.view-switch button {
  min-width: 88px;
  min-height: 36px;
  padding: 6px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--cherry-tco-seg-text);
  font-weight: 600;
}
.view-switch button[aria-pressed='true'] {
  background: var(--cherry-tco-surface);
  color: var(--cherry-tco-accent);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
}
.view-switch button:hover:not(:disabled) {
  background: var(--cherry-tco-control-hover);
}
.widget-view {
  container-type: inline-size;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}
h2 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}
h3 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}
/* Keep the native hidden state while the shared component rules are still loading. */
.calculator:where(:not([hidden])) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.calculator > * {
  min-width: 0;
}
.load-status {
  padding: 24px;
  border: 1px solid var(--cherry-tco-divider);
  border-radius: 16px;
}
.load-status p + p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 12px;
}
.setup-card,
.result-panel {
  padding: 24px;
  border-radius: 16px;
  background: var(--cherry-tco-bg);
}
.setup-row {
  gap: 16px;
  margin-top: 16px;
}
.setup-card > #billing-control {
  margin-top: 16px;
}
.field {
  min-width: 0;
}
.field-control {
  min-width: 0;
}
.input-shell {
  background: var(--cherry-tco-surface);
}
.input-shell input {
  height: 32px;
  padding: 0;
  font-variant-numeric: tabular-nums;
}
.input-shell:focus-within {
  outline: 2px solid var(--cherry-tco-link);
  outline-offset: 2px;
}
.input-shell input:focus-visible {
  outline: none;
}
.unit {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 16px;
  color: var(--cherry-tco-muted);
}
.input-shell > .unit {
  flex: none;
  margin: 0;
  font-weight: 400;
  white-space: nowrap;
}
.stepper input {
  width: 100%;
}
.basis,
.hint {
  display: block;
  font-size: 12px;
  line-height: 16px;
  color: var(--cherry-tco-muted);
}
.basis {
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.basis a {
  font-weight: 400;
}
.basis-note {
  display: block;
  margin-top: 4px;
}
.source-details {
  margin-top: 4px;
}
.source-details > summary {
  min-height: 24px;
  padding-block: 4px;
  color: var(--cherry-tco-link);
  cursor: pointer;
}
.source-details > p {
  margin-top: 4px;
}
.notice {
  overflow-wrap: anywhere;
}
.spec-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--cherry-tco-divider);
}
.spec-row:last-child {
  border-bottom: 0;
}
.spec-footer {
  padding: 4px 0;
  border-top: 1px solid var(--cherry-tco-divider);
}
.configuration {
  margin-top: 24px;
}
.config-done {
  margin-top: 16px;
}
[aria-disabled='true'] {
  opacity: 0.45;
}
.sticky-total[aria-disabled='true'] {
  opacity: 1;
}
.sticky-total[aria-disabled='true'] .edit-values {
  color: var(--cherry-tco-muted);
}
.amount {
  white-space: nowrap;
}
.amount small {
  line-height: 24px;
}
.button {
  flex: 1 1 auto;
  min-height: 48px;
  padding: 12px 24px;
}
.share-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 8px;
}
.estimate-note {
  margin-top: 12px;
  color: var(--cherry-tco-muted);
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}
.content-card {
  padding: 24px;
  border: 1px solid var(--cherry-tco-divider);
  border-radius: 16px;
}
.section-intro {
  margin-top: 8px;
  color: var(--cherry-tco-muted);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.scroll {
  overflow-x: auto;
  margin-top: 16px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
th,
td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--cherry-tco-divider);
  text-align: right;
  vertical-align: top;
  font-weight: 400;
}
th:first-child {
  padding-left: 0;
  text-align: left;
}
td:last-child,
th:last-child {
  padding-right: 0;
}
thead th {
  padding-top: 0;
  color: var(--cherry-tco-muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}
.breakdown tbody th {
  font-weight: 600;
}
.breakdown td {
  white-space: nowrap;
}
.breakdown td:last-child {
  font-weight: 600;
}
.breakdown .zero-row td {
  padding: 12px 0 0;
  border-bottom: 0;
  color: var(--cherry-tco-muted);
  text-align: left;
  white-space: normal;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
}
.breakdown tfoot tr:first-child th,
.breakdown tfoot tr:first-child td {
  border-top: 2px solid var(--cherry-tco-divider);
  font-weight: 700;
}
.disclosure {
  border-bottom: 1px solid var(--cherry-tco-divider);
}
.disclosure:last-child {
  border-bottom: 0;
}
.disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 0;
  list-style: none;
  font-weight: 600;
  cursor: pointer;
}
.disclosure > summary::-webkit-details-marker {
  display: none;
}
.disclosure > summary::after {
  flex: none;
  margin-right: 4px;
}
.disclosure > :last-child:not(summary) {
  margin-bottom: 16px;
}
.network-details {
  margin-top: 16px;
  border: 0;
}
.network-details > summary {
  min-height: 40px;
  padding: 8px 0;
  color: var(--cherry-tco-link);
  font-size: 12px;
  line-height: 16px;
}
.redundancy {
  padding-left: 20px;
  color: var(--cherry-tco-muted);
  font-size: 12px;
  line-height: 20px;
}
.redundancy li + li {
  margin-top: 8px;
}
.chart-section {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--cherry-tco-divider);
}
.chart {
  display: block;
  width: 100%;
  height: 260px;
  margin-top: 16px;
}
.chart .gridline,
.chart .axis {
  stroke: var(--cherry-tco-divider);
  stroke-width: 1;
}
.chart .tick {
  fill: var(--cherry-tco-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.chart .line {
  fill: none;
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.chart .cherry,
.key.cherry {
  stroke: var(--cherry-tco-text);
}
.chart .onprem,
.key.onprem {
  stroke: var(--cherry-tco-seg-text);
  stroke-dasharray: 7 5;
}
.legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 16px;
}
.key {
  display: inline-block;
  width: 24px;
  height: 8px;
  fill: none;
  stroke-width: 2.5;
}
.key.onprem {
  margin-left: 16px;
}
.monthly-cash {
  margin-top: 8px;
}
.monthly-cash td {
  white-space: nowrap;
}
.assumptions #key-fields {
  margin-top: 16px;
}
.assumptions .field,
.inline-assumptions .field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  gap: 8px 24px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--cherry-tco-divider);
}
.assumptions .field:last-child {
  border-bottom: 0;
}
.assumptions .field-copy {
  align-self: center;
}
.assumptions .label,
.inline-assumptions .label {
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 20px;
  color: var(--cherry-tco-text);
  font-weight: 700;
  text-transform: none;
}
.assumptions .field-control {
  align-self: start;
}
.assumptions .field-control > .unit {
  text-align: right;
}
.assumptions .readonly-value {
  display: block;
  padding-block: 8px;
  font-weight: 600;
  text-align: right;
}
.all-assumptions {
  margin-top: 8px;
  border-top: 1px solid var(--cherry-tco-divider);
}
.assumption-group + .assumption-group {
  margin-top: 24px;
}
.assumption-group h3 {
  margin-bottom: 8px;
}
.license-prompt {
  padding-top: 16px;
  color: var(--cherry-tco-muted);
}
.inline-assumptions .field {
  border-bottom: 0;
  padding-bottom: 0;
}
.inline-assumptions .field-control > .unit {
  text-align: right;
}
.methodology .section-intro {
  margin-bottom: 8px;
}
.methodology .disclosure > p,
#estimate p {
  margin-bottom: 12px;
}
.reference {
  font-size: 12px;
  line-height: 20px;
}
.reference th,
.reference td {
  padding: 12px 12px 12px 0;
  text-align: left;
  overflow-wrap: normal;
  word-break: normal;
}
.reference th:last-child,
.reference td:last-child {
  padding-right: 0;
}
.reference tbody th {
  font-weight: 600;
}
.reference td.num,
.reference th.num {
  text-align: right;
}
.reference a {
  overflow-wrap: anywhere;
}
.reference td:last-child,
#parts-table td:nth-child(2),
#estimate tbody th {
  overflow-wrap: break-word;
}
.reference .note {
  display: block;
  margin-top: 4px;
}
#estimate > p {
  overflow-wrap: break-word;
}
.footer {
  padding-block: 24px 32px;
  color: var(--cherry-tco-muted);
  font-size: 12px;
  line-height: 20px;
}
.footer p + p {
  margin-top: 4px;
}
.sticky-total:where(:not([hidden])) {
  position: fixed;
  z-index: 10;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--cherry-tco-divider);
  background: var(--cherry-tco-surface);
  box-shadow: 0 -4px 16px rgba(16, 24, 40, 0.06);
}
@media (min-width: 640px) {
  .reference {
    table-layout: fixed;
  }
}
@media (min-width: 768px) {
  #spec-rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }
  .spec-row {
    display: block;
  }
  .spec-row:nth-child(n + 3) {
    border-bottom: 0;
  }
  .spec-value {
    display: block;
    margin-left: 36px;
    margin-top: 4px;
    text-align: left;
    text-wrap: pretty;
  }
  .spec-value small {
    text-wrap: pretty;
  }
}
@media (max-width: 1023px) {
  .footer {
    padding-bottom: max(
      var(--sticky-footer-clearance),
      calc(var(--sticky-clearance, var(--sticky-bar-clearance)) + var(--sticky-focus-gap))
    );
  }
}
@media (min-width: 1024px) {
  .calculator {
    grid-template-columns: minmax(0, 1fr) 384px;
  }
  #top-section {
    grid-column: 1;
    grid-row: 1;
  }
  #result-panel {
    position: sticky;
    top: 24px;
    grid-column: 2;
    grid-row: 1 / span 4;
  }
  #breakdown-section {
    grid-column: 1;
    grid-row: 2;
  }
  #assumptions {
    grid-column: 1;
    grid-row: 3;
  }
  #methodology {
    grid-column: 1;
    grid-row: 4;
  }
  .sticky-total {
    display: none;
  }
}
@media (max-width: 639px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .header-inner {
    min-height: 72px;
    gap: 16px;
  }
  .brand img {
    width: 160px;
  }
  .currency-control {
    width: 112px;
  }
  .intro {
    padding-block: 16px;
  }
  h1 {
    font-size: 24px;
    line-height: 32px;
  }
  .intro p {
    font-size: 13px;
    line-height: 20px;
  }
  .calculator {
    gap: 16px;
  }
  .setup-card,
  .result-panel,
  .content-card {
    padding: 20px 16px;
  }
  .setup-card {
    padding-block: 16px;
  }
  .setup-row {
    gap: 12px;
  }
  .spec-row {
    padding-block: 8px;
  }
  .spec-key {
    gap: 8px;
    font-size: 12px;
    line-height: 16px;
  }
  .spec-key svg {
    width: 20px;
    height: 20px;
  }
  .result-panel {
    padding: 16px;
  }
  .result {
    padding: 16px;
  }
  .button {
    padding-inline: 20px;
  }
  .assumptions .field,
  .inline-assumptions .field {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 8px 12px;
    padding-block: 12px;
  }
  .assumptions .field-choice {
    grid-template-columns: minmax(0, 1fr);
  }
  .assumptions .field-choice .field-control {
    max-width: 100%;
  }
  .assumptions .field-choice .field-control > .unit {
    text-align: left;
  }
  .assumptions .field .basis {
    margin-top: 8px;
  }
  .breakdown {
    font-size: 12px;
    line-height: 16px;
  }
  .breakdown th,
  .breakdown td {
    padding: 12px 4px;
  }
  .breakdown th:first-child {
    padding-left: 0;
  }
  .breakdown td:last-child,
  .breakdown th:last-child {
    padding-right: 0;
  }
  .breakdown td:last-child {
    min-width: 92px;
    white-space: normal;
  }
  .breakdown .zero-row td {
    min-width: 0;
  }
  .chart-section {
    margin-top: 16px;
    padding-top: 16px;
  }
  .reference,
  .reference tbody,
  .reference tr,
  .reference td,
  .reference th {
    display: block;
  }
  .reference colgroup {
    display: none;
  }
  .reference thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .reference tr {
    padding-block: 12px;
    border-bottom: 1px solid var(--cherry-tco-divider);
  }
  .reference th,
  .reference td,
  .reference td.num,
  .reference th.num {
    padding: 4px 0 0;
    border: 0;
    text-align: left;
    white-space: normal;
  }
  .reference th {
    padding-top: 0;
  }
  .reference td[data-label]::before {
    content: attr(data-label) ': ';
    color: var(--cherry-tco-muted);
    font-weight: 600;
  }
  .sticky-total {
    padding-inline: 16px;
  }
}
@media (forced-colors: active) {
  .chart .line,
  .legend .key {
    stroke: CanvasText;
  }
  .chart .gridline,
  .chart .axis {
    stroke: GrayText;
  }
  .chart .tick {
    fill: CanvasText;
  }
}
@media print {
  .site-header,
  #top-section,
  .actions,
  .share-actions,
  .assumptions,
  .sticky-total {
    display: none !important;
  }
  .calculator:where(:not([hidden])) {
    display: block;
  }
  .result-panel {
    position: static;
  }
  .content-card {
    margin-top: 24px;
  }
}
