/* Shared article/calculator UI. Inherits the site's v3 theme. */
[data-design] .rg-fuel { margin-block:var(--v3-space-xl); padding:var(--v3-space-md); background:var(--v3-canvas); border:var(--v3-hairline) solid var(--v3-line); border-radius:var(--v3-radius); font:var(--v3-body)/1.65 var(--v3-font); }
[data-design] .rg-fuel h2 { margin:0 0 var(--v3-space-sm); text-align:left; font-size:var(--v3-subtitle); }
.rg-fuel p { margin:0 0 var(--v3-space-sm); }
.rg-fuel-kicker { font-size:var(--v3-caption); font-weight:750; color:var(--v3-brand); }
.rg-fuel-layout { display:grid; gap:var(--v3-space-md); margin-top:var(--v3-space-md); align-items:start; }
.rg-fuel-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--v3-space-sm); align-items:start; }
.rg-fuel-field { display:flex; flex-direction:column; gap:var(--v3-space-xs); min-width:0; font-size:var(--v3-caption); font-weight:650; }
.rg-fuel-field>span:first-child { min-height:2.5em; display:flex; align-items:end; }
.rg-fuel-input { display:flex; align-items:center; border:var(--v3-hairline) solid var(--v3-border-strong); border-radius:var(--v3-control-radius); background:var(--v3-paper); min-width:0; }
.rg-fuel-input>span { font-size:var(--v3-caption); color:var(--v3-muted); padding-inline:var(--v3-space-xs); flex-shrink:0; }
[data-design] .rg-fuel input,[data-design] .rg-fuel select { min-width:0; width:100%; height:var(--v3-control-height); padding:var(--v3-space-xs); font:inherit; color:var(--v3-ink); background:var(--v3-paper); border-radius:var(--v3-control-radius); }
[data-design] #fuel-calculator .rg-fuel-input input[type="number"] { border:0; box-shadow:none; margin:0; }
[data-design] .rg-fuel select { border:var(--v3-hairline) solid var(--v3-border-strong); }
[data-design] .rg-fuel :is(input,select) { font-size:var(--v3-body); }
.rg-fuel-input:focus-within { outline:var(--rg-focus); outline-offset:var(--v3-focus-offset); }
[data-design] .rg-fuel input:focus { outline:none; }
.rg-fuel input[aria-invalid="true"] { background:var(--v3-error-surface); }
.rg-fuel-input:has([aria-invalid="true"]) { border-color:var(--v3-error); }
.rg-fuel-source,.rg-fuel-hint,.rg-fuel-prices>p,.rg-fuel-more>p { font-size:var(--v3-caption); color:var(--v3-muted); }
.rg-fuel-source { margin-top:var(--v3-space-sm)!important; }
.rg-fuel-reset { padding:var(--v3-space-xs) 0; min-height:var(--v3-control-height); border:0; background:transparent; color:var(--v3-brand); text-decoration:underline; text-underline-offset:.2em; cursor:pointer; font:inherit; }
.rg-fuel-reset:hover { color:var(--v3-action-hover); }
.rg-fuel-reset:active { color:var(--v3-action-active); }
.rg-fuel-more,.rg-fuel-prices { border-top:var(--v3-hairline) solid var(--v3-line); margin-top:var(--v3-space-md); padding-top:var(--v3-space-sm); }
.rg-fuel summary { cursor:pointer; padding-block:var(--v3-space-sm); font-weight:750; color:var(--v3-ink); }
.rg-fuel summary:hover { color:var(--v3-brand); }
.rg-fuel-result { border-radius:var(--v3-radius); padding:var(--v3-space-md); background:var(--v3-soft); min-width:0; }
.rg-fuel-total { display:block; font-size:var(--v3-hero); line-height:1.2; font-weight:800; overflow-wrap:anywhere; margin-block:var(--v3-space-xs); }
.rg-fuel-result dl { margin:var(--v3-space-md) 0; }
.rg-fuel-result dl>div { border-top:var(--v3-hairline) solid var(--v3-line); padding-block:var(--v3-space-sm); }
.rg-fuel-result dt { font-size:var(--v3-caption); color:var(--v3-muted); }
.rg-fuel-result dd { margin:0; font-weight:750; }
.rg-fuel-error { color:var(--v3-error); font-size:var(--v3-caption); }
[data-design] a.rg-fuel-action { display:flex; justify-content:center; align-items:center; min-height:var(--v3-control-height); padding:var(--v3-space-sm); border-radius:var(--v3-control-radius); background:var(--v3-action); color:var(--v3-paper); text-decoration:none; text-align:center; font-size:var(--v3-action-label); font-weight:750; line-height:1.4; }
[data-design] a.rg-fuel-action:hover { background:var(--v3-action-hover); color:var(--v3-paper); }
[data-design] a.rg-fuel-action:active { background:var(--v3-action-active); }
.rg-fuel-action+.rg-fuel-hint { margin-top:var(--v3-space-sm); }
.rg-fuel :is(a,button,select,summary,.rg-fuel-table):focus-visible { outline:var(--rg-focus); outline-offset:var(--v3-focus-offset); }
.rg-fuel-table { overflow:auto; position:relative; }
[data-design] .rg-fuel table { width:100%; border-collapse:collapse; margin:0; font-size:var(--v3-caption); }
[data-design] .rg-fuel :is(td,th) { border:0; border-bottom:var(--v3-hairline) solid var(--v3-line); padding:var(--v3-space-sm); text-align:left; vertical-align:top; background:var(--v3-paper); color:var(--v3-ink); }
.rg-fuel td small,.rg-fuel td a { display:block; font-size:var(--v3-caption); }
.rg-fuel td small { white-space:nowrap; color:var(--v3-muted); }
.rg-fuel caption { text-align:left; padding-block:var(--v3-space-sm); color:var(--v3-muted); }
.rg-fuel-sr { position:absolute; width:var(--v3-hairline); height:var(--v3-hairline); overflow:hidden; clip-path:inset(50%); }
.rg-fuel-scrollhint { font-size:var(--v3-caption); color:var(--v3-muted); }
[data-design] .rg-fuel-page-head { padding-top:var(--v3-space-lg); max-width:var(--v3-reading-width); }
.rg-fuel-conclusion { margin-top:var(--v3-space-md); padding:var(--v3-space-md); border-radius:var(--v3-control-radius); background:var(--v3-soft); border-inline-start:calc(var(--v3-hairline) * 4) solid var(--v3-brand); }
[data-design] .rg-fuel-conclusion h3 { margin:0 0 var(--v3-space-sm); font-size:var(--v3-subtitle); line-height:1.25; text-align:start; }
.rg-fuel-conclusion p:last-child { margin-bottom:0; }
.rg-fuel-lead { display:grid; gap:var(--v3-space-lg); align-items:start; margin-block:var(--v3-space-xl); padding:var(--v3-space-lg); border-radius:var(--v3-radius); background:var(--v3-soft); color:var(--v3-ink); font:var(--v3-body)/1.65 var(--v3-font); scroll-margin-top:var(--v3-space-xl); }
[data-design] .rg-fuel-lead h2 { text-align:start; margin:0 0 var(--v3-space-sm); font-size:var(--v3-hero); line-height:1.2; }
[data-design] .rg-fuel-lead h3 { text-align:start; margin:0 0 var(--v3-space-sm); font-size:var(--v3-subtitle); line-height:1.3; }
.rg-fuel-lead p { margin:0 0 var(--v3-space-sm); }
[data-design] .rg-fuel-benefits { list-style:none; padding:0; margin:var(--v3-space-md) 0 0; }
.rg-fuel-benefits li { padding-block:var(--v3-space-sm); border-top:var(--v3-hairline) solid var(--v3-line); }
.rg-fuel-benefits strong,.rg-fuel-benefits span { display:block; }
.rg-fuel-benefits span { color:var(--v3-muted); font-size:var(--v3-caption); }
.rg-fuel-lead-form { min-width:0; padding:var(--v3-space-md); background:var(--v3-paper); border:var(--v3-hairline) solid var(--v3-line); border-radius:var(--v3-radius); }
.rg-fuel-lead-field { display:flex; flex-direction:column; gap:var(--v3-space-xs); margin-block:var(--v3-space-sm); font-size:var(--v3-caption); font-weight:650; }
[data-design] .rg-fuel-lead-field input { box-sizing:border-box; width:100%; min-width:0; height:var(--v3-control-height); margin:0; padding:var(--v3-space-xs) var(--v3-space-sm); border:var(--v3-hairline) solid var(--v3-border-strong); border-radius:var(--v3-control-radius); background:var(--v3-paper); color:var(--v3-ink); font:var(--v3-body)/1.4 var(--v3-font); }
.rg-fuel-lead-field input[aria-invalid="true"] { border-color:var(--v3-error); }
[data-design] .rg-fuel-submit { display:block; width:100%; min-height:var(--v3-control-height); padding:var(--v3-space-sm); border:0; border-radius:var(--v3-control-radius); color:var(--v3-paper); background:var(--v3-action); font:750 var(--v3-action-label)/1.4 var(--v3-font); cursor:pointer; }
[data-design] .rg-fuel-submit:hover { background:var(--v3-action-hover); }
[data-design] .rg-fuel-submit:active { background:var(--v3-action-active); }
[data-design] .rg-fuel-submit:disabled { cursor:wait; opacity:var(--v3-disabled); }
[data-design] [data-sent="true"] .rg-fuel-submit:disabled { cursor:default; }
.rg-fuel-lead :is(a,button,input):focus-visible { outline:var(--rg-focus); outline-offset:var(--v3-focus-offset); }
.rg-fuel-form-status:not(:empty) { margin-top:var(--v3-space-sm); font-size:var(--v3-caption); }
.rg-fuel-form-status[data-error="true"] { color:var(--v3-error); }
@media(min-width:60rem) { .rg-fuel-page .rg-fuel-layout { grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); } }
@media(min-width:60rem) { .rg-fuel-lead { grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); } }
@media(max-width:40rem) { .rg-fuel-lead { padding:var(--v3-space-sm); gap:var(--v3-space-md); } .rg-fuel-lead-form { padding:var(--v3-space-sm); } }
@media(max-width:40rem) { [data-design] .rg-fuel { padding:var(--v3-space-sm); } .rg-fuel-grid { grid-template-columns:minmax(0,1fr); } .rg-fuel-field>span:first-child { min-height:0; } }

