/* The calculator. The website's own classes and colors carry the look (Website/src/styles.css: Ice canvas, grey tiles, black panels, one
   blue, hairlines, pill buttons, the //01 section heads). This adds only what the calculator needs, including its own number box and slider. Everything uses the site's variables, so a change to the site's colors changes this too. */

.calc { padding-bottom: 48px; }
.calc .field { margin: 0 0 24px; }
.calc .field:last-child { margin-bottom: 0; }
.calc input, .calc select { background: var(--white); }
.calc input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 4px 0 0; padding: 0; border: 0; accent-color: var(--blue); }
.calc .intro { max-width: 76ch; margin-bottom: 8px; }
.calc .muted { color: var(--muted); }
.calc h3 { margin-bottom: 8px; }
.calc .note { max-width: 76ch; margin-top: 16px; }

/* ------------------------------------------------------------ one block: the selections on the light blue, the price on Ink under them */
/* The selections (the three controls and the add-ons) are a band on the light blue of the site's grey tile, with white boxes, dark text and the site's own
   blue, the way the site's questions are; the price is under it, on Ink. They are one block with no gap between (Paul, November 16, 2026: the rows above the
   price should have the light blue background). The block is divided into the same three columns all the way down: the three controls, the add-ons, the two
   big numbers, the fees, what is paid at sign-up and the three years all start their columns in the same places, so each control is the heading of the column
   of figures under it. A column after the first is set in 16 pixels, and has a hairline at its edge where it holds figures. */
.calc-block { --calc-pad: 32px; padding: 0; }
.calc-toolbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: var(--calc-pad); background: var(--tile); color: var(--ink); }
.calc-tb { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 0 16px; border-left: 1px solid var(--line); }
.calc-tb:first-child { padding-left: 0; border-left: 0; }
.calc-tb:last-of-type { padding-right: 0; }
.calc-tb .field { margin: 0; }
/* the license question runs to two lines in a third of the block: the other two headings are given the same room, so the three controls sit level */
@media (min-width: 1041px) { .calc-tb > .field > label, .calc-tb > .field > legend { min-height: 56px; } }
/* from 1041 to 1180 pixels a third of the block is only just wide enough for the longest license name in its box: the box is set a little smaller */
@media (min-width: 1041px) and (max-width: 1180px) { .calc-toolbar select { padding-inline: 12px; font-size: 16px; } }
.calc-toolbar .hint { color: var(--muted); }
/* a footnote's number (Paul, November 19, 2026: a person is a licensed Microsoft 365 account): small and raised, so it never changes the height of a line */
.calc-fn { font-size: .7em; line-height: 0; vertical-align: super; }
/* the site's focus ring on an Ink tile is white, which cannot be seen on the light blue: here it is the site's blue */
.calc-toolbar :focus-visible { outline-color: var(--blue); outline-offset: 2px; }
/* the boxes on the light blue are white; the one under the price, on Ink, is the grey tile */
.calc-hero input, .calc-hero select { background: var(--tile); }
/* the plus of a question that opens is the site's own (from the FAQ), in the site's blue, and a minus when it is open */
.calc-toolbar details[open] > summary .plus::after { display: none; }

/* the number of people: a number box and a slider, in the site's blue; the calculator's script sets --p, how far along the track the thumb is, so the track
   fills up to it */
