/* Hallmark · shape: app screen · genre: editorial · theme: Ink (deal 1/3, seed prorated-rent-calculator-small-ac18·40f9f5e1·2026-11-12·r0)
 * nav: the WordPress theme's own · signature: the rent period drawn as a row of days, the billed ones inked · states: empty, error, full · ink: paper
 * axes: light/grotesk-sans/chromatic-green · posture: restrained · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, a calculator argues little; it takes a side by showing all three methods at once and saying the lease decides */
/* Hallmark · waive 22 · ink, ink-2, muted and the field edge all sit at zero chroma · Ink is a notice printed in plain black ink with no hue, so the landlord reads it as a document */
/* Hallmark · dismissed 23 · the accent fills one day cell of at most 31 in the strip, the move day, a few square pixels and never a field */

/* Tokens live on the tool's own block so the WordPress theme never collides with them.
   The tool inherits the theme's typeface so it sits in the page like it belongs there. */
.rf-tool {
  --rf-space-3xs: 2px; --rf-space-2xs: 4px; --rf-space-xs: 8px; --rf-space-sm: 12px; --rf-space-md: 16px; --rf-space-lg: 24px; --rf-space-xl: 40px; --rf-space-2xl: 64px;
  --rf-text-xs: 0.75rem; --rf-text-sm: 0.875rem; --rf-text-md: 1rem; --rf-text-lg: 1.2rem; --rf-text-xl: 1.44rem; --rf-text-2xl: 1.728rem; --rf-text-3xl: 2.074rem;
  --rf-ease: cubic-bezier(0.16, 1, 0.3, 1); --rf-dur-micro: 120ms;
  --rf-paper: oklch(99.5% 0.003 100); --rf-paper-2: oklch(97% 0.004 100); --rf-paper-3: oklch(94% 0.006 100);
  --rf-ink: oklch(16% 0 0); --rf-ink-2: oklch(28% 0 0); --rf-muted: oklch(44% 0 0);
  --rf-rule: oklch(89% 0.004 100); --rf-edge: oklch(58% 0 0);
  --rf-accent: #08805a; --rf-accent-soft: #d4efe3; --rf-accent-soft-ink: #0f2c24;
  --rf-focus: #08805a; --rf-error: oklch(52% 0.19 27);
  --rf-font: inherit;
  --rf-radius-card: 12px; --rf-radius-control: 10px; --rf-radius-pill: 999px; --rf-hair: 1px; --rf-control-h: 40px;
  --rf-tracking-display: -0.03em;

  container-type: inline-size;
  color: var(--rf-ink);
  font-family: var(--rf-font);
  font-size: var(--rf-text-md);
  line-height: 1.55;
  margin-block: var(--rf-space-lg);
}
.rf-tool *, .rf-tool *::before, .rf-tool *::after { box-sizing: border-box; }
.rf-tool p { margin: 0; }
.rf-tool h2, .rf-tool h3 { margin: 0; font-family: var(--rf-font); font-weight: 700; letter-spacing: var(--rf-tracking-display); line-height: 1.1; color: var(--rf-ink); overflow-wrap: break-word; min-width: 0; }
.rf-tool [hidden] { display: none !important; }
.rf-tool a { color: var(--rf-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; transition: text-decoration-color var(--rf-dur-micro) var(--rf-ease); }
.rf-tool a:hover { text-decoration-color: var(--rf-accent); }
.rf-tool a:focus-visible { outline: 2px solid var(--rf-focus); outline-offset: 2px; }
.rf-tool ::selection { background: var(--rf-accent-soft); color: var(--rf-accent-soft-ink); }
.rf-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Layout: two columns when the block is wide enough, whatever the theme's content width */
.rf-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--rf-space-lg); align-items: start; }
@container (min-width: 760px) { .rf-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; } }

.rf-well { background: var(--rf-paper-2); border: var(--rf-hair) solid var(--rf-rule); border-radius: var(--rf-radius-card); padding: var(--rf-space-lg); margin: 0; }

