/* Sigma Earth carbon footprint calculator. Scoped to .se-cfc so the theme is untouched. */
.se-cfc { --se-green: #1c7523; --se-green-dark: #14551a; --se-ink: #212427; --se-muted: #5b6560;
	--se-line: #dde6de; --se-tint: #f2f8f2; --se-warn: #b9622b;
	font-size: 16px; line-height: 1.55; color: var(--se-ink); max-width: 1100px; margin: 0 auto 2.5rem; }
.se-cfc *, .se-cfc *::before, .se-cfc *::after { box-sizing: border-box; }
/* Two columns only when there is genuinely room: inside the theme's content column (~940px with the
   sidebar) two columns would leave each field cramped, so stack instead. */
.se-cfc-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
@media (min-width: 1180px) { .se-cfc-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }

.se-cfc fieldset { border: 1px solid var(--se-line); border-radius: 14px; padding: 18px 20px 20px; margin: 0 0 18px; background: #fff; }
.se-cfc legend { font-weight: 700; font-size: 1.02rem; color: var(--se-green); padding: 0 8px; }
.se-cfc-field { display: grid; grid-template-columns: 1fr 128px; gap: 10px 14px; align-items: center; margin: 12px 0 0; }
.se-cfc-field label { font-size: .95rem; }
.se-cfc-field .se-cfc-hint { grid-column: 1 / -1; font-size: .82rem; color: var(--se-muted); margin-top: -6px; }
.se-cfc input[type="number"], .se-cfc select {
	width: 100%; padding: 9px 11px; border: 1px solid var(--se-line); border-radius: 9px;
	font: inherit; font-size: .95rem; color: var(--se-ink); background: #fff; }
.se-cfc-field select { grid-column: 1 / -1; }
.se-cfc-field.wide { grid-template-columns: 1fr; }
.se-cfc input:focus-visible, .se-cfc select:focus-visible, .se-cfc button:focus-visible {
	outline: 3px solid rgba(28, 117, 35, .35); outline-offset: 2px; }

.se-cfc-results { border: 1px solid var(--se-line); border-radius: 16px; overflow: hidden; background: #fff; }
@media (min-width: 1180px) { .se-cfc-results { position: sticky; top: 96px; } }
/* Stacked layout: put the fields side by side so the form does not become one long ribbon. */
@media (max-width: 1179px) {
	.se-cfc form { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 18px; align-items: start; }
	.se-cfc-results { max-width: 640px; }
}
.se-cfc-total-box { background: var(--se-green); color: #fff; padding: 22px 24px; }
.se-cfc-total { font-size: 2.9rem; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.se-cfc-total-note { font-size: .82rem; opacity: .92; margin-top: 6px; }
.se-cfc-results h3 { font-size: 1rem; margin: 20px 24px 10px; color: var(--se-ink); }
.se-cfc-section { padding: 0 24px 4px; }
.se-cfc-row { margin-bottom: 12px; }
.se-cfc-row-head { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 5px; }
.se-cfc-row-val { font-variant-numeric: tabular-nums; font-weight: 600; }
.se-cfc-row-val small { color: var(--se-muted); font-weight: 400; }
.se-cfc-bar { background: var(--se-tint); border-radius: 999px; height: 9px; overflow: hidden; }
.se-cfc-bar > span { display: block; height: 100%; background: var(--se-green); border-radius: 999px; }

.se-cfc-cmp { display: grid; grid-template-columns: 120px 1fr 62px; gap: 10px; align-items: center; margin-bottom: 9px; font-size: .86rem; }
.se-cfc-cmp-label { color: var(--se-muted); }
.se-cfc-cmp-bar { background: var(--se-tint); border-radius: 999px; height: 9px; overflow: hidden; }
.se-cfc-cmp-bar > span { display: block; height: 100%; border-radius: 999px; background: #9bb7a0; }
.se-cfc-cmp.you .se-cfc-cmp-bar > span { background: var(--se-green); }
.se-cfc-cmp.target .se-cfc-cmp-bar > span { background: var(--se-warn); }
.se-cfc-cmp-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

.se-cfc-tips { margin: 4px 24px 18px; padding-left: 18px; font-size: .9rem; }
.se-cfc-tips li { margin-bottom: 8px; }
.se-cfc-actions { display: flex; gap: 10px; padding: 0 24px 22px; flex-wrap: wrap; }
.se-cfc button { font: inherit; font-size: .9rem; font-weight: 600; border-radius: 999px; padding: 9px 18px; cursor: pointer; border: 1px solid var(--se-green); }
.se-cfc-btn-primary { background: var(--se-green); color: #fff; }
.se-cfc-btn-primary:hover { background: var(--se-green-dark); }
.se-cfc-btn-ghost { background: #fff; color: var(--se-green); }
.se-cfc-btn-ghost:hover { background: var(--se-tint); }

.se-cfc-method { margin-top: 26px; border: 1px solid var(--se-line); border-radius: 14px; background: var(--se-tint); padding: 4px 20px; }
.se-cfc-method summary { cursor: pointer; font-weight: 700; padding: 14px 0; color: var(--se-green); }
.se-cfc-method table { width: 100%; border-collapse: collapse; font-size: .86rem; margin: 8px 0 16px; display: block; overflow-x: auto; }
.se-cfc-method th, .se-cfc-method td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--se-line); white-space: nowrap; }
.se-cfc-method th { color: var(--se-muted); font-weight: 600; }
.se-cfc-note { font-size: .84rem; color: var(--se-muted); margin: 10px 0 16px; }