.calc-users-row { display: flex; align-items: center; gap: 24px; }
.calc-num {
  flex: none; width: 112px; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  background: var(--white); color: var(--ink); font: 400 20px/28px var(--mono); -moz-appearance: textfield; appearance: textfield;
}
.calc-num::-webkit-outer-spin-button, .calc-num::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.calc-range-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.calc .calc-range { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; accent-color: var(--blue); }
.calc-range::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(to right, var(--blue) var(--p, 50%), var(--faint) var(--p, 50%)); }
.calc-range::-moz-range-track { height: 4px; background: var(--faint); }
.calc-range::-moz-range-progress { height: 4px; background: var(--blue); }
.calc-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin-top: -10px; border: 0; border-radius: 0; background: var(--blue); }
.calc-range::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 0; background: var(--blue); }
.calc-range:hover::-webkit-slider-thumb { background: var(--ink); }
.calc-range:hover::-moz-range-thumb { background: var(--ink); }
.calc-range:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.calc-range-ends { display: flex; justify-content: space-between; color: var(--muted); font-family: var(--mono); }
.calc-addons { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.calc-addon { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.calc-addon__t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.calc-addon__p { font: 400 14px/20px var(--mono); }
/* what comes with the core service at no extra cost has a check mark where the others have a box: there is nothing to tick, so it is not a control and the row does not
   look like one (no pointer). The mark is drawn, 20 pixels square like the box it stands in for, and in the same blue. */
.calc-addon--in { cursor: default; }
.calc-tick { position: relative; display: block; width: 20px; height: 20px; margin-top: 4px; }
.calc-tick::after { content: ''; position: absolute; left: 6.5px; top: 1px; width: 7px; height: 13px; border: solid var(--blue); border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* "Are you a registered non-profit?": the third column of the toolbar, a question over a box like the other two, with the discount as the box's own words */
.calc-np legend { margin-bottom: 8px; }
.calc-check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; cursor: pointer; }
.calc-np .calc-check { font-weight: 400; }   /* the heading over the box is the bold one (the site's `.field label` is bold, so this is as specific as it) */
.calc-menu > summary:hover .calc-menu__t { text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 6px; }

/* the add-ons are an accordion across all three columns, in the look of the page's questions (a hairline above, a bold title, a plus that becomes a minus;
   no line below, because the Ink under the band is the boundary: Paul, November 16, 2026). Opened it pushes the rest of the calculator down, closed the rest moves up. Inside it are the three columns, laid on the toolbar's own thirds:
   Included at no extra cost, Often chosen and Other common add-ons (a kind with nothing in it is not drawn, and the ones there are keep their places from the left). */
.calc-menu { grid-column: 1 / -1; margin-top: 24px; border-top: 1px solid var(--line); }
.calc-menu > summary { display: flex; align-items: center; gap: 16px; padding-block: 20px; cursor: pointer; list-style: none; }
.calc-menu > summary::-webkit-details-marker { display: none; }
.calc-menu__t { flex: 1; min-width: 0; font-weight: 600; }
.calc-menu__v { flex: none; color: var(--muted); }
.calc-menu__panel { padding: 4px 0 0; }
/* from 1041 pixels the heading, the note and the list of every column start at the same heights, whatever the length of a note */
.calc-mega { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.calc-mega__col { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 0 16px; border-left: 1px solid var(--line); }
@media (min-width: 1041px) {
  .calc-mega { grid-template-rows: auto auto 1fr; row-gap: 4px; }
  .calc-mega__col { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
}
.calc-mega__col:first-child { padding-left: 0; border-left: 0; }
.calc-mega__col:last-child { padding-right: 0; }
.calc-mega__col .calc-addons { margin-top: 12px; }
/* the note under the columns (Paul, November 16, 2026): left-aligned, and wrapped where the second of the three columns ends, so that it is as wide as two of them
   (the right edge of the text of the second column). No line above it, and no total in it: the total is in the Ink section under the accordion. */
.calc-mega__foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; }
.calc-mega__foot .hint { grid-column: 1 / span 2; padding-right: 16px; }

/* ------------------------------------------------------------ the price, under the toolbar */
.calc-hero { display: flex; flex-direction: column; gap: 24px; padding: var(--calc-pad); }
.calc-hero .tag { background: var(--white); color: var(--ink); }
.calc-hero__nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.calc-hero__nums > :nth-child(2) { padding-left: 16px; border-left: 1px solid transparent; }   /* the same offset as a column with a hairline */
.calc-big__n { font: 400 clamp(48px, 6.4vw, 96px) / .95 var(--font); letter-spacing: -.04em; }
.calc-big__l { margin-top: 8px; color: rgba(255, 255, 255, .82); }
.calc-note { color: rgba(255, 255, 255, .72); }
.calc-hero__talk { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 64ch; }
/* Under the smallest size we price (Paul, November 19, 2026) "Let's talk" has the price panel under it, greyed out but readable: it is the panel itself, drawn by the same code, and only its weight
   changes. At this opacity even the smallest text on it keeps a contrast of about 5 to 1 on Ink; the faint hatch is the one the table uses for a size we do not price. */
.calc-ghost { display: flex; flex-direction: column; gap: 16px; }
.calc-ghost__cap { color: rgba(255, 255, 255, .78); }
.calc-ghost__body { position: relative; display: flex; flex-direction: column; gap: 24px; opacity: .7; }
.calc-ghost__body::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(255, 255, 255, .05) 6px 7px); }
.calc-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 8px; }
.calc-break { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-on-ink); }
.calc-break li { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 0; border-left: 1px solid var(--line-on-ink); }
.calc-break li:first-child { padding-left: 0; border-left: 0; }
/* a share taken off all of it (a registered non-profit) is a row of its own under the three columns */
.calc-break .calc-break__disc { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; margin-top: 16px; padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line-on-ink); }
.calc-break__l { font: 400 14px/20px var(--mono); color: var(--blue-on-ink); }
.calc-break__v { font: 400 clamp(26px, 2.6vw, 36px) / 1.1 var(--font); letter-spacing: -.02em; }
.calc-break__s { display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 19px; color: rgba(255, 255, 255, .75); }
.calc-signup { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line-on-ink); }
.calc-signup__t { font: 400 clamp(20px, 2vw, 26px) / 1.25 var(--font); letter-spacing: -.01em; max-width: 60ch; }
.calc-signup .calc-years { padding-top: 0; border-top: 0; }
.calc-years { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 24px; border-top: 1px solid var(--line-on-ink); }
.calc-years > div { display: flex; flex-direction: column; gap: 6px; padding-right: 16px; }
.calc-years > div:nth-child(n+2) { padding-left: 16px; border-left: 1px solid transparent; }
.calc-years .calc-break__l { font: 400 14px/20px var(--mono); color: var(--blue-on-ink); }
.calc-years b { display: block; font: 400 clamp(24px, 2.4vw, 32px) / 1.1 var(--font); letter-spacing: -.02em; }
.calc-years__s { font-size: 13px; line-height: 19px; color: rgba(255, 255, 255, .75); }
.calc-rise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; align-items: start; padding-top: 24px; border-top: 1px solid var(--line-on-ink); }
.calc-rise .field { margin: 0; max-width: 200px; }
.calc-rise label { color: var(--white); }
.calc-rise select { color: var(--ink); }
.calc-rise p { grid-column: 2 / -1; padding-left: 17px; color: rgba(255, 255, 255, .8); max-width: 80ch; }
.calc-rise__tot b { color: var(--white); }
/* the price rise is a box (Paul, November 19, 2026): typed to two decimals, or moved with the arrows in steps of the data's size between the smallest and the largest it allows. The number boxes
   of the page hide their spin buttons (the people box has a slider); this one shows them, because the arrows are how it is moved. */