/* Fields */
.rf-field { display: grid; gap: var(--rf-space-2xs); margin-bottom: var(--rf-space-md); }
.rf-field > label, .rf-seg legend, .rf-check label { font-size: var(--rf-text-sm); color: var(--rf-ink); font-weight: 400; }
.rf-help { font-size: var(--rf-text-sm); color: var(--rf-muted); min-height: 1lh; }
.rf-help--error { color: var(--rf-error); }
.rf-tool .rf-input { width: 100%; min-height: var(--rf-control-h); margin: 0; padding: 0 var(--rf-space-sm); border: var(--rf-hair) solid var(--rf-edge); border-radius: var(--rf-radius-control); background: var(--rf-paper); color: var(--rf-ink); font: inherit; font-size: var(--rf-text-md); box-shadow: none; transition: border-color var(--rf-dur-micro) var(--rf-ease); }
.rf-tool .rf-input:hover { border-color: var(--rf-ink-2); }
.rf-tool .rf-input:focus-visible { outline: 2px solid var(--rf-focus); outline-offset: -1px; }
.rf-tool .rf-input[aria-invalid="true"] { border-color: var(--rf-error); }
.rf-tool textarea.rf-input { min-height: 88px; padding-block: var(--rf-space-xs); resize: vertical; line-height: 1.45; }
.rf-money { position: relative; }
.rf-money > span { position: absolute; left: var(--rf-space-sm); top: 50%; transform: translateY(-50%); color: var(--rf-muted); pointer-events: none; }
.rf-tool .rf-money .rf-input { padding-left: calc(var(--rf-space-sm) + 1ch + var(--rf-space-2xs)); font-variant-numeric: tabular-nums; }
.rf-row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--rf-space-sm); }
@container (max-width: 420px) { .rf-row-2 { grid-template-columns: minmax(0, 1fr); } .rf-row-2 .rf-help:empty { min-height: 0; } }

/* Segmented choice */
.rf-seg { border: 0; padding: 0; margin: 0 0 var(--rf-space-md); min-width: 0; }
.rf-seg legend { padding: 0; margin-bottom: var(--rf-space-2xs); }
.rf-seg__opts { display: flex; flex-wrap: wrap; }
.rf-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.rf-seg label { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--rf-space-md); margin: 0 0 0 -1px; border: var(--rf-hair) solid var(--rf-edge); background: var(--rf-paper); color: var(--rf-ink); font-size: var(--rf-text-sm); font-weight: 600; cursor: pointer; transition: background-color var(--rf-dur-micro) var(--rf-ease), color var(--rf-dur-micro) var(--rf-ease); }
.rf-seg label:first-of-type { margin-left: 0; border-radius: var(--rf-radius-control) 0 0 var(--rf-radius-control); }
.rf-seg label:last-of-type { border-radius: 0 var(--rf-radius-control) var(--rf-radius-control) 0; }
.rf-seg label:hover { background: var(--rf-paper-3); }
.rf-seg input:checked + label { background: var(--rf-ink); border-color: var(--rf-ink); color: var(--rf-paper); position: relative; z-index: 1; }
.rf-seg input:focus-visible + label { outline: 2px solid var(--rf-focus); outline-offset: 2px; position: relative; z-index: 2; }

.rf-check { display: flex; gap: var(--rf-space-xs); align-items: flex-start; margin-bottom: var(--rf-space-2xs); }
.rf-check input { width: 20px; height: 20px; margin: var(--rf-space-3xs) 0 0; accent-color: var(--rf-ink); flex: none; }
.rf-check input:focus-visible { outline: 2px solid var(--rf-focus); outline-offset: 2px; }

/* Buttons */
.rf-tool .rf-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--rf-space-xs); min-height: var(--rf-control-h); margin: 0; padding: 0 var(--rf-space-md); border: var(--rf-hair) solid var(--rf-rule); border-radius: var(--rf-radius-control); background: var(--rf-paper-2); color: var(--rf-ink); font-family: var(--rf-font); font-weight: 600; font-size: var(--rf-text-sm); line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; text-decoration: none; cursor: pointer; box-shadow: none; transition: background-color var(--rf-dur-micro) var(--rf-ease), transform var(--rf-dur-micro) var(--rf-ease); }
.rf-tool .rf-btn:hover { background: var(--rf-paper-3); color: var(--rf-ink); }
.rf-tool .rf-btn:active { transform: translateY(1px); }
.rf-tool .rf-btn:focus-visible { outline: 2px solid var(--rf-focus); outline-offset: 2px; }
.rf-tool .rf-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.rf-tool .rf-btn--primary { background: var(--rf-ink); border-color: var(--rf-ink); color: var(--rf-paper); min-height: 44px; padding: 0 var(--rf-space-lg); font-size: var(--rf-text-md); }
.rf-tool .rf-btn--primary:hover { background: var(--rf-ink-2); color: var(--rf-paper); }
@media (pointer: coarse) { .rf-tool .rf-btn { min-height: 44px; } }

