/* =========================================================================
   CalcThat — tool component styles (tool pages + hub region picker)
   ========================================================================= */

.calc-section{ max-width:var(--maxw); margin:0 auto; padding:10px 18px 10px 18px; }
.calc-layout{ display:block; }
@media (min-width:1040px){
  .calc-layout{ display:grid; grid-template-columns:600px 300px; gap:28px; align-items:start; justify-content:center; }
  .calc-side{ display:flex; flex-direction:column; gap:18px; position:sticky; top:90px; }
}
.calc-side{ display:none; }
@media (min-width:1040px){ .calc-side{ display:flex; } }

.calc-shell{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg);
  box-shadow:var(--shadow); overflow:hidden; position:relative;
}

/* App bar inside the calculator card */
.calc-bar{ display:flex; align-items:center; gap:8px; padding:16px 16px 8px 16px; }
.calc-icon-btn{
  width:44px; height:44px; border-radius:50%; border:none; background:transparent; color:var(--green-900);
  display:flex; align-items:center; justify-content:center; cursor:pointer; flex:none;
}
.calc-icon-btn:active{ background:var(--green-100); }
.calc-icon-btn.invisible{ visibility:hidden; }
.calc-bar h2{ flex:1; text-align:center; font-size:18px; margin:0; }
.calc-bar h2.is-tight{ font-size:16px; letter-spacing:-0.3px; }
.calc-bar-spacer{ width:44px; flex:none; }

.region-select-block{ padding:14px 14px 2px 14px; }
.region-select-title{ margin:0 0 8px 0; color:var(--muted); font-size:14px; }
.region-grid{ display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); gap:6px; }
/* Narrow screens: 5 cards across get cramped and the country names wrap
   unevenly. Switch to a centred 3-per-row wrap (3 + 2) so every card keeps
   its full label on one line and all cards stay the same width. */
@media (max-width:600px){
  .region-grid{ display:flex; flex-wrap:wrap; justify-content:center; }
  .region-card{ flex:0 0 calc((100% - 12px) / 3); }
}
.region-card{
  display:flex; flex-direction:column; align-items:center; justify-content:center; background:var(--card);
  border:1.5px solid var(--line); border-radius:var(--radius-md); padding:8px 3px; cursor:pointer; min-height:48px; font-family:inherit;
  text-align:center; position:relative; transition:background .15s ease, border-color .15s ease;
}
.region-card.active{ background:var(--green-100); border-color:var(--green-600); }
.region-card:focus-visible{ outline:2px solid var(--green-600); outline-offset:2px; }
.region-body{ display:flex; flex-direction:column; align-items:center; gap:1px; min-width:0; }
.region-body b{ font-size:12px; color:var(--green-900); }
.region-body span{ font-size:9px; line-height:1.15; color:var(--muted); text-align:center; }
svg.region-check{ display:none; position:absolute; top:3px; right:3px; width:10px; height:10px; color:var(--green-600); }
.region-card.active svg.region-check{ display:block; }

.calc-progress-wrap{ padding:0 20px 12px 20px; }
.calc-progress-wrap.hidden{ display:none; }
.calc-progress-track{ height:6px; background:var(--green-100); border-radius:99px; overflow:hidden; }
.calc-progress-fill{ height:100%; width:25%; background:var(--green-600); border-radius:99px; transition:width .35s ease; }
.calc-progress-label{ display:block; margin-top:6px; font-size:12.5px; color:var(--muted); font-weight:600; }

.calc-main{ padding:4px 20px 24px 20px; }
.calc-screen{ display:none; }
.calc-screen.active{ display:block; }
@keyframes calcFade{ from{ opacity:0; transform:translateY(6px);} to{opacity:1; transform:translateY(0);} }

/* Household wizard steps — only the current step should render. Without this, all 4 steps'
   fields stack on the page at once and clicking "Next" only changes the title/progress bar,
   which looks like the button does nothing. */
.calc-step{ display:none; }
/* fix round 2026-11-02: only a screen or step the reader moves to fades in; the one the page loads with does not */
.calc-screen.calc-in, .calc-step.calc-in{ animation:calcFade .25s ease; }
@media (prefers-reduced-motion: reduce){ .calc-screen.calc-in, .calc-step.calc-in{ animation:none; } }
.calc-step.active{ display:block; }

.calc-footer{ position:sticky; bottom:0; padding:12px 20px 20px 20px; background:linear-gradient(to top, var(--card) 65%, transparent); }
.calc-footer.hidden{ display:none; }
.calc-footer .btn-primary{ width:100%; }