.calc-rise__box { display: flex; align-items: center; gap: 8px; }
.calc-rise__unit { font: 400 20px/28px var(--mono); }
.calc-rise__input {
  flex: none; width: 128px; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  background: var(--white); color: var(--ink); font: 400 20px/28px var(--mono);
}
.calc-rise__input::-webkit-inner-spin-button { opacity: 1; margin-left: 4px; }   /* shown always, not only on hover, so that the arrows can be found */
.calc-rise__hint { display: block; margin-top: 6px; color: rgba(255, 255, 255, .8); }

/* ------------------------------------------------------------ the table and the two charts share one grid */
.calc-strip { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px 24px; margin: 24px 0 8px; padding: 20px 0 4px; border-top: 1px solid var(--line); align-items: end; }
.calc-strip .field { margin: 0; }
.calc-strip__row { display: flex; align-items: center; gap: 16px; }
.calc-scroll { overflow-x: auto; margin-top: 16px; }
.calc-dash { min-width: 940px; }
.calc-row { display: grid; border-top: 1px solid var(--line); }
.calc-cell { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 16px 14px 20px; border-left: 1px solid var(--line); }
.calc-cell--label { padding-left: 0; border-left: 0; }
.calc-cell--label b { font-weight: 600; }
.calc-cell.is-on { background: rgba(2, 48, 217, .08); box-shadow: inset 0 3px 0 var(--blue); }
.calc-cell--small, .calc-cell--talk { background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(1, 2, 15, .07) 6px 7px); }
.calc-cell--small.is-on, .calc-cell--talk.is-on { background-color: rgba(2, 48, 217, .08); }
.calc-z { font: 400 clamp(18px, 1.9vw, 26px) / 1.15 var(--font); letter-spacing: -.01em; }
.calc-n { font: 400 clamp(28px, 3vw, 44px) / 1 var(--font); letter-spacing: -.03em; }
.calc-pay { display: flex; flex-direction: column; }
.calc-pay li { padding: 6px 0; border-top: 1px solid var(--line); }
.calc-pay li:first-child { border-top: 0; padding-top: 0; }
.calc-mix { display: flex; height: 34px; border: 1px solid var(--ink); background: var(--white); }
.calc-mix > span { display: block; height: 100%; overflow: hidden; white-space: nowrap; font: 400 13px/32px var(--mono); padding: 0 8px; }
.calc-mix__tenant { background: var(--blue); color: var(--white); }
.calc-mix__tools { background: var(--ink); color: var(--white); }
.calc-mix__none { background: repeating-linear-gradient(135deg, var(--ink) 0 1px, transparent 1px 5px); }
.calc-svc { border-top: 1px solid var(--line); }
.calc-svc > summary { cursor: pointer; padding-block: 10px; font-weight: 600; list-style: none; }
.calc-svc > summary::-webkit-details-marker { display: none; }
.calc-svc > summary::before { content: "+"; display: inline-block; width: 18px; font-family: var(--mono); color: var(--blue); }
.calc-svc[open] > summary::before { content: "\2013"; }
.calc-svc .plain-list { margin-bottom: 8px; }
.calc-svc .plain-list li { padding: 8px 0; font-size: 15px; line-height: 22px; }
.calc-src p + p { margin-top: 8px; }
.calc-src { padding-bottom: 8px; max-width: 90ch; }

