/*
 * כמה עולה לי — shared calculator presentation.
 * The layout is RTL-first: inputs live on the right and the answer on the left
 * at desktop sizes, then become a single calm column on mobile.
 */
.kol-calculator {
  --kol-ink: #294337;
  --kol-ink-soft: #4f5c52;
  --kol-sage: #dbe8d7;
  --kol-line: #ddd0bd;
  box-sizing: border-box;
  color: var(--kol-ink);
  direction: rtl;
  font-family: Assistant, Arial, sans-serif;
  margin: 2rem auto;
  max-width: 71rem;
}

.kol-calculator *,
.kol-calculator *::before,
.kol-calculator *::after {
  box-sizing: inherit;
}

/* Keep Hebrew sentences as true RTL runs, including their final punctuation. */
.kol-calculator p,
.kol-calculator h1,
.kol-calculator h2,
.kol-calculator h3,
.kol-calculator label,
.kol-calculator summary,
.kol-calculator li {
  direction: rtl;
  unicode-bidi: plaintext;
}

.kol-calculator__header {
  max-width: 47rem;
  padding: 0 0 1.5rem;
}

.kol-calculator__eyebrow {
  color: #57735c;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 0.5rem;
}

.kol-calculator__header h1,
.kol-calculator__header h2 {
  color: var(--kol-ink);
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  letter-spacing: -0.025em;
  line-height: 1.14;
  margin: 0 0 0.85rem;
}

.kol-calculator__header > p:last-child {
  color: var(--kol-ink-soft);
  font-size: 1.08rem;
  line-height: 1.65;
  margin: 0;
}

.kol-calculator__data-status {
  align-items: start;
  background: #edf3e9;
  border: 1px solid #d0dfcc;
  border-radius: 1.15rem;
  color: #4d6350;
  display: grid;
  gap: 0.2rem;
  margin: 0 0 1.35rem;
  padding: 1rem 1.2rem;
}

.kol-calculator__data-status p {
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0;
}

.kol-calculator__data-status p:first-child {
  color: #355a3b;
}

.kol-calculator__data-status a {
  color: #355a3b;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.kol-calculator__data-status--review {
  background: #fff0d7;
  border-color: #dcb46d;
  color: #704e1b;
}

.kol-calculator__data-status--review p:first-child,
.kol-calculator__data-status--review a {
  color: #6b4919;
}

.kol-calculator__data-review {
  border-top: 1px solid rgb(112 78 27 / 20%);
  margin-top: 0.35rem !important;
  padding-top: 0.65rem;
}

.kol-data-sources {
  --kol-ink: #294337;
  --kol-ink-soft: #4f5c52;
  color: var(--kol-ink);
  direction: rtl;
  font-family: Assistant, Arial, sans-serif;
  margin: 2.25rem auto;
  max-width: 71rem;
}

.kol-data-sources__header {
  margin-bottom: 1.35rem;
  max-width: 47rem;
}

.kol-data-sources__header h2 {
  color: var(--kol-ink);
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  letter-spacing: -0.025em;
  line-height: 1.14;
  margin: 0 0 0.85rem;
}

.kol-data-sources__header > p:last-child {
  color: var(--kol-ink-soft);
  font-size: 1.06rem;
  line-height: 1.65;
  margin: 0;
}

.kol-calculator__workspace {
  display: grid;
  gap: 1.3rem;
  grid-template-areas: "result form";
  grid-template-columns: minmax(18rem, 0.76fr) minmax(0, 1.24fr);
}

/* Before the first calculation, let the form use the whole width instead of
   reserving an empty result column. The result returns to the left on desktop
   immediately after a successful calculation. */
.kol-calculator__workspace--pending {
  grid-template-areas: "form";
  grid-template-columns: minmax(0, 1fr);
}

/* This covers the first paint as well, before the small enhancement script
   has had a chance to attach the pending class. */
.kol-calculator__workspace:has(.kol-calculator__result[hidden]) {
  grid-template-areas: "form";
  grid-template-columns: minmax(0, 1fr);
}

.kol-calculator__form {
  background: var(--kol-sage);
  border-radius: 1.75rem;
  display: grid;
  gap: 1rem;
  grid-area: form;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: clamp(1.2rem, 3vw, 2rem);
}