/* Panels with dark header bars */
.rf-panel { border: var(--rf-hair) solid var(--rf-ink); background: var(--rf-paper); min-width: 0; margin: 0; }
.rf-tool .rf-panel__head { margin: 0; padding: 10px var(--rf-space-md); background: var(--rf-ink); color: var(--rf-paper); font-size: var(--rf-text-sm); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.rf-panel__body { padding: var(--rf-space-lg); margin: 0; }
.rf-panel .rf-well { border: 0; border-radius: 0; }

/* Result */
.rf-result { display: grid; gap: var(--rf-space-md); min-width: 0; }
.rf-result .rf-empty { margin: 0; }
.rf-empty { border: var(--rf-hair) dashed var(--rf-edge); border-radius: var(--rf-radius-card); padding: var(--rf-space-xl) var(--rf-space-lg); color: var(--rf-ink-2); }
.rf-full { display: grid; gap: var(--rf-space-sm); }
.rf-result__label { font-size: var(--rf-text-sm); color: var(--rf-ink-2); }
.rf-tool .rf-figure { font-family: var(--rf-font); font-weight: 700; font-size: calc(var(--rf-text-3xl) * 1.45); line-height: 1; letter-spacing: var(--rf-tracking-display); font-variant-numeric: tabular-nums; color: var(--rf-ink); }
.rf-result__sub { color: var(--rf-ink-2); }

/* Signature: the rent period as a row of days */
.rf-strip { display: grid; grid-template-columns: repeat(var(--rf-days, 30), minmax(0, 1fr)); gap: var(--rf-space-3xs); margin-top: var(--rf-space-sm); }
.rf-strip > span { height: 36px; border-radius: 3px; background: var(--rf-paper-3); box-shadow: inset 0 0 0 var(--rf-hair) var(--rf-rule); }
.rf-strip > span.on { background: var(--rf-ink); box-shadow: none; }
.rf-strip > span.move { background: var(--rf-accent); box-shadow: none; }
.rf-strip__ends { display: flex; justify-content: space-between; gap: var(--rf-space-sm); font-size: var(--rf-text-sm); color: var(--rf-muted); font-variant-numeric: tabular-nums; }
.rf-strip__key { display: flex; flex-wrap: wrap; gap: var(--rf-space-md); font-size: var(--rf-text-sm); color: var(--rf-ink-2); }
.rf-strip__key i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: var(--rf-space-2xs); vertical-align: -1px; background: var(--rf-paper-3); box-shadow: inset 0 0 0 var(--rf-hair) var(--rf-rule); }
.rf-strip__key i.on { background: var(--rf-ink); box-shadow: none; }
.rf-strip__key i.move { background: var(--rf-accent); box-shadow: none; }

