/* The two calculators, /tools/rental-yield/ and /tools/buy-vs-rent/.

   Lifted verbatim from the calculators block of
   _reference/site-preview.html by script - not retyped and not re-derived.
   Every colour is one of the artifact's own tokens, so both themes come for
   free: tokens.css defines them on :root and redefines them for dark, and
   nothing below names a colour of its own.

   The first version of this header quoted the preview's own comment marker
   inside this one. CSS comments do not nest, so the comment ended early,
   the rest of the header was parsed as a rule, and the whole stylesheet was
   discarded - while the file still served 200 with the right byte count and
   the DOM still matched the artifact exactly. Only a screenshot caught it. */

.calcwrap{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:26px;align-items:start}
.calcform{background:var(--surface);border:1px solid var(--line);padding:26px 24px;display:flex;flex-direction:column;gap:15px}
.crow{display:flex;flex-direction:column;gap:6px}
.crow label{font-family:var(--sans);font-size:13px;font-weight:500;color:var(--text);display:flex;flex-direction:column;gap:2px}
.crow label small{font-family:var(--sans);font-size:11.5px;font-weight:300;color:var(--muted)}
.cin{display:flex;align-items:stretch;border:1px solid var(--line);background:var(--paper)}
.cin input{flex:1;min-width:0;border:none;background:none;padding:11px 12px;font-family:var(--sans);font-size:14.5px;color:var(--text);outline:none}
.cin input:focus{outline:2px solid var(--gold);outline-offset:-2px}
.csuf{flex:0 0 auto;display:flex;align-items:center;padding:0 13px;background:var(--tint);border-left:1px solid var(--line);
  font-family:var(--sans);font-size:12px;letter-spacing:.06em;color:var(--muted)}
.calcout{background:var(--hero-bg);border:1px solid var(--line);padding:26px 24px;position:sticky;top:96px}
.calcout h3{font-family:var(--serif);font-size:20px;margin:0 0 16px;color:var(--text)}
.orow{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid var(--sep);
  font-family:var(--sans);font-size:13.5px;font-weight:300;color:var(--muted)}
.orow .v{color:var(--text);font-weight:400;text-align:right;white-space:nowrap}
.orow.strong{font-size:15px}
.orow.strong .k{color:var(--text);font-weight:500}
.orow.strong .v{color:var(--gold);font-weight:600}
.osplit{height:14px}
.ofoot{font-family:var(--sans);font-size:12.5px;line-height:1.65;font-weight:300;color:var(--muted);margin:16px 0 0}
.calcempty{font-family:var(--sans);font-size:14px;font-weight:300;color:var(--muted);margin:0;text-align:center;padding:26px 0}
.calcnote{font-family:var(--sans);font-size:12.5px;line-height:1.7;font-weight:300;color:var(--muted);margin:24px 0 0;max-width:760px}
@media (max-width:860px){ .calcwrap{grid-template-columns:1fr} .calcout{position:static} }

/* PUBLIC-SITE-PHASE-2C, below the artifact's own block and separate from it:
   the entry-mode toggle, the per-area size field, the provisional marker, the
   exchange-rate note and the report form. Tokens only, so both themes hold.
   The site-wide form rule (padding 44px 40px, a column) is undone for the
   report form, and width:100% for its checkbox. */
.ctog{display:inline-flex;align-self:flex-start;border:1px solid var(--line);background:var(--paper)}
.ctog button{font-family:var(--sans);font-size:11.5px;letter-spacing:.04em;color:var(--muted);background:none;
  border:none;padding:6px 11px;cursor:pointer}
.ctog button+button{border-left:1px solid var(--line)}
.ctog button[aria-pressed=true]{background:var(--tint);color:var(--text);font-weight:500}
.ctog button:focus-visible{outline:2px solid var(--gold);outline-offset:-2px}
.csize{display:flex;flex-direction:column;gap:6px;margin-top:4px;padding-left:12px;border-left:2px solid var(--line)}
.csize[hidden]{display:none}
.oprov{font-style:normal;font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);
  border:1px solid var(--line);padding:1px 6px;margin-left:4px;white-space:nowrap}
.orow.prov .v{opacity:.72}
.oprovnote,.ofx{font-family:var(--sans);font-size:12px;line-height:1.6;font-weight:300;color:var(--muted);margin:14px 0 0}
.ofx.warn{color:var(--text);border-left:2px solid var(--gold);padding-left:10px}
.creport{background:var(--surface);border:1px solid var(--line);padding:26px 24px;max-width:760px}
.creport h3{font-family:var(--serif);font-size:20px;margin:0 0 10px;color:var(--text)}
.creportp,.creportwait{font-family:var(--sans);font-size:13.5px;line-height:1.7;font-weight:300;color:var(--muted);margin:0 0 14px}
.creportwait[hidden],#reportOpen[hidden],.rform[hidden],.rgrid[hidden]{display:none}
form.rform{padding:0;display:flex;flex-direction:column;gap:14px;margin-top:6px}
.rgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.rconsent{display:flex;gap:10px;align-items:flex-start;font-family:var(--sans);font-size:13px;letter-spacing:0;
  text-transform:none;color:var(--text);font-weight:300;line-height:1.55}
