/* Shared styles for NZ Solar calculators. Loaded as a separate file so the
   per-page CSS purge cannot drop classes that the calculators add at runtime. */
.tool-page { --self: #0e8f6f; --export: #c98500; --import: #5470c0; --t-ink: #11221e; --t-muted: #5b6864; --t-line: #dbe8df; --t-green: #137a63; --t-dark: #073c34; --t-soft: #eef8e9; }

/* The site's global details rule (white text, top margin) is for dark sections. */
.tool-content) details { color: inherit; margin-top: 0; }

/* Hero */
.tool-hero { max-width: 1180px; margin: 0 auto; padding: 28px 20px 4px; }
.tool-hero h1 { font-family: "Fraunces", ui-serif, Georgia, serif; font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.08; margin: 6px 0 10px; letter-spacing: -0.01em; }
.tool-hero .article-deck { max-width: 680px; margin-bottom: 12px; }
.tool-trust { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; }
.tool-trust li { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--t-line); border-radius: 999px; padding: 5px 12px 5px 9px; font-size: 0.84rem; color: #33413d; }
.tool-trust svg { width: 15px; height: 15px; color: var(--t-green); flex: none; }

/* Layout */

/* Fields */
.tool-field { position: relative; display: grid; gap: 6px; margin-bottom: 14px; font-size: 0.9rem; font-weight: 600; color: #22322e; }
.tool-field > small { font-weight: 400; color: var(--t-muted); font-size: 0.82rem; line-height: 1.4; }
.tool-field input, .tool-field select { font: inherit; font-weight: 400; padding: 9px 10px; border: 1px solid #c9d8ce; border-radius: 8px; background: #fff; width: 100%; min-height: 42px; color: var(--t-ink); }
.tool-field input:focus, .tool-field select:focus, .chip:focus-visible, .tool-range:focus-visible { outline: 2px solid var(--t-green); outline-offset: 1px; }
.tool-field select:disabled { opacity: 0.5; }
.tool-unit { position: relative; display: block; }
.tool-unit input { padding-right: 58px; }
.tool-unit > span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--t-muted); font-size: 0.84rem; font-weight: 500; pointer-events: none; }
.tool-unit.pre input { padding-left: 24px; padding-right: 10px; }
.tool-unit.pre > span { left: 10px; right: auto; }
.tool-range { width: 100%; margin: 2px 0 0; accent-color: var(--t-green); height: 22px; cursor: pointer; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; left: 0; top: 0; }