/* Methods table (reset theme table styles) */
.rf-tool .rf-methods { width: 100%; margin: var(--rf-space-sm) 0 0; border: 0; border-collapse: collapse; font-size: var(--rf-text-sm); background: none; }
.rf-tool .rf-methods th, .rf-tool .rf-methods td { border: 0; background: none; }
.rf-tool .rf-methods thead th { text-align: left; font-weight: 400; color: var(--rf-muted); padding: 0 0 var(--rf-space-xs); white-space: nowrap; }
.rf-tool .rf-methods .rf-num { text-align: right; }
.rf-tool .rf-methods tbody { border-top: var(--rf-hair) solid var(--rf-ink); }
.rf-tool .rf-methods tbody tr { border-bottom: var(--rf-hair) solid var(--rf-rule); }
.rf-tool .rf-methods td, .rf-tool .rf-methods tbody th { padding: var(--rf-space-sm) var(--rf-space-sm) var(--rf-space-sm) 0; vertical-align: top; text-align: left; }
.rf-tool .rf-methods td.rf-num { padding-right: 0; padding-left: var(--rf-space-sm); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rf-tool .rf-methods tbody th { font-weight: 600; color: var(--rf-ink); }
.rf-formula { display: block; font-weight: 400; color: var(--rf-muted); margin-top: var(--rf-space-2xs); font-variant-numeric: tabular-nums; }
.rf-tool .rf-methods tr.rf-chosen td.rf-owed { font-weight: 700; color: var(--rf-ink); }
.rf-tag { display: inline-flex; padding: var(--rf-space-3xs) var(--rf-space-xs); border-radius: var(--rf-radius-pill); font-size: var(--rf-text-xs); font-weight: 600; background: var(--rf-accent-soft); color: var(--rf-accent-soft-ink); margin-left: var(--rf-space-xs); vertical-align: 1px; }

.rf-actions { display: flex; flex-wrap: wrap; gap: var(--rf-space-xs); align-items: center; }
.rf-status { font-size: var(--rf-text-sm); color: var(--rf-ink-2); min-height: 1lh; }

/* Partner links */
.rf-partners { border-top: var(--rf-hair) solid var(--rf-ink); }
.rf-partners ul { list-style: none; margin: 0; padding: 0; }
.rf-partners li { display: flex; justify-content: space-between; gap: var(--rf-space-md); margin: 0; padding-block: var(--rf-space-sm); border-bottom: var(--rf-hair) solid var(--rf-rule); }
.rf-partners p { font-size: var(--rf-text-sm); color: var(--rf-muted); padding-top: var(--rf-space-xs); }

/* Notice */
.rf-notice-section { border-top: var(--rf-hair) solid var(--rf-ink); margin-top: var(--rf-space-2xl); padding-top: var(--rf-space-xl); }
.rf-notice-section > header { display: grid; gap: var(--rf-space-xs); margin-bottom: var(--rf-space-lg); }
.rf-notice-section h2 { font-size: var(--rf-text-2xl); }
.rf-notice-section > header p { color: var(--rf-ink-2); }
.rf-doc { background: var(--rf-paper); padding: var(--rf-space-xl); color: var(--rf-ink); display: grid; gap: var(--rf-space-md); line-height: 1.6; }
.rf-doc h4 { font-size: var(--rf-text-xl); margin: 0; font-weight: 700; letter-spacing: var(--rf-tracking-display); }
.rf-doc dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--rf-space-2xs) var(--rf-space-md); margin: 0; }
.rf-doc dt { font-weight: 600; margin: 0; }
.rf-doc dd { margin: 0; }
.rf-doc .rf-calcline { border-top: var(--rf-hair) solid var(--rf-ink); border-bottom: var(--rf-hair) solid var(--rf-rule); padding-block: var(--rf-space-sm); font-variant-numeric: tabular-nums; }
.rf-doc .rf-due { font-weight: 700; font-size: var(--rf-text-lg); }
.rf-doc .rf-blank { color: var(--rf-muted); }
.rf-doc .rf-how { white-space: pre-line; padding: 0; margin: 0; }
/* Long payment links and other unbroken text wrap inside the notice, on screen and on paper. */
.rf-doc, .rf-doc * { overflow-wrap: anywhere; word-break: normal; min-width: 0; }
.rf-sign { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--rf-space-lg); padding-top: var(--rf-space-xl); }
.rf-sign span { display: block; border-top: var(--rf-hair) solid var(--rf-ink); padding-top: var(--rf-space-2xs); font-size: var(--rf-text-sm); color: var(--rf-muted); }
.rf-notice-form .rf-actions { margin-top: var(--rf-space-md); }
@container (max-width: 480px) { .rf-doc { padding: var(--rf-space-lg); } }

.rf-byline { margin-top: var(--rf-space-lg) !important; padding-top: var(--rf-space-sm); border-top: var(--rf-hair) solid var(--rf-rule); font-size: var(--rf-text-sm); color: var(--rf-muted); }