.rconsent input{width:auto;margin-top:3px;padding:0}
.rconsent a{color:var(--gold-deep);text-decoration:underline}
.rmsg{display:none;font-family:var(--sans);font-size:13.5px;margin:0;padding:12px 14px;border:1px solid var(--gold);color:var(--text)}
.rmsg.show{display:block}
.rmsg.bad{border-color:var(--text)}
@media (max-width:860px){ .rgrid{grid-template-columns:1fr} .creport{padding:22px 18px} }

/* A calculator of law (the owner's list of 10 November 2026; the rent
   increase page is the first). Below everything older and separate from it:
   the link beside an input, a result that is a sentence, a legal maximum
   that may wrap where the panel is narrow, the "which figure is missing"
   line, the stored lines under the result, the rule's bands as a table with
   the visitor's row marked, and the list of the rule's figures with their
   sources. Tokens only, so both themes hold; logical properties, so a
   right-to-left page mirrors. The six older calculators draw none of it. */
.clink{margin:0;font-family:var(--sans);font-size:12.5px;line-height:1.5}
.clink a{color:var(--gold-deep);text-decoration:underline;text-underline-offset:2px}
.clink a:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.orow.say{display:block;line-height:1.5}
.orow.down{flex-wrap:wrap}
.orow.down .v{white-space:normal;overflow-wrap:anywhere}
/* one end of a range (tool.js): kept whole on a line, wrapping inside itself only when it is wider than the line */
.orow.down .v .cend{display:inline-block;max-width:100%}
.calcempty[data-needs]{color:var(--text)}
.clines{list-style:none;margin:24px 0 0;padding:0;max-width:760px;display:flex;flex-direction:column;gap:8px;
  font-family:var(--sans);font-size:13px;line-height:1.65;font-weight:300;color:var(--muted)}
.clines li{margin:0}
.cbands{margin:28px 0 0;max-width:760px}
.cbands table{width:100%;border-collapse:collapse;font-family:var(--sans);font-size:13.5px;line-height:1.5;color:var(--text)}
.cbands caption{caption-side:top;text-align:start;font-family:var(--serif);font-size:18px;padding:0 0 10px;color:var(--text)}
.cbands th,.cbands td{text-align:start;padding:10px 12px;border-bottom:1px solid var(--sep);font-weight:300;vertical-align:top}
.cbands thead th{font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;font-weight:400;color:var(--muted)}
.cbands tbody tr.yours th,.cbands tbody tr.yours td{background:var(--band-tint);font-weight:500}
.cbands tbody tr.yours th{box-shadow:inset 3px 0 0 var(--gold)}
[dir="rtl"] .cbands tbody tr.yours th{box-shadow:inset -3px 0 0 var(--gold)}
.cyours{display:inline-block;font-style:normal;font-size:10.5px;font-weight:400;letter-spacing:.08em;text-transform:uppercase;
  color:var(--text);border:1px solid var(--gold);padding:1px 6px;margin-inline-start:6px;white-space:nowrap}
.cyours[hidden]{display:none}
.claw{margin:20px 0 0;max-width:760px;font-family:var(--sans);font-size:12.5px;line-height:1.65;font-weight:300;color:var(--muted)}
.claw summary{cursor:pointer;color:var(--text);font-weight:400}
.claw summary:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.claw ul{margin:10px 0 0;padding:0;padding-inline-start:18px;display:flex;flex-direction:column;gap:6px}
@media (max-width:420px){ .cbands th,.cbands td{padding:9px 8px} }

/* A choice, a range and a linked line (job k, stage 2: the mortgage
   eligibility page is the first to need them). The choice is the site's own
   select (site.css gives it the input ground and the text colour in both
   themes), laid in the same box as a number; only its border and size are
   the box's. A range is a legal maximum's row (.orow.down) and may wrap. A
   stored line that leads to another page is underlined like the link beside
   an input. The older calculators draw none of it. */
.cin.cpick select{flex:1;min-width:0;width:100%;border:none;padding:11px 12px;font-size:14.5px}
.cin.cpick select:focus{outline:2px solid var(--gold);outline-offset:-2px}
.clines a{color:var(--gold-deep);text-decoration:underline;text-underline-offset:2px}
.clines a:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
/* a fee of law names its law under its box (pages/tool.html, families/tools.source_of) */
.csrc{margin:0;font-family:var(--sans);font-size:11.5px;font-weight:300;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