.calc-chartrow { position: relative; border-top: 1px solid var(--line); }
.calc-chartlabel { position: absolute; left: 0; top: 24px; width: calc(14.1667% - 14px); display: flex; flex-direction: column; gap: 6px; }
.calc-chart { display: block; width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.calc-chart .calc-axis { fill: var(--muted); font-family: var(--font); paint-order: stroke; stroke: var(--ice); stroke-width: 4px; stroke-linejoin: round; }
.calc-chart text.calc-lab { fill: var(--ink); font-family: var(--font); paint-order: stroke; stroke: var(--ice); stroke-width: 4px; stroke-linejoin: round; }
.calc-marker { cursor: ew-resize; outline: none; }
.calc-marker:focus-visible circle { stroke: var(--ink); }
.calc-caption { margin: 0 0 8px; padding-left: calc(14.1667% + 4px); color: var(--muted); max-width: none; }
.calc-legend { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.calc-legend li { display: inline-flex; align-items: center; gap: 8px; }
.calc-corenote { margin: 12px 0 0; }   /* what the comparison is for (core service only), under the legend */
.calc-sw { flex: none; width: 36px; height: 8px; }
.calc-prose { margin-top: 24px; max-width: 76ch; }

/* ------------------------------------------------------------ the comparison tables and the rest */
.calc-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--col-gap); align-items: start; }
.calc-scroll > .calc-table, .calc-table { width: 100%; border-collapse: collapse; }
.calc-table th, .calc-table td { padding: 12px 8px 12px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15px; line-height: 22px; }
/* the two tables sit side by side: the header row has one fixed height, and a long header wraps inside its column, so the rows line up */
.calc-table th { border-top: 0; height: 60px; vertical-align: bottom; font: 400 12px/18px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.calc-table .num { padding-right: 0; padding-left: 12px; text-align: right; white-space: nowrap; }
.calc-table th.num { white-space: normal; }
.calc-table tr.is-ours td { background: var(--blue-tint); }
.calc-facts li { display: flex; justify-content: space-between; gap: 16px; }

@media (max-width: 1100px) {
  .calc-block { --calc-pad: 24px; }
  .calc-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-tables { grid-template-columns: minmax(0, 1fr); }
}
/* Under 1041 pixels a third of the block is too narrow for a control: the three controls are one above the next with hairlines between, and the add-ons open
   in the page under their row, one column under the next. */
@media (max-width: 1040px) {
  .calc-toolbar { grid-template-columns: minmax(0, 1fr); }
  .calc-tb, .calc-tb:first-child, .calc-tb:last-of-type { padding: 16px 0; border-left: 0; border-top: 1px solid var(--line); }
  .calc-tb:first-child { padding-top: 0; border-top: 0; }
  .calc-menu { margin-top: 0; }
  .calc-mega { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .calc-mega__foot { grid-template-columns: minmax(0, 1fr); }
  .calc-mega__foot .hint { grid-column: 1; padding-right: 0; }
  .calc-mega__col, .calc-mega__col:first-child, .calc-mega__col:last-child { padding: 0; border-left: 0; }
}
/* Under 900 pixels a third is too narrow for a column of figures too: the big numbers and the fees are two across. */
@media (max-width: 900px) {
  .calc-hero__nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-break { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-break li:nth-child(3):not(.calc-break__disc) { padding-left: 0; border-left: 0; }
}
@media (max-width: 800px) {
  .calc-years { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .calc-years > div, .calc-years > div:nth-child(n+2) { padding: 0; border-left: 0; }
}
/* on a phone the block is set closer to its edges, so that the longest license name fits its box with room for the arrow */
@media (max-width: 480px) {
  .calc-block { --calc-pad: 16px; }
  .calc-toolbar select { padding-inline: 12px; font-size: 16px; }
}
@media (max-width: 640px) {
  .calc-users-row { gap: 16px; }
  .calc-num { width: 96px; }
  .calc-hero__nums { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .calc-hero__nums > :nth-child(2) { padding-left: 0; border-left: 0; }
  .calc-rise { grid-template-columns: minmax(0, 1fr); }
  .calc-rise p { grid-column: 1; padding-left: 0; }
  .calc-more__grid { grid-template-columns: minmax(0, 1fr); }
  .calc-strip { grid-template-columns: minmax(0, 1fr); }
}
.calc-tables__note { margin-top: 12px; }