/* 1.3.0 */
.rf-help--block { min-height: 0; margin-top: calc(-1 * var(--rf-space-xs)) !important; }
.rf-help--error { font-weight: 600; }
.rf-warn { margin: 0 0 var(--rf-space-sm) !important; padding: var(--rf-space-xs) var(--rf-space-sm); border-left: 3px solid var(--rf-error); background: var(--rf-paper-2); font-size: var(--rf-text-sm); color: var(--rf-ink); }
.rf-share-note { font-size: var(--rf-text-sm); color: var(--rf-muted); max-width: 52ch; }
.rf-settle { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: var(--rf-space-2xs) var(--rf-space-md); margin: 0; padding: var(--rf-space-sm) 0; border-top: var(--rf-hair) solid var(--rf-rule); border-bottom: var(--rf-hair) solid var(--rf-rule); font-variant-numeric: tabular-nums; }
.rf-settle dt { margin: 0; color: var(--rf-ink-2); }
.rf-settle dd { margin: 0; text-align: right; font-weight: 600; }
.rf-settle dt:last-of-type, .rf-settle dd:last-of-type { font-weight: 700; color: var(--rf-ink); }
.rf-tool .rf-btn:disabled { background: var(--rf-paper-3); border-color: var(--rf-rule); color: var(--rf-muted); }
/* Compact result beside the inputs on narrow screens; the wide layout already shows the result next to the form. */
.rf-mini { margin: 0 0 var(--rf-space-md); padding: var(--rf-space-sm) var(--rf-space-md); border: var(--rf-hair) solid var(--rf-ink); border-left-width: 4px; border-left-color: var(--rf-accent); background: var(--rf-paper); display: grid; gap: 2px; }
.rf-mini p { margin: 0; }
.rf-mini__label { font-size: var(--rf-text-sm); color: var(--rf-ink-2); }
.rf-mini__amount { font-weight: 700; font-size: var(--rf-text-2xl); letter-spacing: var(--rf-tracking-display); font-variant-numeric: tabular-nums; line-height: 1.1; }
.rf-mini__meta { font-size: var(--rf-text-sm); color: var(--rf-ink-2); }
.rf-mini__more { font-size: var(--rf-text-sm); justify-self: start; }
@container (min-width: 760px) { .rf-mini { display: none !important; } }
.rf-result__sub, #rf-r-next, .rf-formula { overflow-wrap: anywhere; }
@container (max-width: 400px) {
  .rf-panel__body { padding: var(--rf-space-md); }
  .rf-seg label { padding: 0 var(--rf-space-sm); }
  .rf-tool .rf-methods td, .rf-tool .rf-methods tbody th { padding-right: var(--rf-space-xs); }
  .rf-tool .rf-methods td.rf-num { padding-left: var(--rf-space-xs); }
  .rf-tool .rf-figure { font-size: calc(var(--rf-text-3xl) * 1.2); }
}

/* 1.5.0: rent receipt generator. Same ink-on-paper document as the notice, with the amount
   set large and written out in words like a check. */
.rf-fieldset { border: 0; padding: 0; margin: 0 0 var(--rf-space-md); min-width: 0; }
.rf-fieldset legend { padding: 0; margin-bottom: var(--rf-space-xs); font-size: var(--rf-text-sm); font-weight: 600; color: var(--rf-ink); }
.rf-fieldset .rf-field { margin-bottom: var(--rf-space-xs); }
.rf-receipt { border: var(--rf-hair) solid var(--rf-rule); }
.rf-receipt__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--rf-space-xs) var(--rf-space-md); border-bottom: var(--rf-hair) solid var(--rf-ink); padding-bottom: var(--rf-space-sm); }
.rf-receipt__no { font-variant-numeric: tabular-nums; color: var(--rf-ink-2); font-weight: 600; }
.rf-receipt__amount { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--rf-space-xs) var(--rf-space-md); border-top: var(--rf-hair) solid var(--rf-rule); padding-top: var(--rf-space-sm); }
.rf-receipt__amount span { color: var(--rf-ink-2); }
.rf-receipt__amount strong { font-size: var(--rf-text-2xl); letter-spacing: var(--rf-tracking-display); font-variant-numeric: tabular-nums; line-height: 1.1; }
.rf-receipt__words { font-style: italic; color: var(--rf-ink-2); margin-top: calc(-1 * var(--rf-space-xs)) !important; }
.rf-receipt__settle { font-weight: 600; }
.rf-receipt .rf-sign { padding-top: var(--rf-space-lg); }
.rf-tool .rf-rc-list .rf-methods { margin-top: 0; }
.rf-tool .rf-rc-list__cap { caption-side: top; text-align: left; font-weight: 600; padding-bottom: var(--rf-space-xs); color: var(--rf-ink); }
.rf-tool .rf-rc-list td, .rf-tool .rf-rc-list tbody th { font-variant-numeric: tabular-nums; }
@container (max-width: 480px) { .rf-tool .rf-rc-list thead th:nth-child(3), .rf-tool .rf-rc-list td:nth-child(3) { display: none; } }
@container (max-width: 440px) {
  .rf-receipt dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rf-receipt dt { font-size: var(--rf-text-sm); color: var(--rf-ink-2); margin-top: var(--rf-space-xs); }
  .rf-receipt dt:first-child { margin-top: 0; }
}

