/* Content plans (site/snippets/blocks/contentcalc.php,
   public/assets/js/contentcalc.js; bulk fixes 2026-11-29, added brief 1.3
   to 1.6): the pace cards, the Content Sprint chart, the two atomization
   sets, and the calculator on one screen (controls on the left, the plan
   on the right, staying in view; a bar fixed to the foot of the screen on
   phones). Linked by the block itself (peanut_page_css). Every selector
   names a contentcalc class. Tokens only.

   No layout shift: every number sits in a box sized for its longest value,
   the picture's cells and the chart are sized for their fullest state, the
   VIP line keeps its room, the phone bar is fixed and its room is kept at
   the foot of the calculator. Without scripting and in print the controls
   that need the script are hidden and each part shows its first state.

   A1 (bulk fixes): from 64rem every head is centered over its content and
   the content sits in the middle of the container; a long intro stays
   left-aligned inside the centered column. Below 64rem nothing moves. */

@layer blocks {
  .contentcalc__head {
    max-width: 44rem;
    margin-block-end: var(--space-5);
  }

  .contentcalc__title {
    margin: 0;
  }

  .contentcalc__intro {
    margin: var(--space-3) 0 0;
  }

  @media (min-width: 64rem) {
    .contentcalc__head {
      max-width: 48rem;
      margin-inline: auto;
      text-align: center;
    }

    .contentcalc__head > * {
      margin-inline: auto;
    }

    .contentcalc__head > h2 {
      text-wrap: balance;
    }

    .contentcalc__head > .block-head__long {
      text-align: start;
    }
  }

  .contentcalc__hint {
    margin: 0 0 var(--space-2);
  }

  .contentcalc :is(button, input, a):focus-visible,
  .contentcalc__radiochip:has(input:focus-visible),
  .contentcalc__level:has(input:focus-visible),
  .contentcalc__check:has(input:focus-visible) {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
  }

  .contentcalc__closing {
    max-width: var(--measure);
    margin: var(--space-5) 0 0;
  }

  .contentcalc__closing > :last-child {
    margin-block-end: 0;
  }

  @media (min-width: 64rem) {
    .contentcalc__closing {
      margin-inline: auto;
    }
  }

  .contentcalc__estimate {
    margin: var(--space-2) 0 0;
    font-size: 0.8125rem;
    font-weight: 600;
  }

  .contentcalc__vip {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.45;
  }

  .contentcalc__vip:not(.is-on) {
    visibility: hidden;
  }

  .contentcalc__note {
    margin: var(--space-1) 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  .contentcalc__swatch {
    box-sizing: border-box;
    flex: none;
    width: 0.875rem;
    height: 0.875rem;
    border: 1px solid var(--color-ink);
    border-radius: 2px;
    background: var(--color-white);
  }

  .contentcalc__swatch--sprint {
    background: var(--color-accent-2);
  }

  .contentcalc__swatch--blog {
    background: var(--color-ink);
  }

  .contentcalc__key {
    display: grid;
    gap: 0.375rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.8125rem;
    line-height: 1.4;
  }

  .contentcalc__key li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  /* ================================================== the pace cards */
  .contentcalc__pacebox {
    max-width: var(--container);
  }

  .contentcalc__paces {
    display: grid;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  @media (min-width: 40rem) {
    .contentcalc__paces {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  @media (min-width: 64rem) {
    .contentcalc__pacebox {
      margin-inline: auto;
    }

    .contentcalc__paces {
      grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .contentcalc--paces .contentcalc__hint,
    .contentcalc__picked {
      text-align: center;
    }
  }

  .contentcalc__pacecell {
    display: flex;
    min-width: 0;
  }

  /* phones: a row, the plant on the left; from 40rem a column, centered */
  .contentcalc__pace {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    grid-template-areas:
      "plant name"
      "plant count"
      "plant bar"
      "plant month"
      "plant price"
      "plant state";
    align-content: start;
    column-gap: var(--space-2);
    row-gap: 0.375rem;
    width: 100%;
    padding: var(--space-2);
    background: var(--color-white);
    border: var(--border);
    border-radius: var(--radius-sm);
    color: var(--color-ink);
    font: inherit;
    text-align: start;
    cursor: pointer;
  }

  .contentcalc__pace[aria-pressed="true"] {
    background: var(--color-brand);
    box-shadow: var(--shadow-hard);
  }

  @media (min-width: 40rem) {
    .contentcalc__pace {
      grid-template-columns: minmax(0, 1fr);
      grid-template-areas: "plant" "name" "count" "bar" "month" "price" "state";
      grid-template-rows: auto auto auto auto 1fr auto auto;
      justify-items: center;
      text-align: center;
    }
  }

  .contentcalc__plant {
    grid-area: plant;
    display: block;
    width: 100%;
    max-width: 7.75rem;
    align-self: center;
  }

  .contentcalc__plantsvg {
    height: 5.5rem;
  }

  @media (min-width: 40rem) {
    .contentcalc__plantsvg {
      height: 7.5rem;
    }
  }

  .contentcalc__pacename {
    grid-area: name;
    font-family: var(--font-heading);
    font-weight: var(--weight-heading-sm);
    font-size: var(--step-2);
    line-height: 1.2;
  }

  .contentcalc__pacecount {
    grid-area: count;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
  }

  .contentcalc__pacecount b {
    font-family: var(--font-heading);
    font-weight: var(--weight-heading-sm);
    font-size: var(--step-3);
    font-variant-numeric: tabular-nums;
  }

  .contentcalc__pacebar {
    grid-area: bar;
    display: block;
    width: 100%;
    height: 0.625rem;
    background: var(--color-paper);
    border: 1px solid var(--color-ink);
    border-radius: var(--radius-pill);
    overflow: hidden;
  }

  .contentcalc__pacefill {
    display: block;
    width: var(--w, 0%);
    height: 100%;
    background: var(--color-ink);
  }

  .contentcalc__pacemonth {
    grid-area: month;
    font-size: 0.875rem;
    line-height: 1.45;
  }

  .contentcalc__paceprice {
    grid-area: price;
    display: grid;
    gap: 0.125rem;
    font-size: 0.8125rem;
    line-height: 1.35;
  }

  .contentcalc__pacemoney {
    font-weight: 600;
  }

  .contentcalc__pacestate {
    grid-area: state;
    display: inline-block;
    margin-block-start: 0.25rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--color-ink);
    border-radius: var(--radius-pill);
    background: var(--color-white);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
    justify-self: start;
  }

  @media (min-width: 40rem) {
    .contentcalc__pacestate {
      justify-self: center;
    }
  }

  .contentcalc__pace[aria-pressed="true"] .contentcalc__pacestate {
    background: var(--color-ink);
    color: var(--color-white);
  }

  .contentcalc__pace[aria-pressed="true"] .contentcalc__pacestate-off,
  .contentcalc__pace[aria-pressed="false"] .contentcalc__pacestate-on {
    display: none;
  }

  .contentcalc__picked {
    min-height: 1.5em;
    margin: var(--space-3) 0 0;
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .contentcalc__pickedsay {
    font-weight: 600;
  }

  .contentcalc__tocalc {
    display: inline-block;
    padding-block: 0.375rem;
    color: inherit;
    font-weight: 600;
    text-underline-offset: 0.2em;
  }

  /* ================================================== the Content Sprint chart */
  .contentcalc__sprintgrid {
    display: grid;
    gap: var(--space-3);
    max-width: var(--container);
  }

  @media (min-width: 64rem) {
    .contentcalc__sprintgrid {
      grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
      align-items: start;
      margin-inline: auto;
    }
  }

  .contentcalc__chartbox {
    position: relative;
    min-width: 0;
    padding: var(--space-3) var(--space-2);
    background: var(--color-white);
    border: var(--border);
    border-radius: var(--radius-sm);
    color: var(--color-ink);
  }

  @media (min-width: 40rem) {
    .contentcalc__chartbox {
      padding: var(--space-3);
    }
  }

  /* the Sprint prices in one sentence (review fixes 2026-11-29, 9.1): the size chips show them, so
     the sentence is for screen readers and search engines, and shows without scripting and in print */
  .contentcalc__sprintprices {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  @media (scripting: none), print {
    .contentcalc__sprintprices {
      position: static;
      width: auto;
      height: auto;
      margin: var(--space-1) 0 0;
      overflow: visible;
      clip-path: none;
      white-space: normal;
      font-size: 0.8125rem;
      font-weight: 600;
      line-height: 1.45;
    }
  }

  .contentcalc__sizes,
  .contentcalc__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .contentcalc__sizes {
    margin-block-end: var(--space-3);
  }

  .contentcalc__size {
    display: grid;
    justify-items: center;
    align-content: center;
    min-width: 4.5rem;
    min-height: 3.25rem;
    padding: 0.375rem 0.75rem;
    background: var(--color-white);
    border: var(--border);
    border-radius: var(--radius-sm);
    color: var(--color-ink);
    font: inherit;
    cursor: pointer;
  }

  .contentcalc__size[aria-pressed="true"] {
    background: var(--color-brand);
    box-shadow: 3px 3px 0 var(--color-ink);
  }

  .contentcalc__sizename {
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.3;
  }

  .contentcalc__sizesub {
    font-size: 0.6875rem;
    line-height: 1.3;
    white-space: nowrap;
  }

  /* 24 weeks; 8 blog posts a week is the fullest week (VIP 50 at 4 a week, Forest on top) */
  .contentcalc__chart {
    --u: 1rem;
    height: calc(8 * var(--u) + 1px);
    border-block-end: 1px solid var(--color-ink);
  }

  @media (min-width: 40rem) {
    .contentcalc__chart {
      --u: 1.25rem;
    }
  }

  .contentcalc__wks {
    display: grid;
    grid-template-columns: repeat(24, minmax(0, 1fr));
    column-gap: 2px;
    height: 100%;
  }

  .contentcalc__wk {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
    background: linear-gradient(var(--color-ink-line-faint), var(--color-ink-line-faint)) left / 1px 100% no-repeat;
    background-size: 0 100%;
  }

  .contentcalc__wk.is-monthstart {
    background-size: 1px 100%;
  }

  .contentcalc__wkn,
  .contentcalc__wkspr {
    display: block;
    flex: none;
    height: calc(var(--v, 0) * var(--u));
  }

  .contentcalc__wkn {
    margin-inline: 15%;
    background: var(--color-ink);
    border-radius: 2px 2px 0 0;
  }

  /* the Sprint reads as one block: its weeks touch */
  .contentcalc__wkspr {
    margin-inline: -1px;
    background: var(--color-accent-2);
    border-block-start: 1px solid var(--color-ink);
  }

  .contentcalc__months {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2px;
    margin: 0.375rem 0 var(--space-2);
    padding: 0;
    list-style: none;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
  }

  .contentcalc__months li {
    display: grid;
  }

  .contentcalc__months b {
    font-family: var(--font-heading);
    font-weight: var(--weight-heading-sm);
    font-size: var(--step-1);
    font-variant-numeric: tabular-nums;
  }

  .contentcalc__key--chart {
    margin-block-end: var(--space-1);
  }

  /* each key line keeps room for its longest wording */
  .contentcalc__key--chart li {
    min-height: 2.6em;
  }

  .contentcalc__chartnote {
    margin: 0 0 var(--space-1);
    font-size: 0.75rem;
    line-height: 1.45;
  }

  .contentcalc__notes {
    display: grid;
    gap: var(--space-1);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  @media (min-width: 40rem) and (max-width: 63.99rem) {
    .contentcalc__notes {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  .contentcalc__notecard {
    padding: var(--space-2);
    background: var(--color-white);
    border: var(--border);
    border-radius: var(--radius-sm);
  }

  .contentcalc__notetitle {
    margin: 0;
    font-size: var(--step-1);
    line-height: 1.3;
  }

  .contentcalc__notetext {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .contentcalc__notetext a {
    color: inherit;
  }

  /* ================================================== the two sets, and who posts */
  .contentcalc__sets,
  .contentcalc__whos {
    display: grid;
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  @media (min-width: 48rem) {
    .contentcalc__sets,
    .contentcalc__whos {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (min-width: 64rem) {
    .contentcalc__sets,
    .contentcalc__who,
    .contentcalc__ownline {
      max-width: 60rem;
      margin-inline: auto;
    }

    .contentcalc__whotitle,
    .contentcalc__ownline {
      text-align: center;
    }
  }

  .contentcalc__setcard {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-3);
    background: var(--color-white);
    border: var(--border);
    border-radius: var(--radius-sm);
  }

  .contentcalc__setcard--full {
    box-shadow: var(--shadow-hard);
  }

  .contentcalc__setcount {
    align-self: flex-start;
    margin: 0;
    padding: 0.25rem 0.75rem;
    background: var(--color-brand);
    border: 1px solid var(--color-ink);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
  }

  .contentcalc__setcount b {
    font-size: 0.9375rem;
  }

  .contentcalc__settitle {
    margin: 0;
  }

  .contentcalc__settext {
    margin: 0;
  }

  .contentcalc__setlist {
    display: grid;
    gap: 0.375rem;
    margin: var(--space-1) 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.9375rem;
    line-height: 1.45;
  }

  .contentcalc__setlist li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
  }

  .contentcalc__setnum {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--color-paper);
    border: 1px solid var(--color-ink);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }

  .contentcalc__setprice {
    margin: auto 0 0;
    padding-block-start: var(--space-2);
    border-block-start: 1px solid var(--color-ink-line-faint);
    font-family: var(--font-heading);
    font-weight: var(--weight-heading-sm);
    font-size: var(--step-3);
    line-height: 1.2;
  }

  .contentcalc__setprice span {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
  }

  .contentcalc__who {
    margin-block-start: var(--space-5);
  }

  .contentcalc__whotitle {
    margin: 0 0 var(--space-3);
    font-size: var(--step-2);
  }

  .contentcalc__whocard {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: var(--space-2) var(--space-3);
    background: var(--color-white);
    border: 1px dashed var(--color-ink);
    border-radius: var(--radius-sm);
  }

  .contentcalc__whoname {
    margin: 0;
    font-weight: 600;
  }

  .contentcalc__whotext,
  .contentcalc__whoprice {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  .contentcalc__whoprice {
    margin-block-start: auto;
    padding-block-start: 0.375rem;
    font-weight: 600;
  }

  .contentcalc__ownline {
    margin: var(--space-3) 0 0;
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .contentcalc__ownline a {
    color: inherit;
    font-weight: 600;
  }

  /* ================================================== the calculator */
  .contentcalc__frame {
    max-width: var(--container);
    color: var(--color-ink);
  }

  .contentcalc__layout {
    display: grid;
    gap: var(--space-3);
  }

  @media (min-width: 64rem) {
    .contentcalc__frame {
      margin-inline: auto;
    }

    .contentcalc__layout {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
      gap: var(--space-4);
      align-items: start;
    }

    /* the plan stays in view while the controls scroll */
    .contentcalc__summary {
      position: sticky;
      top: calc(var(--header-height) + var(--space-2));
    }
  }

  .contentcalc__controls {
    display: grid;
    gap: var(--space-2);
    min-width: 0;
  }

  .contentcalc__controls > .contentcalc__hint {
    margin: 0;
  }

  .contentcalc__group {
    display: grid;
    gap: var(--space-1);
    min-width: 0;
    margin: 0;
    padding: var(--space-2);
    background: var(--color-paper);
    border: var(--border);
    border-radius: var(--radius-sm);
  }

  @media (min-width: 40rem) {
    .contentcalc__group {
      padding: var(--space-3);
    }
  }

  /* a fieldset's legend sits inside its box like the first group's heading */
  fieldset.contentcalc__group > legend {
    float: left;
    width: 100%;
    padding: 0;
  }

  fieldset.contentcalc__group > legend + * {
    clear: both;
  }

  .contentcalc__gtitle {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin: 0 0 var(--space-1);
    font-family: var(--font-heading);
    font-weight: var(--weight-heading);
    font-size: var(--step-2);
    line-height: 1.25;
  }

  .contentcalc__gnum {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--color-white);
    border: 1px solid var(--color-ink);
    border-radius: 50%;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
  }

  .contentcalc__or {
    margin: var(--space-1) 0 0;
    font-size: 0.8125rem;
    font-weight: 600;
  }

  /* steppers: buttons large enough for a thumb */
  .contentcalc__stepper {
    display: grid;
    gap: var(--space-1);
  }

  .contentcalc__steplabel {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
  }

  .contentcalc__steprow {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr) 3.5rem;
    align-items: center;
    gap: var(--space-1);
    max-width: 22rem;
  }

  .contentcalc__stepbtn {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    border: var(--border);
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-ink);
    cursor: pointer;
  }

  .contentcalc__stepbtn[aria-disabled="true"] {
    border-style: dashed;
    cursor: default;
  }

  .contentcalc__stepbtn[aria-disabled="true"] svg {
    opacity: 0.35;
  }

  .contentcalc__stepvalue {
    display: grid;
    justify-items: center;
    align-content: center;
    min-height: 4.5rem;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    background: var(--color-white);
    border: 1px solid var(--color-ink-line-faint);
    text-align: center;
  }

  .contentcalc__stepnum {
    font-family: var(--font-heading);
    font-weight: var(--weight-display);
    font-size: var(--step-5);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
  }

  .contentcalc__stepsub {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
  }

  /* chips: pace buttons, Sprint radios, who posts */
  .contentcalc__chipbtn,
  .contentcalc__radiochip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-height: 2.75rem;
    padding: 0.375rem 0.875rem;
    background: var(--color-white);
    border: var(--border);
    border-radius: var(--radius-pill);
    color: var(--color-ink);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
  }

  .contentcalc__chipbtn span {
    font-weight: 400;
    font-variant-numeric: tabular-nums;
  }

  .contentcalc__chipbtn[aria-pressed="true"],
  .contentcalc__radiochip:has(input:checked) {
    background: var(--color-brand);
  }

  .contentcalc__radiochip input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
  }

  .contentcalc__radiochip:has(input:disabled) {
    border-style: dashed;
    cursor: default;
  }

  .contentcalc__radiochip:has(input:disabled) > span {
    opacity: 0.55;
  }

  /* the sets, as radio cards */
  .contentcalc__levels {
    display: grid;
    gap: var(--space-1);
  }

  .contentcalc__level {
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr);
    column-gap: var(--space-1);
    align-items: start;
    min-height: 3rem;
    padding: 0.625rem 0.75rem;
    background: var(--color-white);
    border: var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
  }

  .contentcalc__level:has(input:checked) {
    background: var(--color-brand);
  }

  .contentcalc__level input,
  .contentcalc__check input {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0.125rem 0 0;
    accent-color: var(--color-ink);
  }

  .contentcalc__levelname {
    font-weight: 600;
    line-height: 1.4;
  }

  .contentcalc__leveltext {
    grid-column: 2;
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  .contentcalc__check {
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr);
    column-gap: var(--space-1);
    align-items: start;
    min-height: 2.75rem;
    margin-block-start: var(--space-1);
    padding-block-start: var(--space-1);
    border-block-start: 1px solid var(--color-ink-line-faint);
    font-size: 0.875rem;
    line-height: 1.45;
    cursor: pointer;
  }

  .contentcalc__check:has(input:disabled) {
    cursor: default;
  }

  .contentcalc__check:has(input:disabled) > span {
    opacity: 0.6;
  }

  /* the client's own blog posts: a small link that opens a compact stepper */
  .contentcalc__own {
    display: grid;
    gap: var(--space-1);
  }

  .contentcalc__ownopen {
    justify-self: start;
    min-height: 2.75rem;
    padding: 0.25rem 0;
    background: none;
    border: 0;
    color: var(--color-ink);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    cursor: pointer;
  }

  .contentcalc__ownopen[aria-expanded="true"] span {
    display: inline-block;
    transform: rotate(45deg);
  }

  .contentcalc__ownbox .contentcalc__steprow {
    grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
    max-width: 16rem;
  }

  .contentcalc__ownbox .contentcalc__stepbtn {
    width: 2.75rem;
    height: 2.75rem;
  }

  .contentcalc__ownbox .contentcalc__stepvalue {
    min-height: 3.25rem;
  }

  .contentcalc__ownbox .contentcalc__stepnum {
    font-size: var(--step-3);
  }

  /* the plan */
  .contentcalc__summary {
    min-width: 0;
    padding: var(--space-2);
    background: var(--color-white);
    border: var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hard);
  }

  @media (min-width: 40rem) {
    .contentcalc__summary {
      padding: var(--space-3);
    }
  }

  .contentcalc__ptitle {
    margin: 0 0 var(--space-2);
    font-size: var(--step-2);
  }

  .contentcalc__figs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-1);
    margin: 0 0 var(--space-2);
  }

  .contentcalc__fig {
    min-width: 0;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-ink-line-faint);
    border-radius: var(--radius-sm);
  }

  .contentcalc__fig--money {
    background: var(--color-paper);
    border-color: var(--color-ink);
  }

  .contentcalc__fig--wide {
    grid-column: 1 / -1;
  }

  .contentcalc__fig dt {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
  }

  .contentcalc__fig dd {
    min-height: 2.5em;
    margin: 0.125rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.25;
  }

  .contentcalc__fig dd b {
    font-family: var(--font-heading);
    font-weight: var(--weight-heading-sm);
    font-size: var(--step-2);
    font-variant-numeric: tabular-nums;
  }

  .contentcalc__fig--money dd {
    font-family: var(--font-heading);
    font-weight: var(--weight-heading-sm);
    font-size: var(--step-2);
    font-variant-numeric: tabular-nums;
  }

  .contentcalc__fig--wide dd {
    min-height: 1.25em;
  }

  .contentcalc__figsub {
    display: block;
    font-weight: 600;
  }

  .contentcalc__picture {
    display: grid;
    gap: 0.375rem;
    margin-block-end: var(--space-2);
  }

  .contentcalc__pictitle {
    margin: var(--space-1) 0 0;
    font-size: 0.75rem;
    font-weight: 600;
  }

  .contentcalc__month {
    display: grid;
    grid-template-columns: 2.75rem repeat(5, minmax(0, 1fr));
    gap: 2px;
  }

  .contentcalc__dayname,
  .contentcalc__weekname,
  .contentcalc__mname,
  .contentcalc__mtotal {
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.2;
  }

  .contentcalc__dayname {
    text-align: center;
  }

  .contentcalc__weekname,
  .contentcalc__mname {
    align-self: center;
  }

  /* room for 10 chips, the fullest a day draws (the tenth is a + when there are more) */
  .contentcalc__day {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 2px;
    height: 2.25rem;
    padding: 3px;
    overflow: hidden;
    border: 1px solid var(--color-ink-line-faint);
    border-radius: 0.375rem;
    background: var(--color-paper);
  }

  .contentcalc__chip,
  .contentcalc__sq {
    box-sizing: border-box;
    flex: none;
    width: 0.5rem;
    height: 0.5rem;
    border: 1px solid var(--color-ink);
    border-radius: 2px;
    background: var(--color-white);
  }

  @media (min-width: 48rem) {
    .contentcalc__day {
      height: 2.75rem;
      padding: 4px;
    }

    .contentcalc__chip,
    .contentcalc__sq {
      width: 0.625rem;
      height: 0.625rem;
    }
  }

  .contentcalc__chip--blog,
  .contentcalc__sq--blog {
    background: var(--color-ink);
  }

  .contentcalc__chip--own {
    border-style: dashed;
  }

  .contentcalc__chip--social {
    border-radius: 50%;
    background: var(--color-brand);
  }

  .contentcalc__chip--more {
    display: grid;
    place-items: center;
    font-size: 0.5rem;
    line-height: 1;
    border-style: dotted;
  }

  .contentcalc__key--total {
    width: auto;
    height: auto;
    padding: 0 0.25rem;
    border: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
  }

  /* six months: a month a row, four weeks, the total at the end */
  .contentcalc__six {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .contentcalc__mrow {
    display: grid;
    grid-template-columns: 3.5rem repeat(4, minmax(0, 1fr)) 3.5rem;
    align-items: stretch;
  }

  .contentcalc__week {
    display: grid;
    grid-template-rows: auto auto;
    gap: 2px;
    padding: 3px;
    border-block: 1px solid var(--color-ink-line-faint);
    border-inline-start: 1px solid var(--color-ink-line-faint);
    background: var(--color-paper);
  }

  .contentcalc__mrow .contentcalc__week:nth-child(5) {
    border-inline-end: 1px solid var(--color-ink-line-faint);
  }

  .contentcalc__lane {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    min-height: calc(0.5rem + 2px);
    padding: 1px 2px;
    border-radius: 2px;
  }

  @media (min-width: 48rem) {
    .contentcalc__lane {
      min-height: calc(0.625rem + 2px);
    }
  }

  .contentcalc__week.is-sprint .contentcalc__lane--sprint {
    margin-inline: -3px;
    padding-inline: 5px;
    border-radius: 0;
    background: var(--color-accent-2);
  }

  .contentcalc__mtotal {
    align-self: center;
    text-align: end;
    font-variant-numeric: tabular-nums;
  }

  .contentcalc__summary .contentcalc__key {
    margin-block-end: var(--space-2);
  }

  /* wide screens: the four figures in one row and a smaller picture, so the plan fits the
     screen while it stays in view (and scrolls inside itself on a short screen) */
  @media (min-width: 64rem) {
    .contentcalc__summary {
      max-height: calc(100vh - var(--header-height) - var(--space-4));
      overflow-y: auto;
      overscroll-behavior: contain;
    }

    .contentcalc__summary .contentcalc__ptitle {
      margin-block-end: var(--space-1);
    }

    .contentcalc__summary .contentcalc__figs {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .contentcalc__summary .contentcalc__fig--money dd {
      font-size: var(--step-1);
    }

    .contentcalc__summary .contentcalc__day {
      height: 2rem;
      padding: 3px;
    }

    .contentcalc__summary .contentcalc__chip,
    .contentcalc__summary .contentcalc__sq {
      width: 0.5rem;
      height: 0.5rem;
    }

    .contentcalc__summary .contentcalc__lane {
      min-height: calc(0.5rem + 2px);
    }

    .contentcalc__summary .contentcalc__key {
      display: flex;
      flex-wrap: wrap;
      gap: 0.25rem var(--space-2);
    }
  }

  .contentcalc__summary .contentcalc__estimate {
    margin: 0 0 var(--space-2);
  }

  /* phones and tablets: the bar at the foot of the screen while the calculator is in view.
     Its room is kept under the calculator, so it never covers the last control. */
  .contentcalc__bar {
    display: none;
  }

  @media screen and (max-width: 63.99rem) {
    .contentcalc--calc {
      padding-block-end: 4.5rem;
    }

    .contentcalc__frame[data-live] .contentcalc__bar {
      position: fixed;
      inset-inline: 0;
      bottom: 0;
      z-index: 40;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: var(--space-2);
      padding: 0.625rem max(var(--space-2), env(safe-area-inset-right)) calc(0.625rem + env(safe-area-inset-bottom)) max(var(--space-2), env(safe-area-inset-left));
      background: var(--color-white);
      border-block-start: var(--border);
      visibility: hidden;
      transform: translateY(110%);
    }

    .contentcalc__frame[data-live] .contentcalc__bar.is-on {
      visibility: visible;
      transform: none;
    }
  }

  .contentcalc__barfig {
    display: grid;
    min-width: 0;
    margin: 0;
    line-height: 1.2;
  }

  .contentcalc__barfig b {
    font-family: var(--font-heading);
    font-weight: var(--weight-heading-sm);
    font-size: var(--step-2);
    font-variant-numeric: tabular-nums;
  }

  .contentcalc__barlabel {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
  }

  .contentcalc__barbtn {
    flex: none;
  }

  /* ================================================== no script, and print */
  @media (scripting: none) {
    .contentcalc__control,
    .contentcalc__hint,
    .contentcalc__pacestate,
    .contentcalc__picked,
    .contentcalc__or {
      display: none;
    }

    .contentcalc__pace {
      cursor: default;
    }

    .contentcalc__steprow,
    .contentcalc__level {
      grid-template-columns: minmax(0, 1fr);
    }

    .contentcalc__leveltext {
      grid-column: auto;
    }

    .contentcalc__radiochip:has(input:disabled) {
      border-style: solid;
    }
  }

  @media print {
    .contentcalc__control,
    .contentcalc__hint,
    .contentcalc__pacestate,
    .contentcalc__picked,
    .contentcalc__or,
    .contentcalc__bar,
    .contentcalc__send {
      display: none;
    }

    .contentcalc__steprow {
      grid-template-columns: minmax(0, 1fr);
    }

    .contentcalc__summary {
      position: static;
      box-shadow: none;
    }
  }
}

@layer motion {
  @media screen and (prefers-reduced-motion: no-preference) {
    html[data-fx~="diagrams"] .contentcalc__frame[data-live] .contentcalc__chip,
    html[data-fx~="diagrams"] .contentcalc__frame[data-live] .contentcalc__sq {
      animation: contentcalc-pop 220ms var(--ease) both;
    }

    html[data-fx~="diagrams"] .contentcalc--sprint[data-live] :is(.contentcalc__wkn, .contentcalc__wkspr) {
      transition: height 260ms var(--ease);
    }

    html[data-fx~="diagrams"] :is(.contentcalc__stepbtn, .contentcalc__chipbtn, .contentcalc__radiochip, .contentcalc__level, .contentcalc__size) {
      transition: background-color 200ms var(--ease);
    }

    html[data-fx~="diagrams"] .contentcalc__frame[data-live] .contentcalc__bar {
      transition: transform 240ms var(--ease), visibility 0s linear 240ms;
    }

    html[data-fx~="diagrams"] .contentcalc__frame[data-live] .contentcalc__bar.is-on {
      transition: transform 240ms var(--ease), visibility 0s;
    }

    /* the cards lift on hover and on keyboard focus (hover-capable screens only) */
    @media (hover: hover) {
      html[data-fx~="diagrams"] .contentcalc__pace {
        transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background-color 200ms var(--ease);
      }

      html[data-fx~="diagrams"] .contentcalc__pace:is(:hover, :focus-visible) {
        transform: translateY(-3px);
        box-shadow: var(--shadow-hard);
      }
    }
  }

  @keyframes contentcalc-pop {
    from {
      transform: scale(0.4);
      opacity: 0;
    }
    to {
      transform: none;
      opacity: 1;
    }
  }
}

@layer blocks {
  /* hover colors without movement, for every screen that can hover */
  @media (hover: hover) {
    .contentcalc__stepbtn:not([aria-disabled="true"]):hover,
    .contentcalc__chipbtn:hover,
    .contentcalc__size:hover,
    .contentcalc__radiochip:not(:has(input:disabled)):hover,
    .contentcalc__level:hover {
      background: var(--color-brand);
    }

    .contentcalc__pace:hover {
      border-color: var(--color-ink);
    }
  }
}