/* Landing inside calculator */
.calc-hero{ text-align:center; padding:6px 4px 20px 4px; }
.calc-hero .leaf-badge{
  width:52px; height:52px; border-radius:15px; background:var(--green-600); display:flex; align-items:center; justify-content:center;
  margin:0 auto 12px auto; box-shadow:0 10px 20px -8px rgba(36,145,96,.5);
}
.calc-hero .leaf-badge svg{ width:26px; height:26px; stroke:#fff; }
.calc-hero h2{ font-size:20px; margin-bottom:6px; }
.calc-hero p{ margin:0; color:var(--muted); font-size:14px; }

.mode-cards{ display:block; }
.mode-card{
  display:flex; align-items:center; gap:14px; background:var(--card); border:1px solid var(--line);
  border-radius:var(--radius-lg); padding:16px; margin-bottom:14px; box-shadow:var(--shadow); cursor:pointer; width:100%; text-align:left;
}
.mode-card .mode-icon{
  width:50px; height:50px; border-radius:14px; flex:none; display:flex; align-items:center; justify-content:center;
  background:var(--green-100); color:var(--green-700);
}
.mode-card .mode-body{ flex:1; }
.mode-card h3{ margin:0 0 3px 0; font-size:15.5px; }
.mode-card p{ margin:0; font-size:12.5px; color:var(--muted); line-height:1.4; }
.mode-card .chev{ color:var(--muted); flex:none; }

.est-note{ display:flex; align-items:center; justify-content:center; gap:6px; font-size:12px; color:var(--muted); margin-top:6px; }

/* Step navigator (desktop) */
.step-nav{ display:none; }
@media (min-width:1040px){
  .step-nav{ display:flex; gap:10px; padding:0 0 18px 0; }
  .calc-progress-wrap{ display:none !important; }
}
.step-nav-item{
  flex:1; display:flex; flex-direction:column; align-items:center; gap:6px; cursor:pointer;
  padding:6px 4px; border-radius:12px; color:var(--muted); border:none; background:transparent;
}
.step-nav-item .sn-dot{
  width:26px; height:26px; border-radius:50%; background:var(--green-100); color:var(--green-700);
  display:flex; align-items:center; justify-content:center; font-weight:800; font-size:12px;
}
.step-nav-item .sn-label{ font-size:11px; font-weight:700; text-align:center; }
.step-nav-item.active .sn-dot, .step-nav-item.done .sn-dot{ background:var(--green-600); color:#fff; }
.step-nav-item.active .sn-label{ color:var(--green-900); }

/* Form building blocks */
.field-group{ margin-bottom:24px; }
.field-label{ display:flex; align-items:center; gap:8px; font-size:14px; font-weight:700; margin-bottom:9px; color:var(--green-900); }
.field-label .fi{ color:var(--green-600); }

.chip-row{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{
  padding:9px 13px; border-radius:99px; border:1.5px solid var(--line); background:var(--card);
  font-size:13.5px; font-weight:600; color:var(--text); cursor:pointer; user-select:none;
  min-height:44px; font-family:inherit; line-height:1.2;
}
.chip.selected{ background:var(--green-700); border-color:var(--green-700); color:#fff; } /* was --green-600: white 3.94:1, .chip-sub 3.28:1; --green-700 gives 6.05:1 / 5.04:1 (2026-09-27) */

/* Two-line chip variant — same pill shape, adds a short descriptor under the label
   (used for the flight "Trip length" field so Short/Medium/Long-haul are self-explanatory) */
.chip.chip--2line{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:1px; padding:8px 14px 9px 14px; text-align:center; line-height:1.25;
}
.chip.chip--2line .chip-name{ font-size:13.5px; font-weight:700; }
.chip.chip--2line .chip-sub{ font-size:10.5px; font-weight:500; color:var(--muted); }
.chip.chip--2line.selected .chip-sub{ color:#dcefe4; }

.chip-grid{ display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.chip-tile{ padding:13px 8px; border-radius:var(--radius-md); border:1.5px solid var(--line); background:var(--card); text-align:center; cursor:pointer; }
.chip-tile svg{ margin:0 auto 6px auto; color:var(--green-700); }
.chip-tile span{ display:block; font-size:13px; font-weight:600; }
.chip-tile.selected{ background:var(--green-100); border-color:var(--green-600); }

.stepper{ display:flex; align-items:center; justify-content:space-between; background:var(--card); border:1px solid var(--line); border-radius:var(--radius-md); padding:10px 14px; }
.stepper-btn{ flex:none; width:44px; height:44px; border-radius:10px; border:none; background:var(--green-100); color:var(--green-700); font-size:18px; font-weight:700; cursor:pointer; line-height:1; }
.stepper-val{ font-size:15px; font-weight:700; min-width:70px; text-align:center; display:block; }
.stepper-cap{ font-size:11.5px; color:var(--muted); display:block; font-weight:500; margin-top:2px; }

.slider-card{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius-md); padding:15px; }
.slider-top{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:9px; font-size:13px; }
.slider-top .sval{ font-size:15px; font-weight:700; color:var(--green-700); }
/* 44px-tall hit area; the visible 6px track is the runnable-track pseudo */
input[type=range]{ -webkit-appearance:none; appearance:none; width:100%; height:44px; margin:0; background:transparent; outline:none; display:block; }
input[type=range]::-webkit-slider-runnable-track{ height:6px; border-radius:99px; background:var(--green-100); }
input[type=range]::-moz-range-track{ height:6px; border-radius:99px; background:var(--green-100); }
input[type=range]:focus-visible{ outline:2px solid var(--green-700); outline-offset:2px; }
input[type=range]::-webkit-slider-thumb{ margin-top:-8.5px; -webkit-appearance:none; width:23px; height:23px; border-radius:50%; background:var(--green-600); border:4px solid #fff; box-shadow:0 2px 6px rgba(0,0,0,.25); cursor:pointer; }
input[type=range]::-moz-range-thumb{ width:15px; height:15px; border-radius:50%; background:var(--green-600); border:4px solid #fff; box-shadow:0 2px 6px rgba(0,0,0,.25); cursor:pointer; }

.toggle-row{ display:flex; align-items:center; justify-content:space-between; background:var(--card); border:1px solid var(--line); border-radius:var(--radius-md); padding:14px 16px; }
.toggle-row .t-label{ font-size:13.5px; font-weight:600; }
.toggle-row .t-sub{ font-size:11.5px; color:var(--muted); margin-top:2px; }
/* 52x44 hit area; the visible 26px track is the ::before */
.switch{ width:52px; height:44px; background:transparent; position:relative; cursor:pointer; flex:none; border:none; padding:0; }
.switch::before{ content:""; position:absolute; left:0; right:0; top:9px; height:26px; border-radius:99px; background:#8a8270; }
.switch .knob{ display:block; width:20px; height:20px; border-radius:50%; background:#fff; position:absolute; top:12px; left:3px; box-shadow:0 1px 3px rgba(0,0,0,.3); transition:left .18s ease; }
.switch.on::before{ background:var(--green-700); }
.switch.on .knob{ left:29px; }

/* Travel */
.travel-grid{ display:block; }
@media (min-width:1040px){ .travel-grid{ display:grid; grid-template-columns:1.4fr 1fr; gap:26px; align-items:start; } }
.empty-state{ text-align:center; padding:34px 10px; color:var(--muted); }
.empty-state p{ font-size:13px; line-height:1.5; margin:10px 0 0 0; }
.trip-item{ display:flex; align-items:center; gap:12px; background:var(--card); border:1px solid var(--line); border-radius:var(--radius-md); padding:11px 12px; margin-bottom:9px; }
.trip-item .ti-icon{ width:40px; height:40px; border-radius:11px; background:var(--green-100); color:var(--green-700); display:flex; align-items:center; justify-content:center; flex:none; }
.trip-item .ti-title{ font-size:14px; font-weight:700; }
.trip-item .ti-sub{ font-size:12px; color:var(--muted); }
.trip-item .ti-remove{ width:44px; height:44px; border-radius:50%; border:none; background:transparent; color:var(--muted); cursor:pointer; }
.add-item-btn{
  display:flex; align-items:center; justify-content:center; gap:8px; width:100%; padding:13px; border-radius:var(--radius-md);
  border:1.5px dashed var(--green-500); background:var(--green-100); color:var(--green-700); font-weight:700; font-size:14px; cursor:pointer;
}
.travel-col-summary{ display:none; }
@media (min-width:1040px){ .travel-col-summary{ display:block; position:sticky; top:0; } }
.travel-summary-card{ background:var(--green-100); border:1px solid var(--green-200); border-radius:var(--radius-lg); padding:18px; }
.travel-summary-card h3{ margin:0 0 4px 0; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.3px; color:var(--green-700); }
.travel-summary-card .ts-total{ font-size:24px; font-weight:800; color:var(--green-900); margin:2px 0 10px 0; }
.travel-summary-card .ts-row{ display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--text); margin-bottom:6px; }
.travel-summary-card .ts-empty{ font-size:12px; color:var(--muted); line-height:1.5; }

.type-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:9px; margin-bottom:20px; }
@media (min-width:1040px){ .type-grid{ grid-template-columns:repeat(5,1fr); } }
.type-tile{ padding:13px 6px; text-align:center; border-radius:var(--radius-md); border:1.5px solid var(--line); background:var(--card); cursor:pointer; font-family:inherit; color:var(--text); min-height:44px; }
.type-tile svg{ margin:0 auto 6px auto; color:var(--green-700); }
.type-tile span{ font-size:11.5px; font-weight:600; display:block; }
.type-tile.selected{ background:var(--green-100); border-color:var(--green-600); }
.detail-panel{ display:none; }
.detail-panel.active{ display:block; }
@media (min-width:1040px){ .detail-panel.active{ display:grid; grid-template-columns:1fr 1fr; gap:2px 24px; } }

/* Results */
.result-grid{ display:block; }
@media (min-width:1040px){ .result-grid{ display:grid; grid-template-columns:1.3fr 1fr; gap:0 30px; align-items:start; } }
.result-col-tips{ position:static; }
@media (min-width:1040px){ .result-col-tips{ position:sticky; top:90px; } }
.result-hero{ text-align:center; padding:4px 4px 18px 4px; }
.result-hero .r-eyebrow{ font-size:12px; font-weight:700; letter-spacing:.4px; color:var(--green-700); text-transform:uppercase; }
.result-hero .r-total{ font-size:38px; font-weight:800; margin:6px 0 2px 0; color:var(--green-900); }
.result-hero .r-unit{ font-size:13.5px; color:var(--muted); }
.compare-card{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg); padding:15px; margin-bottom:16px; box-shadow:var(--shadow); }
.compare-row{ margin-bottom:11px; }
.compare-row:last-child{ margin-bottom:0; }
.compare-labels{ display:flex; justify-content:space-between; font-size:12px; margin-bottom:5px; }
.compare-labels .cl-name{ font-weight:700; color:var(--text); }
.compare-labels .cl-val{ color:var(--muted); }
.compare-track{ height:9px; border-radius:99px; background:var(--green-100); overflow:hidden; }
.compare-fill{ height:100%; border-radius:99px; }
.compare-fill.you{ background:var(--green-600); }
.compare-fill.avg{ background:#b9c6bd; }
.compare-fill.target{ background:var(--amber); }
.calc-section-title{ font-size:14.5px; font-weight:800; margin:20px 0 11px 0; color:var(--green-900); }
.breakdown-row{ display:flex; align-items:center; gap:10px; margin-bottom:9px; }
.breakdown-row .br-icon{ width:32px; height:32px; border-radius:9px; background:var(--green-100); color:var(--green-700); display:flex; align-items:center; justify-content:center; flex:none; }
.breakdown-row .br-body{ flex:1; }
.breakdown-row .br-top{ display:flex; justify-content:space-between; font-size:12.5px; margin-bottom:4px; }
.breakdown-row .br-top b{ font-weight:700; }
.breakdown-row .br-top span{ color:var(--muted); }
.breakdown-track{ height:7px; border-radius:99px; background:var(--green-100); overflow:hidden; }
.breakdown-fill{ height:100%; background:var(--green-500); border-radius:99px; }
.tip-card{ display:flex; gap:11px; background:var(--card); border:1px solid var(--line); border-radius:var(--radius-md); padding:13px; margin-bottom:9px; box-shadow:var(--shadow); }
.tip-card .tip-icon{ width:36px; height:36px; border-radius:10px; background:var(--amber-bg); color:var(--amber); display:flex; align-items:center; justify-content:center; flex:none; }
.tip-card .tip-title{ font-size:13.5px; font-weight:700; margin-bottom:3px; }
.tip-card .tip-sub{ font-size:12px; color:var(--muted); line-height:1.4; }
.tip-card .tip-save{ display:inline-block; margin-top:6px; font-size:11px; font-weight:700; color:var(--green-700); background:var(--green-100); padding:3px 8px; border-radius:99px; }
.sample-note{ text-align:center; font-size:11px; color:var(--muted); margin-top:16px; padding:0 6px; line-height:1.5; }
.calc-assumptions-note{ text-align:center; font-size:11.5px; color:var(--muted); margin-top:14px; padding:0 6px; line-height:1.6; }
.calc-assumptions-note a{ color:var(--green-700); }

/* =========================================================================
   Tool pages (2026-10-04 restructure): one tool per URL, shared component
   ========================================================================= */
[hidden]{ display:none !important; }
.hidden{ display:none !important; }
.tool-section{ padding-top:0; }
.tool-hero{ padding-top:12px; }
.tool-hero h1{ font-size:26px; }
.tool-col{ max-width:640px; margin:0 auto; }
@media (min-width:1040px){ .tool-col{ max-width:860px; } }
.region-card{ color:var(--text); }
.region-card[aria-pressed="true"]{ background:var(--green-100); border-color:var(--green-700); }
.chip-row .chip:active, .type-tile:active, .region-card:active{ transform:translateY(1px); }
.chip:focus-visible, .type-tile:focus-visible, .switch:focus-visible, .stepper-btn:focus-visible, .step-nav-item:focus-visible{ outline:2px solid var(--green-700); outline-offset:2px; }
.chip.selected::before{ content:"✓ "; }
.type-tile.selected{ border-color:var(--green-700); box-shadow:inset 0 0 0 1px var(--green-700); }
.step-nav-item{ font-family:inherit; min-height:44px; }
.field-hint{ font-size:12.5px; color:var(--muted); margin:-14px 0 20px 0; }
.form-error{ background:var(--clay-bg); color:var(--clay-deep); border-radius:var(--radius-sm); padding:10px 12px; font-size:13.5px; font-weight:600; }
.list-form{ margin-top:14px; }
.list-form.active{ display:block !important; }
.btn-block{ width:100%; }
.result-hero:focus{ outline:none; }
.result-actions{ display:flex; gap:10px; margin-top:12px; }
.result-actions .btn-secondary{ flex:1; min-height:44px; font-family:inherit; }
.drivers-lead{ font-size:13.5px; margin:0 0 10px 0; color:var(--text); }
.br-src{ display:inline-block; font-size:12px; margin-top:4px; color:#1a6b45; text-decoration:underline; text-underline-offset:2px; padding:4px 0; }
.compare-title{ font-size:12.5px; font-weight:700; color:var(--green-900); margin:0 0 10px 0; }
.compare-fill.avg{ background:#9aa88f; }
.tip-card--lead{ border-color:var(--green-500); }
.limits-box, .share-box{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg); padding:16px 18px; margin-top:16px; }
.limits-box{ border-left:4px solid var(--amber); }
.limits-box h2{ font-size:16px; margin:0 0 8px 0; }
.limits-box ul{ margin:0; padding-left:1.15em; }
.limits-box li{ font-size:13.5px; margin-bottom:.45em; color:var(--text); }
.limits-box li a{ text-decoration:underline; text-underline-offset:2px; }
.share-label{ display:flex; align-items:center; gap:8px; font-weight:700; color:var(--green-900); font-size:14.5px; }
.share-sub{ font-size:12.5px; color:var(--muted); margin:4px 0 10px 0; }
.share-row{ display:flex; gap:8px; }
.share-row input{ flex:1; min-width:0; min-height:44px; font-size:16px; padding:8px 10px; border:1px solid var(--line); border-radius:var(--radius-sm); background:#fff; color:var(--text); }
.share-row .btn-secondary{ flex:none; min-height:44px; font-family:inherit; }
.share-status{ font-size:12.5px; color:#1a6b45; margin:6px 0 0 0; min-height:1em; }
.method-box{ background:var(--green-100); border-radius:var(--radius-md); padding:16px 18px; margin:2em 0; }
.method-box h2{ font-size:17px; margin-top:0; }
.method-box ol{ margin:0; padding-left:1.2em; }
.article .method-box li{ font-size:14px; }
.faq-list details{ border-bottom:1px solid var(--line); padding:4px 0; }
.faq-list summary{ cursor:pointer; font-weight:700; color:var(--green-900); padding:10px 0; min-height:44px; display:flex; align-items:center; }
.faq-list details p{ margin:0 0 12px 0; }
.sources-note{ font-size:12.5px; color:var(--muted); margin:10px 0 0 0; }
.table-wrap{ margin:1.2em 0; overflow-x:auto; }
.data-table caption{ caption-side:top; text-align:left; font-size:14px; color:var(--muted); padding:0 0 8px; }
.content-wrap .table-note{ font-size:14px; color:var(--muted); margin-top:-0.4em; }
.content-wrap .data-table{ table-layout:auto; margin:0; }
.content-wrap .data-table th, .content-wrap .data-table td{ width:auto; }
.data-table tbody th{ text-transform:none; font-size:13px; letter-spacing:0; }
/* Phone: each table row becomes a small labelled card (no sideways scrolling) */
@media (max-width:640px){
  .data-table thead{ display:none; }
  .data-table caption{ display:block; }
  .data-table, .data-table tbody, .data-table tr{ display:block; width:100%; }
  .data-table tr{ border:1px solid var(--line); border-radius:var(--radius-sm); padding:8px 10px; margin-bottom:8px; background:var(--card); }
  .content-wrap .data-table th, .content-wrap .data-table td{ display:flex; justify-content:space-between; gap:12px; border:none; padding:3px 0; width:100%; }
  .data-table td::before{ content:attr(data-label); color:var(--muted); font-size:12px; }
  .data-table tbody th{ font-size:14px; color:var(--green-900); }
}
/* R2 2026-10-04: generated inline-SVG charts (carbon-by-country) */
.chart-fig{ margin:1.4em 0; padding:14px 14px 10px; background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg); }
.chart-fig figcaption{ font-size:14px; color:var(--green-900); margin-bottom:8px; }
.chart{ display:block; width:100%; height:auto; max-width:560px; }
.chart .ch-label{ font-size:13.5px; font-weight:700; fill:var(--text); }
.chart .ch-val{ font-size:13px; fill:var(--muted); }
.chart .ch-axis{ font-size:12px; fill:var(--muted); }
.chart .ch-bar{ fill:#9aa88f; }
.chart .ch-bar--hi{ fill:var(--amber); }
.chart .ch-grid{ stroke:var(--line); stroke-width:1; }
.chart .ch-line{ stroke-width:2.5; }
.chart .ch-line--0{ stroke:var(--green-600); } .chart .ch-dot--0{ fill:var(--green-600); }
.chart .ch-line--1{ stroke:var(--amber); } .chart .ch-dot--1{ fill:var(--amber); }
.chart-data summary{ cursor:pointer; font-size:13.5px; font-weight:700; color:var(--green-700); min-height:44px; display:flex; align-items:center; }
.chart-src{ font-size:12.5px; color:var(--muted); margin:.4em 0 0; }
@media (min-width:768px){ .hub-cards{ grid-template-columns:1fr 1fr; } .hub-card--feature{ grid-column:1 / -1; } }
/* ---- R3 (2026-10-05): typed number boxes, airport selects, route chips, result links, below-result ad ---- */
.num-row{ display:flex; align-items:center; gap:8px; background:var(--card); border:1px solid var(--line); border-radius:var(--radius-md); padding:4px 12px; }
.num-row:focus-within{ outline:2px solid var(--green-700); outline-offset:2px; }
.num-input{ flex:1; min-width:0; min-height:44px; border:0; background:transparent; font:inherit; font-size:17px; font-weight:700; color:var(--green-900); }
.num-input:focus{ outline:none; }
.num-unit{ font-size:13.5px; font-weight:700; color:var(--muted); white-space:nowrap; }
.field-select{ width:100%; min-height:44px; font:inherit; font-size:15px; padding:8px 10px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--card); color:var(--text); }
.field-select:focus-visible{ outline:2px solid var(--green-700); outline-offset:2px; }
.route-chips{ display:flex; flex-wrap:wrap; gap:8px; margin:-4px 0 14px 0; }
.route-chips .chip{ min-height:44px; }
.tips-more{ list-style:none; margin:4px 0 0 0; padding:0; }
.tips-more li{ font-size:13.5px; margin:0 0 8px 0; }
.tips-more a{ color:var(--green-700); text-decoration:underline; text-underline-offset:2px; font-weight:600; }
/* Below-result unit (built OFF until AdSense approval; lives in a <template> until then). Grey wrapper, fixed
   300x250 on phones and 728x90 from 768 px, and a top margin that keeps it >= 150 px from the calculator's buttons. */
.ad-below-result{ margin:var(--ad-gap, 132px) auto 0 auto; /* R3b: 132 px so the wrapper top incl. its label sits >=150 px from the nearest button (106 px gave 125-127 px) */ padding:10px 0 14px 0; background:#ece8dc; border-radius:var(--radius-md); text-align:center; }
.ad-below-result .ad-slot__label{ display:block; margin-bottom:6px; }
.ad-fixed{ display:inline-block; width:300px; height:250px; background:#ece8dc; }
@media (min-width:768px){ .ad-fixed{ width:728px; height:90px; } }
/* R3: a panel inside a panel (home: kWh box + its unit chips; car: fuel economy) stacks and spans the whole row */
.detail-panel .detail-panel.active{ display:block; grid-column:1 / -1; }
.ad-below-result .ad-slot__label{ color:#5a5346; } /* AA on the grey wrapper */
/* ---- Content round 1 (2026-10-16): generated /learn/ guides (build-guides.mjs) ---- */
.guide-hero{ margin-top:1em; }
.asof-box{ background:var(--amber-bg); border:1px solid var(--line); border-left:4px solid var(--amber); border-radius:var(--radius-md); padding:14px 16px; margin:1.6em 0; }
.asof-box h2{ font-size:17px; margin:0 0 8px 0; }
.asof-box ul{ margin:0; padding-left:1.15em; }
.article .asof-box li{ font-size:14.5px; margin-bottom:.5em; }
.asof-note{ font-size:13px; color:#5a5346; margin:.4em 0 0; }
.chart .lad-step--0{ fill:var(--green-100); } .chart .lad-step--1{ fill:var(--green-200); } .chart .lad-step--2{ fill:#c9d6aa; }
.chart .lad-n{ font-size:15px; font-weight:800; fill:var(--clay-deep); }
.chart .lad-h{ font-size:14.5px; font-weight:800; fill:var(--green-900); }
.chart .lad-t{ font-size:12.5px; fill:var(--text); }
.chart .zone-real{ fill:var(--green-200); } .chart .zone-mid{ fill:#f2cf8e; } .chart .zone-art{ fill:#a9bd84; }
.checklist{ display:grid; gap:12px; margin:1em 0 1.4em; }
@media (min-width:700px){ .checklist{ grid-template-columns:1fr 1fr; } }
.checklist-room{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius-md); padding:12px 14px; }
.article .checklist-room h3{ margin:0 0 6px 0; font-size:15.5px; }
.checklist-room ul{ list-style:none; margin:0; padding:0; }
.article .checklist-room li{ position:relative; padding-left:26px; font-size:14.5px; margin-bottom:.5em; }
.checklist-room li::before{ content:""; position:absolute; left:0; top:3px; width:15px; height:15px; border:2px solid var(--green-700); border-radius:4px; }
.checklist-room--safety{ border-color:var(--amber); }
.article .checklist-room--safety li{ padding-left:0; } .checklist-room--safety li::before{ display:none; }
.mini-calc{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg); padding:16px 16px 18px; margin:1.6em 0; }
.mini-calc > h2{ margin-top:0; }
.mini-calc__intro{ font-size:14.5px; }
.choice-set{ border:0; padding:0; margin:0 0 18px 0; min-width:0; }
.choice-set legend{ padding:0; }
.choice{ display:flex; align-items:center; gap:10px; min-height:44px; padding:8px 12px; margin-bottom:8px; border:1.5px solid var(--line); border-radius:var(--radius-sm); background:#fff; cursor:pointer; font-size:14.5px; }
.choice input{ width:20px; height:20px; margin:0; flex:none; accent-color:var(--green-700); }
.choice:has(input:checked){ border-color:var(--green-700); background:var(--green-100); font-weight:700; }
.choice:has(input:focus-visible){ outline:2px solid var(--green-700); outline-offset:2px; }
.mini-calc__form .form-error{ margin:0 0 12px 0; }
.mini-calc__form .btn-primary{ width:100%; min-height:48px; font-family:inherit; font-size:16px; border:0; cursor:pointer; }
@media (min-width:600px){ .mini-calc__form .btn-primary{ width:auto; } }
.mini-result{ margin-top:18px; padding:14px 16px; border-radius:var(--radius-md); background:var(--green-100); border-left:4px solid var(--green-700); }
.mini-result:focus{ outline:2px solid var(--green-700); outline-offset:2px; }
.mini-result__eyebrow{ font-size:12px; font-weight:700; letter-spacing:.4px; text-transform:uppercase; color:var(--green-700); margin:0; }
.article .mini-result__head{ margin:.2em 0 .4em; font-size:19px; }
.mini-result__src{ font-size:13px; }
.mini-calc .limits-box h3{ font-size:15px; margin:0 0 8px 0; }
.article .guide-byline{ font-size:13px; color:var(--muted); margin:0 0 4px 0; line-height:1.5; }
.guide-article .chart-src{ font-size:12.5px; line-height:1.45; }
.mini-calc .share-sub{ font-size:12.5px; }
.mini-calc .field-hint{ margin:6px 0 0 0; font-size:12.5px; } .guide-article .chart.zone, .guide-article .chart.lad{ max-width:460px; }
.guide-hero img{ display:block; width:100%; max-width:560px; height:auto; border-radius:var(--radius-lg); }
/* content round 2 (2026-10-16): Published line, guide converters and the buy test */
.article .guide-published{ font-size:13px; color:var(--muted); margin:0 0 12px 0; }
.mini-calc .field-select{ max-width:320px; }
.mini-result .data-table{ margin:10px 0; font-size:14px; }
.mini-result ul{ margin:.4em 0 .8em; padding-left:1.2em; }
.quiz .choice-set{ margin-bottom:20px; }
.quiz .choice{ align-items:flex-start; }
.quiz .choice input{ margin-top:2px; }
/* Next-step cards in a tool result (project-qa, home proposal §3/§5.3, 2026-10-21): next calculator, guide, Q&A topic */
.next-steps{ margin-top:18px; }
.next-list{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:minmax(0,1fr); gap:8px; }
.next-card{ display:block; min-height:48px; padding:12px 14px; background:var(--card); border:1px solid var(--line); border-left:4px solid var(--green-600); border-radius:var(--radius-md); color:var(--text); }
.next-card:hover{ text-decoration:none; border-color:var(--green-600); }
.next-card .next-kind{ display:block; font-size:14px; font-weight:800; letter-spacing:.3px; text-transform:uppercase; color:var(--green-700); }
.next-card b{ display:block; font-size:17px; color:var(--green-900); margin:2px 0; }
.next-card .next-why{ display:block; font-size:16px; line-height:1.4; }

/* phone-first pass (2026-10-21, project-qa only): region cards, progress label, tool tables and FAQ at >= 16 px; 48 px controls */
.region-select-title, .calc-progress-label{ font-size:16px; }
.region-body b{ font-size:16px; }
.region-body span{ font-size:16px; line-height:1.2; }
svg.region-check{ width:14px; height:14px; }
.btn-primary, .btn-secondary{ min-height:48px; }
.faq-list summary, .faq summary, details > summary{ min-height:48px; }
.field-label, .num-unit, .toggle-row .t-label, .toggle-row .t-sub, .chip, .chip.chip--2line .chip-name, .chip.chip--2line .chip-sub,
.limits-box li, .article .method-box li, .data-table caption, .data-table tbody th, .content-wrap .data-table td, .data-table td::before{ font-size:16px; }
.chip, .num-input{ min-height:48px; }
.switch{ height:48px; }
.switch .knob{ top:14px; }

/* Mission core (2026-10-22): the approved meaning line right under the household total (tool-household.js). */
.r-meaning{ margin:2px 0 14px; padding-left:12px; border-left:3px solid var(--clay); font-size:16px; line-height:1.55; color:var(--text); }

/* Thermostat dial (home energy result; plan context/thermostat-dial-plan-2026-10-28.md; dev-web 2026-10-28). Phone first,
   light only. Plain white dial, moss ticks, amber notch = the usual setting; amber is for notes, never red. */
.thermo{ scroll-margin-top:84px; margin:22px 0 6px; padding:16px 14px 14px; background:var(--card); border:1px solid var(--line); border-radius:var(--radius-md); box-shadow:var(--shadow); }
.thermo .calc-section-title{ margin-top:0; font-size:17px; }
.thermo-chips{ display:flex; gap:8px; margin:0 0 6px; }
.thermo-chips .chip{ flex:1; min-height:48px; font-size:16px; display:inline-flex; align-items:center; justify-content:center; gap:6px; }
.thermo-dial{ position:relative; width:220px; max-width:100%; aspect-ratio:1; margin:6px auto 0; touch-action:none; user-select:none; -webkit-user-select:none; cursor:pointer; }
.thermo-svg{ width:100%; height:100%; display:block; color:var(--green-700); }
.thermo-track{ fill:none; stroke:var(--green-100); stroke-width:10; stroke-linecap:round; }
.thermo-arc{ fill:none; stroke:var(--green-600); stroke-width:10; stroke-linecap:round; }
.thermo-arc--up{ stroke:#9a6414; }
.thermo-tick{ stroke:var(--green-600); stroke-width:1.5; }
.thermo-tick--major{ stroke:var(--green-700); stroke-width:2.5; }
.thermo-notch{ stroke:#9a6414; stroke-width:5; stroke-linecap:round; }
.thermo-knob{ position:absolute; width:48px; height:48px; margin:-24px 0 0 -24px; border-radius:50%; display:flex; align-items:center; justify-content:center; outline:none; transition:left .12s ease, top .12s ease; }
.thermo-knob::after{ content:""; width:24px; height:24px; border-radius:50%; background:#fff; border:4px solid var(--green-700); box-shadow:0 1px 4px rgba(23,58,42,.35); box-sizing:border-box; }
.thermo-knob:focus-visible::after{ outline:3px solid var(--clay-deep); outline-offset:3px; }
.thermo-readout{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; pointer-events:none; }
.thermo-temp{ font-size:36px; font-weight:800; line-height:1.1; color:var(--green-900); font-variant-numeric:tabular-nums; }
.thermo-when{ font-size:16px; color:var(--muted); }
.thermo-btns{ display:flex; justify-content:space-between; max-width:290px; margin:-30px auto 0; position:relative; }
.thermo-btn{ width:48px; height:48px; border-radius:50%; border:1.5px solid var(--green-700); background:#fff; color:var(--green-900); font-size:24px; font-weight:700; line-height:1; cursor:pointer; font-family:inherit; }
.thermo-btn:disabled{ border-color:var(--line); color:#a8a090; cursor:default; }
.thermo-why{ max-width:290px; margin:8px auto 0; font-size:16px; color:var(--muted); text-align:center; }
.thermo-usual{ margin:12px 0 0; font-size:16px; }
.thermo-usual b{ font-variant-numeric:tabular-nums; }
.thermo-change{ min-height:48px; padding:0 10px; margin-left:4px; background:none; border:0; color:var(--green-700); font:inherit; font-weight:700; text-decoration:underline; text-underline-offset:2px; cursor:pointer; }
.thermo-hint{ margin:-6px 0 0; font-size:16px; color:var(--muted); }
.thermo-edit:not([hidden]){ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:8px 0 4px; }
.thermo-edit .thermo-editval{ min-width:64px; text-align:center; font-size:18px; font-weight:700; font-variant-numeric:tabular-nums; }
.thermo-edit .btn-secondary{ min-height:48px; }
.thermo-result{ margin:14px 0 0; padding-top:12px; border-top:1px solid var(--line); }
.thermo-big{ margin:0 0 8px; font-size:22px; font-weight:800; line-height:1.3; color:var(--green-900); }
.thermo-big--idle{ font-size:18px; font-weight:600; color:var(--muted); }
.thermo-note{ margin:0 0 8px; font-size:16px; line-height:1.5; color:var(--text); }
.thermo-note--warn{ display:flex; gap:8px; align-items:flex-start; padding:10px 12px; background:var(--amber-bg); border-left:4px solid var(--amber); border-radius:var(--radius-sm); }
.thermo-note--warn .icon{ flex:none; width:20px; height:20px; margin-top:2px; color:#8a5a12; }
.thermo-note a, .thermo-guide a, .thermo-none a{ color:var(--green-700); text-decoration:underline; text-underline-offset:2px; font-weight:600; padding-block:12px; }
.thermo-guide{ margin:6px 0 0; font-size:16px; }
.thermo-guide a{ display:block; }
.thermo-none{ margin:4px 0 0; font-size:16px; }
.thermo-banner{ margin:0 0 12px; padding:10px 12px; background:var(--green-100); border-left:4px solid var(--green-700); border-radius:var(--radius-sm); font-size:16px; font-weight:600; color:var(--green-900); }
@media (prefers-reduced-motion: reduce){ .thermo-knob{ transition:none; } }
@media (forced-colors: active){ .thermo-track, .thermo-arc, .thermo-tick, .thermo-notch{ stroke:currentColor; } .thermo-knob::after{ border-color:CanvasText; } }

/* Phase 1 item 4 (2026-11-16): the static worked example under each tool's intro (build-tool-pages.mjs workedBox). */
.worked-result{ max-width:640px; margin:14px auto 0 auto; padding:12px 14px; background:var(--card); border:1px solid var(--line); border-left:4px solid var(--green-600); border-radius:10px; text-align:left; }
.worked-result .worked-title{ font-size:13px; letter-spacing:.04em; text-transform:uppercase; color:var(--green-700); margin:0 0 6px 0; }
.worked-result p{ font-size:16px; line-height:1.5; color:var(--text); margin:0 0 6px 0; }
.worked-result p.worked-figs{ font-size:14px; color:var(--muted); }
.worked-result p.worked-more{ font-size:14px; margin:0; display:flex; flex-direction:column; align-items:flex-start; }
.worked-result p.worked-more a{ min-height:48px; display:inline-flex; align-items:center; }