/* 1.6.0: cap rate calculator. Same panels and ink tables as the other tools; the NOI table reads
   top to bottom like a landlord's income statement, with subtotals ruled off. */
.rf-pct { position: relative; }
.rf-pct > span { position: absolute; right: var(--rf-space-sm); top: 50%; transform: translateY(-50%); color: var(--rf-muted); pointer-events: none; }
.rf-tool .rf-pct .rf-input { padding-right: calc(var(--rf-space-sm) + 1.5ch + var(--rf-space-2xs)); font-variant-numeric: tabular-nums; }
.rf-seg--small { margin-bottom: var(--rf-space-sm); }
.rf-seg--small label { min-height: 36px; font-size: var(--rf-text-sm); }
.rf-cr-expenses { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--rf-space-sm); }
.rf-cr-expenses .rf-help:empty { min-height: 0; }
.rf-cr-expenses .rf-field { align-content: start; }
.rf-fieldset > .rf-help--block { margin-top: var(--rf-space-2xs) !important; }
@container (min-width: 760px) { .rf-cr-expenses { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@container (min-width: 520px) and (max-width: 759px) { .rf-cr-expenses { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.rf-tool .rf-cr-cap { caption-side: top; text-align: left; font-weight: 600; padding-bottom: var(--rf-space-xs); color: var(--rf-ink); }
.rf-tool .rf-cr-noi tbody th { font-weight: 400; color: var(--rf-ink-2); }
.rf-tool .rf-cr-noi tr.rf-cr-sub th, .rf-tool .rf-cr-noi tr.rf-cr-sub td { font-weight: 600; color: var(--rf-ink); }
.rf-tool .rf-cr-noi tr.rf-cr-total { border-top: var(--rf-hair) solid var(--rf-ink); border-bottom: 0; }
.rf-tool .rf-cr-noi tr.rf-cr-total th, .rf-tool .rf-cr-noi tr.rf-cr-total td { font-weight: 700; color: var(--rf-ink); font-size: var(--rf-text-md); }
.rf-tool .rf-cr-sens tbody th { font-weight: 400; }
.rf-tool .rf-cr-sens tr.rf-chosen th, .rf-tool .rf-cr-sens tr.rf-chosen td { font-weight: 700; color: var(--rf-ink); }
.rf-tool .rf-cr-sens tr.rf-chosen { background: var(--rf-accent-soft); }
#rf-cr-formula { margin-top: calc(-1 * var(--rf-space-xs)); }

/* 1.7.0: rent increase calculator. The cap check reads as a ruled note: green edge when the
   increase is within the cap, red when it's over, plain when a figure is missing. */
.rf-ri-cap { margin: 0; padding: var(--rf-space-xs) var(--rf-space-sm); border-left: 3px solid var(--rf-edge); background: var(--rf-paper-2); font-size: var(--rf-text-sm); color: var(--rf-ink); }
.rf-ri-cap--ok { border-left-color: var(--rf-accent); background: var(--rf-accent-soft); color: var(--rf-accent-soft-ink); }
.rf-ri-cap--over { border-left-color: var(--rf-error); }
.rf-ri-cap a, .rf-help--block a { white-space: nowrap; }
#rf-ri-warnings:empty { display: none; }
#rf-ri-warnings .rf-warn { margin-bottom: var(--rf-space-xs) !important; }
#rf-ri-rules dd { font-variant-numeric: tabular-nums; }
#rf-ri-rules dt:last-of-type, #rf-ri-rules dd:last-of-type { font-weight: 700; }
/* 1.7.1: Washington's statutory form and New York's § 231-c notice. */
.rf-ri-wa p, .rf-ri-ny p { margin: 0; }
.rf-ri-wa h4, .rf-ri-ny h4 { font-size: var(--rf-text-lg); }
.rf-ri-wa .rf-ri-wa-sub { font-size: var(--rf-text-md); margin-top: var(--rf-space-sm); }
.rf-ri-ny { gap: var(--rf-space-xs); font-size: var(--rf-text-sm); }
.rf-ri-attach { margin-top: var(--rf-space-md); border: var(--rf-hair) solid var(--rf-rule); }
.rf-ri-attach > summary { cursor: pointer; padding: var(--rf-space-sm) var(--rf-space-md); font-weight: 600; font-size: var(--rf-text-sm); }
.rf-ri-attach > summary:focus-visible { outline: 2px solid var(--rf-focus); outline-offset: 2px; }
#rf-ri-exempt-fields { margin-top: var(--rf-space-sm); }

@media (prefers-reduced-motion: reduce) {
  .rf-tool .rf-btn, .rf-seg label, .rf-tool .rf-input, .rf-tool a { transition: none; }
}

/* Printing: the "Print notice" button copies the notice into #rf-print-root and hides
   everything else with display:none, so nothing else takes up space and no blank pages follow. */
@media screen { #rf-print-root { display: none !important; } }
@media print {
  @page { margin: 18mm; }
  body.rf-printing > *:not(#rf-print-root) { display: none !important; }
  body.rf-printing { margin: 0 !important; padding: 0 !important; background: none !important; }
  #rf-print-root { display: block !important; margin: 0; container-type: normal; }
  #rf-print-root .rf-doc { border: 0; border-radius: 0; padding: 0; font-size: 12pt; background: none; break-inside: auto; }
  #rf-print-root .rf-doc .rf-blank { color: transparent; border-bottom: var(--rf-hair) solid var(--rf-ink); display: inline-block; min-width: 18em; }
  #rf-print-root .rf-sign { break-inside: avoid; }
  #rf-print-root.rf-print-receipts .rf-receipt { border: var(--rf-hair) solid var(--rf-ink); padding: 5mm 7mm; margin: 0 0 6mm; break-inside: avoid; page-break-inside: avoid; gap: 2.5mm; font-size: 10.5pt; line-height: 1.4; }
  #rf-print-root.rf-print-receipts .rf-receipt h4 { font-size: 15pt; }
  #rf-print-root.rf-print-receipts .rf-receipt__head { padding-bottom: 2mm; }
  #rf-print-root.rf-print-receipts .rf-receipt__amount { padding-top: 2mm; }
  #rf-print-root.rf-print-receipts .rf-receipt__amount strong { font-size: 17pt; }
  #rf-print-root.rf-print-receipts .rf-receipt__words { margin-top: -1mm !important; }
  #rf-print-root.rf-print-receipts .rf-receipt .rf-sign { padding-top: 8mm; }
  #rf-print-root.rf-print-caprate .rf-doc { gap: 4mm; font-size: 11pt; }
  #rf-print-root.rf-print-caprate .rf-methods { break-inside: avoid; }
  #rf-print-root.rf-print-caprate .rf-methods td, #rf-print-root.rf-print-caprate .rf-methods tbody th, #rf-print-root.rf-print-caprate .rf-methods thead th { padding-top: 1.4mm; padding-bottom: 1.4mm; font-size: 10pt; }
  #rf-print-root.rf-print-caprate .rf-cr-noi tr.rf-cr-total th, #rf-print-root.rf-print-caprate .rf-cr-noi tr.rf-cr-total td { font-size: 11pt; }
  #rf-print-root.rf-print-caprate .rf-cr-sens tr.rf-chosen { background: none; }
  #rf-print-root.rf-print-ri .rf-ri-ny { break-before: page; page-break-before: always; font-size: 9.5pt; gap: 1.6mm; }
  #rf-print-root.rf-print-ri .rf-ri-wa { font-size: 10.5pt; gap: 2.2mm; }
}