/* Home uses the same calculator, with secondary fields progressively disclosed. */
[data-design] .rg-home-calculator { padding-block:var(--v3-section); background:var(--v3-canvas); }
/* .rg-fuel is also an old homepage badge class: explicitly isolate the widget. */
[data-design] #fuel-calculator.rg-fuel--home { display:block; margin:0; padding:var(--v3-space-md); border:var(--v3-hairline) solid var(--v3-line); border-radius:var(--v3-radius); background:var(--v3-paper); color:var(--v3-ink); font:400 var(--v3-body)/1.65 var(--v3-font); }
[data-design] #fuel-calculator.rg-fuel--home a.rg-fuel-action { color:var(--v3-paper); }
[data-design] #fuel-calculator.rg-fuel--home p { margin:0 0 var(--v3-space-xs); }
[data-design] #fuel-calculator.rg-fuel--home h2 { margin-bottom:var(--v3-space-sm); }
[data-design] #fuel-calculator.rg-fuel--home>p:last-child { margin-top:var(--v3-space-sm); margin-bottom:0; }
.rg-fuel--home .rg-fuel-result dl { margin-block:var(--v3-space-sm); }
.rg-fuel--home .rg-fuel-result dl>div { padding-block:var(--v3-space-xs); }
[data-design] #fuel-calculator.rg-fuel--home .rg-fuel-error:empty { display:none; }
[data-design] #fuel-calculator.rg-fuel--home .rg-fuel-action+.rg-fuel-hint { margin-top:var(--v3-space-xs); margin-bottom:0; }
.rg-fuel--home .rg-fuel-result dl>div { display:flex; justify-content:space-between; align-items:baseline; gap:var(--v3-space-sm); }
.rg-fuel--home .rg-fuel-result dd { max-width:55%; text-align:end; }
.rg-fuel-home-options .rg-fuel-grid { margin-top:var(--v3-space-sm); }
.rg-fuel-home-options>.rg-fuel-hint { margin-top:var(--v3-space-sm); }
@media(min-width:60rem) {
  .rg-fuel--home .rg-fuel-layout { grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); gap:var(--v3-space-lg); }
  .rg-fuel-home-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:40rem) { [data-design] #fuel-calculator.rg-fuel--home { padding:var(--v3-space-sm); } }