/* Chips (built from <select data-chips>): a quiet segmented control */
.chips { display: flex; gap: 2px; background: #eef2ef; border-radius: 9px; padding: 3px; }
.chip { flex: 1 1 0; font: inherit; font-size: 0.88rem; font-weight: 500; color: #44524e; background: transparent; border: 0; border-radius: 7px; padding: 7px 8px; min-height: 36px; cursor: pointer; line-height: 1.2; text-align: center; }
.chip:hover { color: var(--t-ink); }
.chip[aria-checked="true"] { background: #fff; color: var(--t-dark); font-weight: 600; box-shadow: 0 1px 3px rgb(18 42 36 / 16%); }
.chip:disabled { opacity: 0.4; cursor: not-allowed; }
.chip small { display: block; font-size: 0.72rem; font-weight: 400; color: var(--t-muted); margin-top: 1px; }
.chips.mini { display: inline-flex; padding: 2px; }
.chips.mini .chip { flex: none; font-size: 0.78rem; min-height: 26px; padding: 3px 9px; }

/* Toggle switch (checkbox.tool-switch) */
.tool-toggle { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 600; font-size: 0.9rem; margin: 4px 0 12px; line-height: 1.35; }
.tool-toggle input { appearance: none; -webkit-appearance: none; flex: none; width: 38px; height: 22px; border-radius: 999px; background: #c5d2ca; position: relative; cursor: pointer; transition: background 0.15s; margin: 0; }
.tool-toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left 0.15s; box-shadow: 0 1px 2px rgb(0 0 0 / 20%); }
.tool-toggle input:checked { background: var(--t-green); }
.tool-toggle input:checked::after { left: 19px; }
.tool-toggle input:disabled { opacity: 0.45; cursor: not-allowed; }
.tool-toggle input:focus-visible { outline: 2px solid var(--t-green); outline-offset: 2px; }
.tool-toggle small { display: block; font-weight: 400; color: var(--t-muted); font-size: 0.82rem; margin-top: 2px; }
.tool-toggle.is-disabled { opacity: 0.55; cursor: not-allowed; }

/* Tick cards (quote checklist) */
.tick-list { display: grid; gap: 6px; }
.tick { display: flex; align-items: center; gap: 10px; border: 1px solid #c9d8ce; border-radius: 8px; padding: 8px 10px; font-size: 0.88rem; font-weight: 500; cursor: pointer; line-height: 1.3; background: #fff; }
.tick input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; border-radius: 5px; border: 2px solid #9fb3a8; margin: 0; display: grid; place-items: center; cursor: pointer; }
.tick input:checked { background: var(--t-green); border-color: var(--t-green); }
.tick input:checked::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.tick:has(input:checked) { background: var(--t-soft); border-color: #a9d3bd; }
.tick input:focus-visible { outline: 2px solid var(--t-green); outline-offset: 2px; }

/* Split bars */
.split { margin: 0 0 16px; }
.split:last-child { margin-bottom: 0; }
.split-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 0.9rem; margin-bottom: 6px; }
.split-head b { font-size: 0.95rem; }
.split-head span { color: var(--t-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.split-bar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; gap: 2px; background: #f1f5f2; }
.split-bar > i { display: flex; align-items: center; padding: 0 8px; color: #fff; font-style: normal; font-size: 0.8rem; font-weight: 700; white-space: nowrap; overflow: hidden; min-width: 3px; }
.split-key { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; padding: 0; margin: 7px 0 0; font-size: 0.86rem; color: #33413d; }
.split-key li { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.split-key i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.split-key b { font-weight: 700; }

/* Charts */
.tool-chart { position: relative; width: 100%; }
.tool-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.tool-chart text { font-family: Inter, ui-sans-serif, system-ui, sans-serif; fill: #4d5b57; font-size: 12px; }
.tool-chart .grid line { stroke: #e3ece6; }
.tool-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 0.86rem; color: #33413d; }
.tool-legend li { display: flex; align-items: center; gap: 6px; }
.tool-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.tool-tip { position: absolute; pointer-events: none; background: #11221e; color: #fff; padding: 8px 10px; border-radius: 7px; font-size: 0.82rem; line-height: 1.45; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity 0.1s; z-index: 5; }
.tool-tip.show { opacity: 1; }
.tool-tip b { font-weight: 700; }
.tool-table-toggle { margin-top: 8px; font-size: 0.86rem; }
.tool-table-toggle summary { cursor: pointer; color: var(--t-dark); font-weight: 600; }
.tool-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; margin-top: 8px; font-variant-numeric: tabular-nums; }
.tool-table th, .tool-table td { padding: 6px 8px; border-bottom: 1px solid #e3ece6; text-align: right; }
.tool-table th:first-child, .tool-table td:first-child { text-align: left; }
.tool-table thead th { color: var(--t-muted); font-weight: 600; }
.tool-table-wrap { overflow-x: auto; }
.tool-note { font-size: 0.84rem; color: var(--t-muted); margin: 10px 0 0; line-height: 1.55; }

/* Flags / findings */
.flag-good::before { content: "✓"; background: #1f8a5b; }
.flag-warn::before { content: "!"; background: #c98500; }
.flag-bad::before { content: "✕"; background: #c0392b; }
.flag-info::before { content: "i"; background: #5470c0; font-family: Georgia, serif; font-style: italic; }
.flag-ul { list-style: none; padding: 0; margin: 4px 0 6px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 3px 14px; }
.flag-ul li { position: relative; padding-left: 16px; font-size: 0.86rem; line-height: 1.4; }
.flag-ul li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 7px; height: 2px; background: #c98500; }

/* Accordion of reasons */
.tool-acc { display: grid; gap: 6px; margin: 12px 0 0; }
.tool-acc details { border: 1px solid var(--t-line); border-radius: 9px; background: #fff; }
.tool-acc summary { cursor: pointer; list-style: none; padding: 10px 12px; font-weight: 600; font-size: 0.92rem; display: flex; gap: 10px; align-items: center; }
.tool-acc summary::-webkit-details-marker { display: none; }
.tool-acc summary .n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #e6ecf8; color: #3a4f8f; font-size: 0.78rem; display: grid; place-items: center; }
.tool-acc summary .amt { margin-left: auto; color: var(--t-muted); font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.tool-acc summary::after { content: "+"; color: var(--t-green); font-weight: 700; font-size: 1.1rem; margin-left: 6px; }
.tool-acc details[open] summary::after { content: "–"; }
.tool-acc details p { margin: 0; padding: 0 12px 12px 44px; font-size: 0.9rem; line-height: 1.55; color: #33413d; }

/* Compare bars (quote method vs ours) */
.cmp { display: grid; gap: 10px; margin: 4px 0 0; }
.cmp-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: center; }
.cmp-row > span { font-size: 0.86rem; font-weight: 600; line-height: 1.3; }
.cmp-row > span small { display: block; font-weight: 400; color: var(--t-muted); font-size: 0.78rem; }
.cmp-track { display: flex; align-items: center; gap: 8px; }
.cmp-track i { height: 26px; border-radius: 6px; min-width: 4px; }
.cmp-track b { font-size: 0.88rem; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Plan list (buy-back) */
.tool-btn { font: inherit; font-size: 0.88rem; font-weight: 600; border: 1px solid #c9d8ce; background: #fff; color: var(--t-dark); border-radius: 8px; padding: 8px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tool-btn:hover { border-color: var(--t-green); }
.tool-btn.full { width: 100%; justify-content: center; margin-top: 10px; }

/* Gauge (quote checker) */
.gauge { margin: 16px 0 4px; }
.gauge-track { position: relative; display: flex; height: 14px; border-radius: 999px; overflow: hidden; }
.gauge-track i { height: 100%; }
.gauge-marker { position: relative; height: 0; }
.gauge-marker b { position: absolute; top: -24px; transform: translateX(-50%); width: 4px; height: 34px; background: #fff; border-radius: 2px; box-shadow: 0 0 0 2px #073c34; }
.gauge-marker span { position: absolute; top: 14px; transform: translateX(-50%); background: #fff; color: var(--t-dark); font-weight: 700; font-size: 0.82rem; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.gauge-labels { display: grid; grid-template-columns: repeat(5, 1fr); font-size: 0.72rem; color: #a8dcc8; margin-top: 40px; text-align: center; line-height: 1.25; }
.gauge-labels span.on { color: #fff; font-weight: 700; }

/* Price-per-watt bars */
.ppw { display: grid; gap: 8px; }
.ppw-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 64px; gap: 10px; align-items: center; font-size: 0.86rem; }
.ppw-row > div { background: #f1f5f2; border-radius: 6px; height: 18px; position: relative; }
.ppw-row > div i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; }
.ppw-row strong { text-align: right; font-variant-numeric: tabular-nums; }
.ppw-row.mine span, .ppw-row.quote span { font-weight: 700; }

/* Questions */
.q-list { counter-reset: q; list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.q-list li { counter-increment: q; position: relative; padding: 2px 0 2px 34px; line-height: 1.5; font-size: 0.93rem; }
.q-list li::before { content: counter(q); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--t-soft); color: var(--t-dark); font-weight: 700; font-size: 0.8rem; display: grid; place-items: center; }

/* CTA */
.tool-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; background: var(--t-dark); color: #fff; border-radius: 12px; padding: 18px 20px; }
.tool-cta p { margin: 4px 0 0; color: #d9ebe3; font-size: 0.92rem; max-width: 520px; line-height: 1.5; }
.tool-cta h3 { margin: 0; font-size: 1.1rem; color: #fff; }
.tool-cta .primary-button { white-space: nowrap; }

/* Mobile sticky result bar */
.tool-sticky { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--t-dark); color: #fff; border-radius: 12px; padding: 10px 12px 10px 16px; box-shadow: 0 10px 30px rgb(0 0 0 / 25%); transform: translateY(140%); transition: transform 0.2s; }
.tool-sticky.show { transform: none; }
.tool-sticky div { display: grid; line-height: 1.25; min-width: 0; }
.tool-sticky strong { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool-sticky span { font-size: 0.8rem; color: #c4e2d5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool-sticky a { flex: none; background: #fff; color: var(--t-dark); font-weight: 700; font-size: 0.86rem; border-radius: 8px; padding: 8px 12px; text-decoration: none; }
@media (min-width: 901px) { .tool-sticky { display: none; } }

/* Article content below the tool */
.tool-content { max-width: 820px; margin: 0 auto; padding: 0 20px 20px; }
.tool-content h2 { font-family: "Fraunces", ui-serif, Georgia, serif; font-size: 1.6rem; margin: 34px 0 10px; }
.tool-content p, .tool-content li { line-height: 1.7; }
.tool-content > ol.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 10px; }
.tool-content > ol.steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 54px; background: #fff; border: 1px solid var(--t-line); border-radius: 10px; }
.tool-content > ol.steps li::before { content: counter(s); position: absolute; left: 14px; top: 13px; width: 28px; height: 28px; border-radius: 50%; background: var(--t-dark); color: #fff; font-weight: 700; font-size: 0.85rem; display: grid; place-items: center; }
.tool-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 14px 0; }
.tool-links a { display: block; padding: 14px; border: 1px solid var(--t-line); border-radius: 10px; background: #fff; color: inherit; text-decoration: none; }
.tool-links a strong { display: block; color: var(--t-dark); margin-bottom: 4px; }
.tool-links a span { font-size: 0.9rem; color: var(--t-muted); }
.tool-links a:hover { border-color: var(--t-green); }

/* Hub cards */
.hub-grid { max-width: 1180px; margin: 8px auto 10px; padding: 0 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.hub-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--t-line); border-radius: 14px; padding: 22px; color: inherit; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.hub-card:hover { border-color: var(--t-green); box-shadow: 0 12px 30px rgb(18 42 36 / 10%); transform: translateY(-2px); }
.hub-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--t-soft); color: var(--t-green); display: grid; place-items: center; margin-bottom: 14px; }
.hub-icon svg { width: 24px; height: 24px; }
.hub-q { font-family: "Fraunces", ui-serif, Georgia, serif; font-size: 1.35rem; line-height: 1.2; margin: 0 0 4px; color: var(--t-ink); }
.hub-name { font-size: 0.85rem; font-weight: 700; color: var(--t-green); margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.hub-card ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 7px; font-size: 0.92rem; line-height: 1.45; color: #33413d; flex: 1; align-content: start; }
.hub-card li { position: relative; padding-left: 22px; }
.hub-card li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 6px; height: 10px; border: solid var(--t-green); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.hub-go { font-weight: 700; color: var(--t-dark); display: inline-flex; align-items: center; gap: 6px; }
.hub-go::after { content: "→"; transition: transform 0.15s; }
.hub-card:hover .hub-go::after { transform: translateX(3px); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.feature { background: #fff; border: 1px solid var(--t-line); border-radius: 10px; padding: 14px 16px; }
.feature svg { width: 22px; height: 22px; color: var(--t-green); margin-bottom: 6px; }
.feature strong { display: block; margin-bottom: 4px; }
.feature p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: #33413d; }

@media (max-width: 900px) {
}
@media (max-width: 640px) {
  .cmp-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .ppw-row { grid-template-columns: 76px minmax(0, 1fr) 58px; }
  .tool-hero { padding: 20px 14px 2px; }
}
@media (max-width: 420px) {
  .chip { font-size: 0.84rem; padding: 8px 9px; }
}

/* ---------- Simple one-column flow ---------- */
.tool-flow { max-width: 780px; margin: 0 auto 40px; padding: 0 20px; display: grid; gap: 22px; }
.tool-flow > * { min-width: 0; }
.tool-hero.simple { max-width: 780px; padding-bottom: 14px; }
.tool-hero.simple h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.tool-hero.simple .article-deck { font-size: 1.08rem; margin-bottom: 10px; }
.inputs { background: #fff; border: 1px solid var(--t-line); border-radius: 14px; padding: 22px 24px 6px; }
.inputs-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 16px; }
.inputs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 18px; }
.inputs-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.inputs-grid .span-all { grid-column: 1 / -1; }
.field-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.field-head label { font-weight: 600; }
.inputs .tool-field { margin-bottom: 16px; align-content: start; }
.inputs .tool-field select, .inputs .tool-unit input { height: 42px; }
.inputs .tool-field > small { font-size: 0.78rem; }
.more-opts { border-top: 1px solid #edf3ef; margin: 0 -24px; padding: 0 24px; }
.more-opts > summary { white-space: nowrap; list-style: none; cursor: pointer; padding: 13px 0; font-weight: 600; font-size: 0.92rem; color: var(--t-dark); display: flex; align-items: center; gap: 8px; }
.more-opts > summary::-webkit-details-marker { display: none; }
.more-opts > summary::before { content: "+"; width: 20px; height: 20px; border-radius: 50%; background: var(--t-soft); display: grid; place-items: center; font-size: 0.95rem; line-height: 1; }
.more-opts[open] > summary::before { content: "–"; }
.more-opts > summary small { color: var(--t-muted); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-size: 0.84rem; }
.more-opts[open] > summary { padding-bottom: 14px; }

.answer { background: var(--t-soft); border-radius: 16px; padding: 28px 30px; scroll-margin-top: 12px; }
.answer-lead { margin: 0; font-size: 1.05rem; color: #33413d; line-height: 1.45; }
.answer-big { margin: 4px 0 2px; font-family: "Fraunces", ui-serif, Georgia, serif; font-weight: 600; color: var(--t-dark); font-size: clamp(2.6rem, 7vw, 3.8rem); line-height: 1.05; letter-spacing: -0.01em; }
.answer-big.text { font-size: clamp(1.8rem, 4.6vw, 2.5rem); line-height: 1.15; }
.answer-big small { font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 1.05rem; font-weight: 500; color: #33413d; letter-spacing: 0; }
.answer-line { margin: 0; font-size: 1.15rem; line-height: 1.5; color: #22322e; }
.answer-line strong { color: var(--t-dark); }
.answer-line .muted, .muted { color: var(--t-muted); font-size: 0.92rem; }
.answer-rule { border: 0; border-top: 1px solid #d5e8d6; margin: 22px 0 18px; }
.answer .split-bar { background: #fff; height: 28px; }
.answer-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 0.92rem; color: #33413d; }
.answer-facts li b { color: var(--t-ink); font-size: 1rem; }
.answer .gauge-track { height: 10px; }
.answer .gauge-marker b { box-shadow: 0 0 0 2px #fff; background: var(--t-dark); }
.answer .gauge-marker span { background: var(--t-dark); color: #fff; }
.answer .gauge-labels { color: var(--t-muted); }
.answer .gauge-labels span.on { color: var(--t-dark); }
.answer-note { margin: 16px 0 0; font-size: 0.95rem; line-height: 1.55; color: #33413d; }

.more-list { border-top: 1px solid var(--t-line); }
.more { border-bottom: 1px solid var(--t-line); }
.more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px 2px; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary > span { flex: 1; min-width: 0; }
.more > summary b { display: block; font-size: 1rem; color: var(--t-ink); }
.more > summary b { font-weight: 700; }
.more > summary small { font-weight: 400; display: block; color: var(--t-muted); font-size: 0.88rem; margin-top: 2px; line-height: 1.4; }
.more > summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--t-green); border-bottom: 2px solid var(--t-green); transform: rotate(45deg); margin: -4px 6px 0 0; transition: transform 0.15s; }
.more[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.more-body { padding: 0 2px 22px; }
.more-body > .tool-field { max-width: 380px; }

.plain-list { list-style: none; padding: 0; margin: 0; }
.rank-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) minmax(120px, 34%) ; gap: 4px 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid #edf3ef; }
.rank-row:last-child { border-bottom: 0; }
.rank-row .r { font-size: 0.85rem; font-weight: 700; color: var(--t-muted); }
.rank-row.best .r { color: var(--t-green); }
.rank-row .nm { font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.rank-row .nm small { display: block; font-weight: 400; color: var(--t-muted); font-size: 0.8rem; margin-top: 2px; }
.rank-row .val { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; font-size: 0.92rem; }
.rank-row .val i { height: 8px; border-radius: 4px; background: var(--export); flex: none; }
.rank-row .val b { white-space: nowrap; }
.rank-row .val small { color: var(--t-muted); font-size: 0.78rem; white-space: nowrap; }
.rank-row .ins { grid-column: 2 / -1; display: none; gap: 12px; flex-wrap: wrap; }
.show-inputs .rank-row .ins { display: flex; }
.rank-row .ins label { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--t-muted); }
.rank-row .ins input { width: 72px; padding: 5px 7px; border: 1px solid #c9d8ce; border-radius: 6px; font: inherit; font-size: 0.88rem; text-align: right; }
.plain-list.collapsed .rank-row:nth-child(n+6) { display: none; }
.link-btn { font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--t-dark); background: none; border: 0; padding: 8px 0 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.find { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.find > li { position: relative; padding-left: 36px; font-size: 0.93rem; line-height: 1.5; color: #33413d; }
.find > li::before { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 800; color: #fff; margin-top: 1px; }
.find > li strong { display: block; color: var(--t-ink); font-size: 0.98rem; }
.find > li.flag-good::before { content: "✓"; background: #1f8a5b; }
.find > li.flag-warn::before { content: "!"; background: #c98500; }
.find > li.flag-bad::before { content: "✕"; background: #c0392b; }
.find > li.flag-info::before { content: "i"; background: #5470c0; font-family: Georgia, serif; font-style: italic; }
.section-title { font-size: 1.15rem; margin: 6px 0 12px; }

@media (max-width: 720px) {
  .tool-flow { padding: 0 14px; gap: 18px; }
  .inputs { padding: 18px 16px 4px; }
  .more-opts { margin: 0 -16px; padding: 0 16px; }
  .inputs-grid, .inputs-grid.two { grid-template-columns: minmax(0, 1fr); }
  .inputs-grid.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
  .inputs-grid.pair > :first-child { grid-column: 1 / -1; }
  .answer { padding: 22px 18px; border-radius: 14px; }
  .rank-row { grid-template-columns: 20px minmax(0, 1fr); }
  .rank-row .val { grid-column: 2; }
}

/* Bottom of tool pages: FAQ rows match the fold-out rows; CTA and sources sit in the column. */
.tool-content .tool-faq { padding: 0; border: 0; background: none; box-shadow: none; margin-top: 34px; }
.tool-content .tool-faq .faq-list { border-top: 1px solid var(--t-line); display: block; }
.tool-content .tool-faq details { border: 0; border-bottom: 1px solid var(--t-line); border-radius: 0; background: none; box-shadow: none; padding: 0; margin: 0; }
.tool-content .tool-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 2px; font-size: 1rem; font-weight: 700; color: var(--t-ink); }
.tool-content .tool-faq summary::-webkit-details-marker { display: none; }
.tool-content .tool-faq summary::marker { content: ""; }
.tool-content .tool-faq summary::before { content: none; }
.tool-content .tool-faq summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--t-green); border-bottom: 2px solid var(--t-green); transform: rotate(45deg); margin: -4px 6px 0 0; transition: transform 0.15s; }
.tool-content .tool-faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.tool-content .tool-faq details p { margin: 0; padding: 0 2px 18px; color: #33413d; line-height: 1.65; }
.tool-content .article-cta { margin: 40px 0 24px; }
.tool-content .article-sources { margin: 0 0 28px; padding: clamp(22px, 4vw, 34px); }
.tool-content .article-sources h2 { margin-top: 0; }