.kol-calculator__field {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.kol-calculator__field--wide,
.kol-calculator__submit,
.kol-calculator__error {
  grid-column: 1 / -1;
}

.kol-calculator label {
  color: #425b47;
  font-size: 0.96rem;
  font-weight: 700;
}

.kol-calculator__optional {
  color: #5a665b;
  font-size: 0.86em;
  font-weight: 400;
}

.kol-calculator input,
.kol-calculator select,
.kol-calculator button {
  border: 1px solid transparent;
  border-radius: 0.9rem;
  color: var(--kol-ink);
  font: inherit;
  min-height: 3.15rem;
}

.kol-calculator input,
.kol-calculator select {
  background: #fffaf1;
  border-color: #f0e7d9;
  padding: 0.7rem 0.85rem;
  width: 100%;
}

.kol-calculator input:focus,
.kol-calculator select:focus {
  border-color: #6b8c6d;
  box-shadow: 0 0 0 3px rgb(107 140 109 / 19%);
  outline: 0;
}

/* The message explains the issue; this gives the affected field a clear visual cue too. */
.kol-calculator input[aria-invalid="true"],
.kol-calculator select[aria-invalid="true"] {
  border-color: #a8483d;
  box-shadow: 0 0 0 3px rgb(168 72 61 / 16%);
}

.kol-calculator input[inputmode="decimal"],
.kol-calculator input[inputmode="numeric"] {
  direction: ltr;
  text-align: right;
  unicode-bidi: isolate;
}

.kol-calculator__numeric {
  direction: ltr;
  display: inline-block;
  unicode-bidi: isolate;
}

.kol-calculator__input-with-unit {
  align-items: center;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.kol-calculator__input-with-unit span {
  color: #506452;
  font-size: 0.9rem;
  white-space: nowrap;
}

.kol-calculator__hint {
  color: #4d5f50;
  font-size: 0.875rem;
  line-height: 1.42;
  margin: 0;
}

.kol-calculator__return-guidance {
  background: rgb(255 250 241 / 58%);
  border: 1px solid rgb(240 231 217 / 88%);
  border-radius: 1rem;
  display: grid;
  gap: 0.65rem;
  margin-top: 0.15rem;
  padding: 0.85rem;
}

.kol-calculator__return-guidance-title {
  color: #425b47;
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0;
}

.kol-calculator__return-presets {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kol-calculator button.kol-calculator__return-preset {
  align-items: center;
  background: #fffaf1;
  border-color: #d8cbb8;
  color: #355a3b;
  cursor: pointer;
  display: grid;
  font-size: 0.86rem;
  font-weight: 700;
  gap: 0.08rem;
  line-height: 1.2;
  min-height: 3.35rem;
  padding: 0.45rem;
}

.kol-calculator__return-preset bdi {
  color: #57735c;
  font-size: 1rem;
  font-weight: 800;
}

.kol-calculator button.kol-calculator__return-preset:hover,
.kol-calculator button.kol-calculator__return-preset[aria-pressed="true"] {
  background: #eef5e9;
  border-color: #6b8c6d;
}

.kol-calculator button.kol-calculator__return-preset:focus-visible {
  box-shadow: 0 0 0 3px rgb(107 140 109 / 22%);
  outline: 0;
}

.kol-calculator__device-fieldset {
  border: 0;
  display: grid;
  gap: 0.8rem;
  margin: 0;
  min-inline-size: 0;
  padding: 0;
}

.kol-calculator__device-fieldset legend {
  color: #425b47;
  font-size: 0.96rem;
  font-weight: 700;
  padding: 0;
}

.kol-calculator__device-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kol-calculator__device-grid label {
  align-items: center;
  background: rgb(255 250 241 / 58%);
  border: 1px solid rgb(240 231 217 / 88%);
  border-radius: 0.8rem;
  display: grid;
  gap: 0.4rem;
  grid-template-columns: minmax(0, 1fr) 3.1rem;
  min-height: 3.55rem;
  padding: 0.55rem 0.65rem;
}

.kol-calculator__device-grid label span {
  font-size: 0.86rem;
  line-height: 1.25;
}

.kol-calculator__device-grid input[inputmode="numeric"] {
  min-height: 2.3rem;
  padding: 0.35rem;
  text-align: center;
}

.kol-calculator__submit {
  background: var(--kol-ink);
  color: #fff9ef;
  cursor: pointer;
  font-weight: 700;
  margin-top: 0.25rem;
  padding: 0.75rem 1.1rem;
  transition: background 160ms ease, transform 160ms ease;
}

/* The generic button rule also sets a text color. This selector is deliberately
 * more specific so the primary action never looks blank on its dark surface. */
.kol-calculator button.kol-calculator__submit {
  color: #fff9ef;
}

.kol-calculator__submit:hover {
  background: #20382d;
}

.kol-calculator__submit:focus-visible {
  box-shadow: 0 0 0 3px rgb(41 67 55 / 22%);
  outline: 2px solid #f8f1e5;
  outline-offset: -6px;
}

.kol-calculator__submit:active {
  transform: translateY(1px);
}

.kol-calculator button.kol-calculator__submit:disabled {
  background: #68796d;
  color: #f6f2e9;
  cursor: not-allowed;
  opacity: 0.82;
}

.kol-calculator__error {
  color: #8b332a;
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

.kol-calculator__error:empty {
  display: none;
}

.kol-calculator__result {
  background: var(--kol-ink);
  border-radius: 1.75rem;
  color: #ecf0e8;
  grid-area: result;
  min-width: 0;
  padding: clamp(1.35rem, 3vw, 2rem);
}

.kol-calculator__result[hidden] {
  display: none;
}

.kol-calculator__result-label {
  color: #c4d9bd;
  font-size: 0.97rem;
  font-weight: 700;
  margin: 0 0 1.15rem;
}

.kol-calculator__result-total {
  align-items: baseline;
  color: #fff8ec;
  display: flex;
  flex-wrap: wrap;
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  font-weight: 700;
  gap: 0.5rem;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
}

.kol-calculator__result-period {
  color: #d1e0cb;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
}

.kol-calculator__result-summary {
  color: #d2e1cd;
  font-size: 0.94rem;
  line-height: 1.5;
  margin: 0.85rem 0 0;
}

.kol-calculator__breakdown {
  border-top: 1px solid rgb(218 232 214 / 25%);
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
  margin: 1.65rem 0 0;
  padding-top: 1.35rem;
}

.kol-calculator__breakdown div {
  align-items: baseline;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.kol-calculator__breakdown dt {
  color: #d2e1cd;
  font-size: 0.93rem;
}

.kol-calculator__breakdown dd {
  color: #fff9ef;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  text-align: left;
}

.kol-calculator__breakdown--key {
  gap: 1rem;
  margin-top: 1.3rem;
}

.kol-calculator__breakdown--key dt {
  color: #e3ece0;
  font-size: 1rem;
  font-weight: 600;
}

.kol-calculator__breakdown--key dd {
  font-size: 1.13rem;
}

.kol-calculator__goal {
  background: rgb(232 216 186 / 16%);
  border: 1px solid rgb(242 225 189 / 22%);
  border-radius: 0.9rem;
  color: #f2e1bd;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
  margin: 1.15rem 0 0;
  padding: 0.8rem 0.9rem;
}

.kol-calculator__goal[hidden] {
  display: none;
}

.kol-calculator__result-details {
  border-top: 1px solid rgb(218 232 214 / 25%);
  margin-top: 1.35rem;
  padding-top: 1rem;
}

.kol-calculator__result-details summary {
  align-items: center;
  color: #d2e1cd;
  cursor: pointer;
  display: flex;
  font-size: 0.95rem;
  font-weight: 700;
  min-height: 2.75rem;
}

.kol-calculator__result-details summary:focus-visible {
  border-radius: 0.3rem;
  outline: 2px solid #ecf0e8;
  outline-offset: 0.2rem;
}

.kol-calculator__result-details .kol-calculator__breakdown {
  margin-top: 1rem;
  padding-top: 0;
}

.kol-calculator__saving {
  background: rgb(232 216 186 / 12%);
  border-radius: 0.75rem;
  color: #f2e1bd;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 1.35rem 0 0;
  padding: 0.75rem 0.85rem;
}

.kol-calculator__result-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.35rem;
}

.kol-calculator__share,
.kol-calculator__reset {
  align-items: center;
  background: transparent;
  border: 1px solid rgb(236 240 232 / 50%);
  border-radius: 0.9rem;
  color: #ecf0e8;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.6rem 0.95rem;
  transition: background 160ms ease, border-color 160ms ease;
}

.kol-calculator__share svg {
  flex: 0 0 auto;
  height: 1.05rem;
  width: 1.05rem;
}

.kol-calculator__share:hover,
.kol-calculator__reset:hover {
  background: rgb(236 240 232 / 10%);
  border-color: rgb(236 240 232 / 55%);
}

.kol-calculator__share:focus-visible,
.kol-calculator__reset:focus-visible {
  outline: 2px solid #ecf0e8;
  outline-offset: 2px;
}

.kol-calculator__share[data-kol-share-done] {
  background: rgb(236 240 232 / 16%);
  border-color: rgb(236 240 232 / 55%);
}

.kol-calculator__chart-wrap {
  margin-top: 1.65rem;
}

.kol-calculator__chart-wrap[hidden] {
  display: none;
}

.kol-calculator__chart-title {
  color: #d2e1cd;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
}

.kol-calculator__chart {
  color: #ecf0e8;
  min-height: 3rem;
}

.kol-calculator__chart svg {
  display: block;
  height: auto;
  /* All labels are drawn inside the viewBox. Clipping here prevents a long
     RTL label from escaping the result card if a browser renders SVG text differently. */
  overflow: hidden;
  width: 100%;
}

.kol-calculator__chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
}

.kol-calculator__chart-legend li {
  align-items: center;
  color: #d2e1cd;
  display: inline-flex;
  font-size: 0.875rem;
  gap: 0.4rem;
}

.kol-calculator__chart-swatch {
  border-radius: 50%;
  flex: 0 0 auto;
  height: 0.6rem;
  width: 0.6rem;
}

.kol-calculator__methodology,
.kol-calculator__note {
  background: #f1e4cf;
  border-radius: 1.35rem;
  margin-top: 1.3rem;
  padding: 1.15rem 1.3rem;
}

.kol-calculator__methodology summary {
  align-items: center;
  color: #3c593f;
  cursor: pointer;
  display: flex;
  font-weight: 700;
  min-height: 2.75rem;
}

.kol-calculator__methodology summary:focus-visible {
  border-radius: 0.35rem;
  outline: 3px solid #426c48;
  outline-offset: 0.2rem;
}

.kol-calculator__methodology p,
.kol-calculator__note p {
  color: #58685b;
  font-size: 0.98rem;
  line-height: 1.62;
  margin: 0.85rem 0 0;
}

.kol-calculator__methodology p:last-child,
.kol-calculator__note p:last-child {
  margin-bottom: 0;
}

.kol-calculator__note {
  background: transparent;
  border: 1px solid var(--kol-line);
}

.kol-calculator__note p:first-child {
	margin-top: 0;
}

/* The calculator-specific reading section gives context without repeating form
   labels or looking like a second calculator. */
.content-page__body .kol-content-depth {
	color: #415245;
	direction: rtl;
	margin: 2.65rem auto 1.8rem;
	max-width: 52rem;
	text-align: right;
	unicode-bidi: plaintext;
}

.content-page__body .kol-content-depth > h2 {
	color: var(--kol-ink);
	font-size: clamp(1.68rem, 3.2vw, 2.15rem);
	letter-spacing: -0.02em;
	line-height: 1.25;
	margin: 0 0 0.85rem;
}

.content-page__body .kol-content-depth__lead {
	color: #355a3b;
	font-size: clamp(1.1rem, 2vw, 1.28rem);
	font-weight: 600;
	line-height: 1.72;
	margin: 0 0 1.7rem;
	max-width: 48rem;
}

.content-page__body .kol-content-depth__section h2,
.content-page__body .kol-content-depth__source h2 {
	color: #294337;
	font-size: clamp(1.3rem, 2.6vw, 1.68rem);
	line-height: 1.3;
	margin: 2rem 0 0.65rem;
}

.content-page__body .kol-content-depth p,
.content-page__body .kol-content-depth li {
	line-height: 1.72;
}

.content-page__body .kol-content-depth ul {
	margin: 0.8rem 0 1.1rem;
	padding-right: 1.35rem;
}

.content-page__body .kol-content-depth li + li {
	margin-top: 0.42rem;
}

.content-page__body .kol-content-depth__guide {
	margin: 1.8rem 0 0;
}

.content-page__body .kol-content-depth__guide a {
	color: #2d5837;
	font-weight: 800;
}

.content-page__body .kol-content-depth__source {
	background: #edf3e9;
	border: 1px solid #d0dfcc;
	border-radius: 1.15rem;
	color: #405a45;
	margin-top: 2rem;
	padding: 1rem 1.15rem;
}

.content-page__body .kol-content-depth__source h2 {
	font-size: 1.08rem;
	margin: 0 0 0.38rem;
}

.content-page__body .kol-content-depth__source p {
	font-size: 0.94rem;
	margin: 0;
}

.content-page__body .kol-content-depth__source span {
	white-space: normal;
}

/* Unified calculator guidance. A calculator page inherits centered display
   styles from some WordPress themes, so this reading area deliberately locks
   its own RTL alignment and type scale instead of letting a FAQ turn into a
   sequence of oversized centred paragraphs on a phone. */
.content-page__body .kol-rich-content,
.content-page__body .kol-methodology {
	color: #415245;
	direction: rtl;
	margin: 3.15rem auto 2.15rem;
	max-width: 52rem;
	text-align: right;
	unicode-bidi: plaintext;
}

.content-page__body .kol-rich-content :is(h2, h3, h4, h5, p, li, a, summary),
.content-page__body .kol-methodology :is(h2, h3, h4, p, li, a, summary),
.content-page__body .kol-content-depth :is(h2, h3, h4, p, li, a, summary) {
	direction: rtl;
	text-align: right;
	unicode-bidi: plaintext;
}

.content-page__body .kol-rich-content > h2,
.content-page__body .kol-methodology > h2 {
	color: #294337;
	font-size: clamp(1.65rem, 5vw, 2.28rem);
	letter-spacing: -0.022em;
	line-height: 1.24;
	margin: 0 0 0.9rem;
}

.content-page__body .kol-rich-content__eyebrow,
.content-page__body .kol-content-depth__eyebrow {
	color: #55735a;
	font-size: 0.875rem;
	font-weight: 800;
	letter-spacing: 0.035em;
	margin: 0 0 0.48rem;
}

.content-page__body .kol-rich-content__intro,
.content-page__body .kol-methodology__lead {
	color: #355a3b;
	font-size: clamp(1.06rem, 2vw, 1.16rem);
	font-weight: 600;
	line-height: 1.7;
	margin: 0 0 1.75rem;
	max-width: 52rem;
}

.content-page__body .kol-rich-content h3,
.content-page__body .kol-methodology h3 {
	color: #294337;
	font-size: clamp(1.25rem, 2.55vw, 1.56rem);
	line-height: 1.32;
	margin: 2.15rem 0 0.7rem;
}

.content-page__body .kol-rich-content h4 {
	color: #2d5837;
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.38;
	margin: 0 0 0.62rem;
}

.content-page__body .kol-rich-content h5 {
	color: #294337;
	font-size: 1.06rem;
	font-weight: 800;
	line-height: 1.38;
	margin: 0 0 0.38rem;
}

.content-page__body .kol-rich-content p,
.content-page__body .kol-rich-content li,
.content-page__body .kol-methodology p,
.content-page__body .kol-methodology li {
	font-size: 1rem;
	line-height: 1.7;
}

.content-page__body .kol-rich-content__section > p + p,
.content-page__body .kol-methodology section > p + p {
	margin-top: 0.9rem;
}

.content-page__body .kol-rich-content__decision {
	background: #edf3e9;
	border: 1px solid #d0dfcc;
	border-radius: 1.25rem;
	margin: 1.8rem 0 2.25rem;
	padding: clamp(1rem, 3vw, 1.35rem);
}

.content-page__body .kol-rich-content__decision h3 {
	font-size: 1.28rem;
	margin: 0 0 0.42rem;
}

.content-page__body .kol-rich-content__decision > p {
	color: #405a45;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.7;
	margin: 0;
}

.content-page__body .kol-rich-content__decision > h4 {
	font-size: 1.05rem;
	margin: 1.25rem 0 0.7rem;
}

.content-page__body .kol-rich-content__check-grid {
	display: grid;
	gap: 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.content-page__body .kol-rich-content__check-card {
	align-items: start;
	background: #fffdf8;
	border: 1px solid #d0dfcc;
	border-inline-start: 4px solid #6b8c6d;
	border-radius: 0.95rem;
	display: grid;
	gap: 0.8rem;
	grid-template-columns: 2.05rem minmax(0, 1fr);
	margin: 0;
	padding: 0.9rem;
}

.content-page__body .kol-rich-content__check-card > span {
	align-items: center;
	background: #294337;
	border-radius: 50%;
	color: #fffaf0;
	display: inline-flex;
	font-size: 0.86rem;
	font-weight: 800;
	height: 1.95rem;
	justify-content: center;
	line-height: 1;
	width: 1.95rem;
}

.content-page__body .kol-rich-content__check-card p,
.content-page__body .kol-rich-content__check-card ul {
	margin: 0;
}

.content-page__body .kol-rich-content__check-card ul {
	padding-right: 1.1rem;
}

.content-page__body .kol-rich-content__scenarios > p {
	margin-bottom: 1rem;
}

.content-page__body .kol-rich-content__scenario-grid {
	display: grid;
	gap: 0.9rem;
	grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.content-page__body .kol-rich-content__discussion-grid {
	display: grid;
	gap: 0.8rem;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.content-page__body .kol-rich-content__scenario {
	background: #fffdf8;
	border: 1px solid #ddd0bd;
	border-radius: 1.05rem;
	padding: 1rem 1.1rem;
}

.content-page__body .kol-rich-content__discussion article {
	background: #f5f8f3;
	border-inline-start: 4px solid #9bb991;
	border-radius: 0.75rem;
	padding: 0.9rem 1rem;
}

.content-page__body .kol-rich-content__discussion article p {
	margin: 0;
}

.content-page__body .kol-rich-content__scenario ul,
.content-page__body .kol-rich-content__checklist ul,
.content-page__body .kol-rich-content__sources ul,
.content-page__body .kol-rich-content__mistakes ol {
	margin: 0.65rem 0 0.85rem;
	padding-right: 1.25rem;
}

.content-page__body .kol-rich-content__scenario li + li,
.content-page__body .kol-rich-content__checklist li + li,
.content-page__body .kol-rich-content__sources li + li,
.content-page__body .kol-rich-content__mistakes li + li {
	margin-top: 0.35rem;
}

.content-page__body .kol-rich-content__scenario p {
	border-top: 1px solid #e7dccb;
	margin: 0.85rem 0 0;
	padding-top: 0.75rem;
}

.content-page__body .kol-rich-content__explainers {
	margin-top: 2.3rem;
}

.content-page__body .kol-rich-content__explainers > h3 {
	margin-top: 0;
}

.content-page__body .kol-rich-content__section {
	border-top: 1px solid #e1e7dc;
	margin-top: 1.1rem;
	padding-top: 1.1rem;
}

.content-page__body .kol-rich-content__checklist,
.content-page__body .kol-rich-content__sources {
	background: #edf3e9;
	border: 1px solid #d0dfcc;
	border-radius: 1.15rem;
	color: #405a45;
	margin-top: 2rem;
	padding: 1rem 1.15rem;
}

.content-page__body .kol-rich-content__mistakes {
	background: #fff7ec;
	border: 1px solid #ead8bd;
	border-radius: 1.15rem;
	color: #5d4c38;
	margin-top: 2rem;
	padding: 1rem 1.15rem;
}

.content-page__body .kol-rich-content__mistakes h3 {
	font-size: 1.1rem;
	margin: 0 0 0.35rem;
}

.content-page__body .kol-rich-content__checklist h3,
.content-page__body .kol-rich-content__sources h3 {
	font-size: 1.1rem;
	margin: 0 0 0.35rem;
}

.content-page__body .kol-rich-content__sources span {
	font-size: 0.92em;
	white-space: normal;
}

.content-page__body .kol-rich-content__source-kind {
	background: #d9e8d4;
	border-radius: 999px;
	color: #355a3b;
	display: inline-block;
	font-size: 0.875em !important;
	font-weight: 800;
	line-height: 1.35;
	margin-inline: 0.2rem;
	padding: 0.08rem 0.45rem;
}

.content-page__body .kol-rich-content__faq {
	margin-top: 2.2rem;
}

.content-page__body .kol-rich-content__faq > h3 {
	margin-bottom: 0.75rem;
}

.content-page__body .kol-rich-content__faq details {
	background: #fffdf8;
	border: 1px solid #ddd0bd;
	border-radius: 0.9rem;
	margin-top: 0.7rem;
	overflow: hidden;
}

.content-page__body .kol-rich-content__faq summary {
	align-items: center;
	color: #294337;
	cursor: pointer;
	display: grid;
	font-size: 1rem;
	font-weight: 800;
	gap: 0.75rem;
	grid-template-columns: minmax(0, 1fr) auto;
	line-height: 1.45;
	min-height: 3.25rem;
	padding: 0.8rem 1rem;
}

.content-page__body .kol-rich-content__faq summary::-webkit-details-marker {
	display: none;
}

.content-page__body .kol-rich-content__faq summary::after {
	color: #355a3b;
	content: "+";
	font-size: 1.35rem;
	font-weight: 400;
	line-height: 1;
}

.content-page__body .kol-rich-content__faq details[open] summary::after {
	content: "−";
}

.content-page__body .kol-rich-content__faq summary:focus-visible {
	box-shadow: inset 0 0 0 3px #426c48;
	outline: 0;
}

.content-page__body .kol-rich-content__faq-answer {
	border-top: 1px solid #e1e7dc;
	padding: 0.85rem 1rem 1rem;
}

.content-page__body .kol-rich-content__faq p,
.content-page__body .kol-rich-content__method-link,
.content-page__body .kol-methodology__links {
	margin: 0;
}

.content-page__body .kol-rich-content__method-link,
.content-page__body .kol-methodology__links {
	margin-top: 1.85rem;
}

.content-page__body .kol-rich-content__method-link a,
.content-page__body .kol-methodology__links a {
	color: #2d5837;
	font-weight: 800;
}

@media (max-width: 44rem) {
	.content-page__body .kol-rich-content,
	.content-page__body .kol-methodology,
	.content-page__body .kol-content-depth {
		margin: 2.25rem 0;
		max-width: none;
	}

	.content-page__body .kol-rich-content__scenario-grid,
	.content-page__body .kol-rich-content__discussion-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.content-page__body .kol-rich-content__check-card {
		gap: 0.7rem;
		padding: 0.85rem;
	}
}

/* Supporting page copy stays available without repeating the form labels. */
.content-page__body .kol-page-details {
	background: #f1e4cf;
	border-radius: 1.15rem;
	color: #3c593f;
	margin: 1.4rem 0;
	padding: 1rem 1.2rem;
	text-align: right;
}

.content-page__body .kol-page-details summary {
	align-items: center;
	cursor: pointer;
	display: flex;
	font-weight: 800;
	min-height: 2.75rem;
	text-align: right;
}

.content-page__body .kol-page-details summary:focus-visible {
	border-radius: 0.35rem;
	outline: 3px solid #426c48;
	outline-offset: 0.2rem;
}

.content-page__body .kol-page-details ul {
	color: #58685b;
	font-size: 0.95rem;
	line-height: 1.65;
	margin: 0.9rem 0 0;
	padding-right: 1.2rem;
}

.content-page__body .kol-page-faq {
	margin-top: 2.15rem;
}

.content-page__body .kol-page-faq h2 {
	color: var(--kol-ink);
	font-size: clamp(1.55rem, 3vw, 2rem);
	margin: 0 0 1rem;
}

.content-page__body .kol-page-faq h3 {
	color: #355a3b;
	font-size: 1.08rem;
	margin: 1.15rem 0 0.3rem;
}

.content-page__body .kol-page-faq p {
	color: #58685b;
	font-size: 0.98rem;
	line-height: 1.6;
}

.content-page__body .kol-related-calculators {
	margin-top: 2.4rem;
	text-align: right;
}

.content-page__body .kol-related-calculators h2 {
	color: var(--kol-ink);
	font-size: clamp(1.55rem, 3vw, 2rem);
	margin: 0 0 1rem;
	text-align: right;
}

.content-page__body .kol-related-calculators__grid {
	display: grid;
	gap: 0.8rem;
	grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
}

.content-page__body .kol-related-calculators__card {
	align-items: center;
	background: #fffdf8;
	border: 1px solid #ddd0bd;
	border-radius: 1rem;
	color: #294337;
	display: flex;
	font-weight: 800;
	line-height: 1.35;
	min-height: 4.6rem;
	padding: 0.9rem 1rem;
	text-decoration: none;
	transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.content-page__body .kol-related-calculators__card:hover {
	background: #f4f7f0;
	border-color: #6b8c6d;
	transform: translateY(-2px);
}

.content-page__body .kol-related-calculators__card:focus-visible {
	box-shadow: 0 0 0 0.22rem #fbf5ea, 0 0 0 0.42rem #426c48;
	outline: 0;
}

/* Long-form guides use the same calm visual language as the calculators, but
   keep the reading flow deliberately simple on a small screen. */
.content-page__body .kol-guide {
	color: #415245;
	direction: rtl;
	margin-inline: auto;
	max-width: 52rem;
	text-align: right;
	unicode-bidi: plaintext;
}

.content-page__body .kol-guides-hub {
	margin-inline: auto;
	max-width: 52rem;
	text-align: right;
}

.content-page__body .kol-guide__lead,
.content-page__body .kol-guides-hub > .kol-guide__lead {
	color: #355a3b;
	font-size: clamp(1.14rem, 2.1vw, 1.34rem);
	font-weight: 600;
	line-height: 1.72;
	margin: 0 0 2rem;
	max-width: 48rem;
}

.content-page__body .kol-guide section > h2,
.content-page__body .kol-guides-hub h2 {
	color: #294337;
	font-size: clamp(1.55rem, 3vw, 2rem);
	letter-spacing: -0.02em;
	line-height: 1.25;
	margin: 2.35rem 0 0.8rem;
}

.content-page__body .kol-guide p,
.content-page__body .kol-guide li {
	line-height: 1.72;
}

.content-page__body .kol-guide ul,
.content-page__body .kol-guide ol {
	margin: 0.9rem 0 1.25rem;
	padding-right: 1.35rem;
}

.content-page__body .kol-guide li + li {
	margin-top: 0.45rem;
}

.content-page__body .kol-guide__callout {
	background: #edf3e9;
	border: 1px solid #d0dfcc;
	border-radius: 1.15rem;
	color: #405a45;
	line-height: 1.65;
	margin: 2rem 0;
	padding: 1rem 1.15rem;
}

.content-page__body .kol-guide__callout strong {
	color: #2d5837;
}

.content-page__body .kol-guide-links {
	margin-top: 2.45rem;
}

.content-page__body .kol-guide-links h2 {
	color: #294337;
	font-size: clamp(1.42rem, 2.7vw, 1.8rem);
	margin: 0 0 1rem;
}

.content-page__body .kol-guide-links__grid,
.content-page__body .kol-guides-hub__grid {
	display: grid;
	gap: 0.8rem;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.content-page__body .kol-guide-links__card {
	background: #fffdf8;
	border: 1px solid #ddd0bd;
	border-radius: 1rem;
	color: #294337;
	display: block;
	min-height: 5.1rem;
	padding: 1rem 1.05rem;
	text-decoration: none;
	transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.content-page__body .kol-guide-links__card strong,
.content-page__body .kol-guide-links__card span {
	display: block;
}

.content-page__body .kol-guide-links__card strong {
	font-weight: 800;
	line-height: 1.4;
}

.content-page__body .kol-guide-links__card span {
	color: #58685b;
	font-size: 0.92rem;
	line-height: 1.5;
	margin-top: 0.38rem;
}

.content-page__body .kol-guide-links__card:hover {
	background: #f4f7f0;
	border-color: #6b8c6d;
	text-decoration: none;
	transform: translateY(-2px);
}

.content-page__body .kol-guide-links__card:focus-visible {
	box-shadow: 0 0 0 0.22rem #fbf5ea, 0 0 0 0.42rem #426c48;
	outline: 0;
}

.content-page__body .kol-guide__all-link {
	margin-top: 2.2rem;
}

@media (max-width: 44rem) {
  .kol-calculator {
    margin-inline: 0;
  }

  .kol-calculator__workspace {
    grid-template-areas:
      "form"
      "result";
    grid-template-columns: minmax(0, 1fr);
  }

  .kol-calculator__workspace--pending {
    grid-template-areas: "form";
  }

  .kol-calculator__form {
    border-radius: 1.35rem;
    grid-template-columns: minmax(0, 1fr);
  }

  .kol-calculator__result {
    border-radius: 1.35rem;
  }

  .kol-calculator__device-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 30rem) {
  .kol-calculator__header > p:last-child {
    font-size: 1rem;
  }

  .kol-calculator__data-status,
  .kol-calculator__methodology,
  .kol-calculator__note {
    border-radius: 1rem;
  }

  .kol-calculator__input-with-unit {
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr);
  }

  .kol-calculator__input-with-unit span {
    padding-inline: 0.15rem;
  }

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

  .kol-calculator__return-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
	.content-page__body .kol-related-calculators__card {
		transition: none;
	}

	.content-page__body .kol-related-calculators__card:hover {
		transform: none;
	}

	.content-page__body .kol-guide-links__card {
		transition: none;
	}

	.content-page__body .kol-guide-links__card:hover {
		transform: none;
	}

  .kol-calculator__submit {
    transition: none;
  }
}

/* Original worked examples: contained tables remain usable on narrow screens. */
.kol-worked-example__table { overflow-x:auto; max-width:100%; margin:1.4rem 0; border:1px solid #d8e1d4; border-radius:12px; }
.kol-worked-example__table table { width:100%; border-collapse:collapse; font-size:0.96rem; }
.kol-worked-example__table caption { text-align:start; font-weight:700; padding:1rem; color:#193928; background:#f0f4eb; }
.kol-worked-example__table th,.kol-worked-example__table td { text-align:start; vertical-align:top; padding:.8rem; border-bottom:1px solid #d8e1d4; }
.kol-worked-example__table th { font-weight:700; }
.kol-worked-example__table bdi { white-space:nowrap; }
.kol-worked-example__table:focus-visible { outline:3px solid #296a46; outline-offset:3px; }
.kol-worked-explanation section { margin-block:1.5rem; }
.kol-worked-explanation p { line-height:1.85; }
