/* Shared calculator-embed styles for model pages. These classes are NOT in the
   model pages' inline <style> block (which carries only the core calculator
   grid/field/results rules); they complete the embed so it renders exactly
   like the homepage calculator. Every rule is scoped under .model-calc so it
   beats the article typography rules (.article p / h2 / ul / li) that would
   otherwise restyle the embed. Loaded via /model-calculator.css. */
.model-calc .calc-invite { font-size: 1.02rem; line-height: 1.55; color: var(--ink); background: var(--accent-soft); border-radius: 12px; padding: 14px 18px; margin: 0 0 18px; }
.model-calc .calc-invite strong { color: var(--accent-strong);}
.model-calc .prefill-note { font-size: .92rem;}
.model-calc .prefill-note { font-size: .88rem; color: var(--muted); background: var(--accent-soft); border-radius: 12px; padding: 12px 16px; line-height: 1.55; margin: 0 0 18px;}
.model-calc .prefill-note strong { color: var(--ink);}
.model-calc .state-picker { padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px solid var(--line);}
.model-calc .state-picker .field-help { margin-top: 10px;}
.model-calc .field-help { font-size: .8rem; color: var(--muted); margin-top: 6px; line-height: 1.45;}
.model-calc .field-hint { font-size: .8rem; color: var(--muted); margin-top: 6px;}
.model-calc .field-hint a { color: var(--accent-strong); font-weight: 600;}
.model-calc .typical-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-strong); font-weight: 600; cursor: pointer; text-decoration: underline;}
.model-calc details.extra-costs { margin-top: 14px; border: 1px dashed var(--line); border-radius: 14px; padding: 12px 16px;}
.model-calc details.extra-costs summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--muted);}
.model-calc details.extra-costs summary:hover { color: var(--accent);}
.model-calc details.extra-costs .field-grid { margin-top: 12px;}
.model-calc .sources-note { font-size: .78rem; color: var(--muted); line-height: 1.6; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line);}
.model-calc .sources-note b { color: var(--ink);}
.model-calc .permile-card {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 14px;
      margin: 18px 0 0;
      padding: 14px 15px;
      border-radius: 10px;
      border: 1px solid var(--line);
      background: var(--surface);}
.model-calc .permile-card span { color: var(--muted); font-size: .82rem;}
.model-calc .permile-card strong { font-family: "DM Mono", monospace; font-size: 1.3rem; letter-spacing: -.04em; color: var(--accent-strong);}
.model-calc .scenarios { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px;}
.model-calc .scenarios h2 { font-size: .9rem; margin: 0 0 6px;}
.model-calc .scenario-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: baseline; padding: 7px 10px; border-radius: 8px;}
.model-calc .scenario-row + .scenario-row { margin-top: 4px;}
.model-calc .scenario-row span { font-size: .82rem; color: var(--muted);}
.model-calc .scenario-row strong { font-family: "DM Mono", monospace; font-size: .92rem; font-variant-numeric: tabular-nums;}
.model-calc .scenario-row small { color: var(--muted); font-family: "DM Mono", monospace; font-size: .72rem; font-variant-numeric: tabular-nums;}
.model-calc .scenario-row.is-typical { background: var(--accent-soft);}
.model-calc .scenario-row.is-typical span { color: var(--ink); font-weight: 600;}
.model-calc .scenario-note { color: var(--muted); font-size: .78rem; line-height: 1.45; margin: 0 0 10px;}
.model-calc .what-next { margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line);}
.model-calc .what-next h2 { font-size: 1.05rem; margin: 0 0 8px;}
.model-calc .what-next ul { list-style: none; margin: 0; padding: 0;}
.model-calc .what-next li { margin: 8px 0;}
.model-calc .what-next a { font-weight: 700;}
.model-calc .spread-word { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);}
.model-calc .spread-word p { margin: 0 0 10px; font-size: .82rem; line-height: 1.45; color: var(--ink);}

/* Shield: core calculator classes that live in the page inline <style> lose to
   .article ul / li / h2, so re-assert them scoped under .model-calc. */
.model-calc h2 { margin: 0; font-size: 1.02rem; letter-spacing: -.02em; }
.model-calc .breakdown-title h2 { font-size: .9rem; }
.model-calc .scenarios h2 { font-size: .9rem; margin: 0 0 6px; }
.model-calc .what-next h2 { font-size: 1.05rem; margin: 0 0 8px; }
.model-calc .cost-list { list-style: none; padding: 0; margin: 0; }
.model-calc .cost-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 7px 0; }
.model-calc .what-next ul { list-style: none; margin: 0; padding: 0; }
.model-calc .what-next li { margin: 8px 0; }
.model-calc .field-help { margin: 6px 0 0; }

/* Embed layout inside the narrower model-page article: two field columns
   instead of three, so inputs stay comfortable. */
.model-calc .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 380px) { .model-calc .field-grid { grid-template-columns: 1fr; } }

/* Range variant (Durango, first): the total is a range, so it needs a
   smaller size to fit, and the resale range is a fixed display, not an
   input. Only pages with data-resale-low / data-resale-high use these. */
.model-calc .total.is-range { font-size: clamp(1.55rem, 3.6vw, 2.5rem); }
.model-calc .sticky-value.is-range { font-size: 1.3rem; }
.model-calc .range-value { display: block; width: 100%; min-height: 45px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--ink); padding: 11px 10px; font-family: "DM Mono", monospace; font-size: .9rem; }
.model-calc .range-note { color: var(--muted); font-size: .8rem; line-height: 1.5; margin: 10px 0 0; }
.model-calc .range-note strong { color: var(--ink); }
