/* Blue Canoe tools — shared calculator styles. Uses the site tokens; falls back to its own when embedded alone. */
.bc-tool {
  --t-bg: var(--surface, #fff); --t-ink: var(--ink, #0C2231); --t-muted: var(--muted, #4B5F6D);
  --t-line: var(--line, #CFDBDD); --t-fill: var(--surface-2, #E6EEEF); --t-accent: var(--canoe, #125EA5);
  --t-ok: var(--lagoon, #24857F); --t-gold: var(--gold, #125EA5); --t-gold-ink: var(--gold-ink, #FFFFFF);
  --t-ocean: var(--ocean, #052043); --t-on-ocean: var(--on-ocean, #EAF3F6); --t-on-ocean-muted: var(--on-ocean-muted, #A9C3D0);
  --t-danger: var(--danger, #B3361F); --t-warn-bg: var(--warn-bg, #FFF4DC); --t-warn-ink: var(--warn-ink, #6B4A07);
  --t-display: var(--font-display, Georgia, serif); --t-body: var(--font-body, system-ui, sans-serif); --t-mono: var(--font-mono, ui-monospace, Menlo, monospace);
  font-family: var(--t-body); color: var(--t-ink); font-size: 1rem; line-height: 1.5;
  background: var(--t-bg); border: 1px solid var(--t-line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(12,34,49,.06), 0 10px 30px rgba(12,34,49,.08); text-align: left;
}
.bc-tool *, .bc-tool *::before, .bc-tool *::after { box-sizing: border-box; }
.bc-tool [hidden] { display: none !important; }
.bc-tool h2, .bc-tool h3 { font-family: var(--t-display); margin: 0; line-height: 1.2; font-weight: 500; text-wrap: balance; color: var(--navy, #082B5B); }
.bc-tool p { margin: 0; }
.bc-head { padding: 22px 24px 18px; border-bottom: 1px solid var(--t-line); display: grid; gap: 14px; }
.bc-head h2 { font-size: 1.45rem; }
.bc-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.bc-cols > * { min-width: 0; }
.bc-inputs { padding: 22px 24px; display: grid; gap: 20px; align-content: start; border-right: 1px solid var(--t-line); }
.bc-out { padding: 22px 24px; display: grid; gap: 18px; align-content: start; background: color-mix(in srgb, var(--t-fill) 45%, var(--t-bg)); }
@media (max-width: 860px) { .bc-cols { grid-template-columns: minmax(0, 1fr); } .bc-inputs { border-right: 0; border-bottom: 1px solid var(--t-line); } }
.bc-tool fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.bc-tool legend, .bc-lbl { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: 2px; }
.bc-help { font-size: .86rem; color: var(--t-muted); }
.bc-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-seg label { position: relative; flex: 1 1 auto; }
.bc-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bc-seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--t-line); border-radius: 10px; font-size: .93rem; font-weight: 500; background: var(--t-bg); cursor: pointer; }
.bc-seg input:checked + span { border-color: var(--t-accent); background: color-mix(in srgb, var(--t-accent) 10%, var(--t-bg)); color: var(--t-ink); font-weight: 650; box-shadow: inset 0 0 0 1px var(--t-accent); }
.bc-seg input:focus-visible + span { outline: 3px solid var(--t-gold); outline-offset: 2px; }
.bc-seg.big span { min-height: 64px; flex-direction: column; gap: 2px; font-size: 1rem; }
.bc-seg.big span small { font-weight: 400; color: var(--t-muted); font-size: .8rem; }
.bc-tool select, .bc-tool input[type=number], .bc-tool input[type=email], .bc-tool input[type=text] {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--t-line);
  background: var(--t-bg); color: var(--t-ink); font: inherit; font-size: 1rem;
}
.bc-tool select:focus, .bc-tool input:focus { outline: none; border-color: var(--t-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--t-accent) 22%, transparent); }
.bc-money { position: relative; }
.bc-money::before { content: "$"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--t-muted); }
.bc-money input { padding-left: 26px !important; font-family: var(--t-mono); font-variant-numeric: tabular-nums; }
.bc-step { display: inline-flex; align-items: center; border: 1.5px solid var(--t-line); border-radius: 10px; overflow: hidden; width: max-content; }
.bc-step button { width: 44px; height: 44px; border: 0; background: var(--t-fill); color: var(--t-ink); font-size: 1.3rem; cursor: pointer; font-family: inherit; }
.bc-step button:hover { background: color-mix(in srgb, var(--t-accent) 15%, var(--t-fill)); }
.bc-step input { width: 64px !important; border: 0 !important; border-radius: 0 !important; text-align: center; min-height: 44px !important; font-family: var(--t-mono); -moz-appearance: textfield; }
.bc-step input::-webkit-inner-spin-button { -webkit-appearance: none; }
.bc-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.bc-check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--t-line); border-radius: 10px; cursor: pointer; background: var(--t-bg); }
.bc-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--t-accent); flex: none; }
.bc-check b { font-weight: 600; display: block; }
.bc-check small { color: var(--t-muted); font-size: .84rem; display: block; }
.bc-check:has(input:checked) { border-color: var(--t-accent); }
.bc-check.disabled { opacity: .55; cursor: not-allowed; }
.bc-sub { margin: 4px 0 0 30px; display: grid; gap: 10px; }
.bc-toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.bc-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bc-toggle .sw { width: 48px; height: 28px; border-radius: 999px; background: var(--t-line); position: relative; flex: none; transition: background .15s; }
.bc-toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.bc-toggle input:checked + .sw { background: var(--t-accent); }
.bc-toggle input:checked + .sw::after { transform: translateX(20px); }
.bc-toggle input:focus-visible + .sw { outline: 3px solid var(--t-gold); outline-offset: 2px; }
.bc-note { font-size: .88rem; color: var(--t-muted); background: var(--t-fill); border-radius: 10px; padding: 10px 12px; }
.bc-warn { font-size: .9rem; background: var(--t-warn-bg); color: var(--t-warn-ink); border-radius: 10px; padding: 10px 12px; }
.bc-isl-bar { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-isl-bar button { font: inherit; font-size: .9rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--t-line); background: var(--t-bg); color: var(--t-muted); cursor: pointer; min-height: 38px; }
.bc-isl-bar button[aria-pressed="true"] { background: var(--t-ocean); border-color: var(--t-ocean); color: var(--t-on-ocean); }
.bc-fade { transition: opacity .14s; }
.bc-fade.out { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .bc-fade, .bc-toggle .sw, .bc-toggle .sw::after { transition: none; } }

/* Results */
.bc-big { background: var(--t-ocean); color: var(--t-on-ocean); border-radius: 14px; padding: 20px; display: grid; gap: 4px; }
.bc-big .k { font-size: .9rem; color: var(--t-on-ocean-muted); }
.bc-big .v { font-family: var(--t-display); font-size: clamp(2rem, 1.6rem + 1.6vw, 2.6rem); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bc-big .v small { font-size: .5em; font-weight: 500; color: var(--t-on-ocean-muted); }
.bc-big .s { font-family: var(--t-mono); font-size: .9rem; color: var(--t-on-ocean-muted); }
.bc-lines { display: grid; border-top: 1px solid var(--t-line); }
.bc-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 11px 0; border-bottom: 1px solid var(--t-line); align-items: baseline; }
.bc-line .n { font-weight: 600; }
.bc-line .a { font-family: var(--t-mono); font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; }
.bc-line .d { grid-column: 1 / -1; font-size: .86rem; color: var(--t-muted); }
.bc-line.total .n, .bc-line.total .a { font-weight: 700; font-size: 1.05rem; }
.bc-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.bc-kv > div { background: var(--t-bg); border: 1px solid var(--t-line); border-radius: 10px; padding: 10px 12px; }
.bc-kv b { display: block; font-family: var(--t-mono); font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.bc-kv span { font-size: .8rem; color: var(--t-muted); }
.bc-tool details.bc-how summary { cursor: pointer; font-weight: 600; color: var(--t-accent); font-size: .92rem; }
.bc-tool details.bc-how div { font-size: .88rem; color: var(--t-muted); padding-top: 8px; display: grid; gap: 6px; }
.bc-panel-title { font-family: var(--t-display); font-size: 1.2rem; font-weight: 600; }
.bc-sep { border: 0; border-top: 2px solid var(--t-line); margin: 4px 0; }

/* Packages */
.bc-pkgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 700px) { .bc-pkgs { grid-template-columns: minmax(0, 1fr); } }
.bc-pkg { border: 1.5px solid var(--t-line); border-radius: 12px; padding: 14px; background: var(--t-bg); display: grid; gap: 8px; align-content: start; position: relative; }
.bc-pkg.rec { border-color: var(--t-gold); box-shadow: 0 0 0 1px var(--t-gold); }
.bc-pkg .badge { position: absolute; top: -11px; left: 12px; background: var(--t-gold); color: var(--t-gold-ink); font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; letter-spacing: .02em; }
.bc-pkg h3 { font-size: 1.05rem; }
.bc-pkg .p { font-family: var(--t-mono); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 1.1rem; }
.bc-pkg .p small { color: var(--t-muted); font-weight: 400; font-size: .8rem; display: block; }
.bc-pkg ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: .84rem; color: var(--t-muted); }
.bc-pkg li::before { content: "✓ "; color: var(--t-ok); font-weight: 700; }
.bc-pkg li.no::before { content: "– "; color: var(--t-muted); }

/* Email box */
.bc-email { border: 1.5px solid var(--t-gold); border-radius: 14px; padding: 18px; background: var(--t-bg); display: grid; gap: 10px; }
.bc-email h3 { font-size: 1.15rem; }
.bc-email p { font-size: .93rem; color: var(--t-muted); }
.bc-email form { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-email input[type=email] { flex: 1 1 200px; min-width: 0; border-radius: 999px !important; padding-left: 16px !important; }
.bc-email button, .bc-btn { min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 0; background: var(--t-gold); color: var(--t-gold-ink); font: inherit; font-weight: 700; cursor: pointer; }
.bc-email button:hover, .bc-btn:hover { filter: brightness(1.06); }
.bc-email .err { color: var(--t-danger); font-weight: 600; font-size: .9rem; width: 100%; }
.bc-email .fine { font-size: .8rem; color: var(--t-muted); }
.bc-email .done { font-weight: 700; color: var(--t-ok); }
.bc-email .bc-opt { display: flex; gap: 8px; align-items: center; font-size: .92rem; width: 100%; }
.bc-email .bc-opt input { width: 20px; height: 20px; accent-color: var(--t-accent); }
.bc-disc { font-size: .84rem; color: var(--t-muted); border-top: 1px solid var(--t-line); padding: 14px 24px; background: var(--t-bg); }
.bc-local { font-size: .9rem; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--t-muted); }
.bc-local a { color: var(--t-accent); font-weight: 600; }
.bc-incl { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .9rem; }
.bc-incl li { padding-left: 22px; position: relative; }
.bc-incl li::before { content: "✓"; position: absolute; left: 0; color: var(--t-ok); font-weight: 700; }
.bc-custom { background: var(--t-ocean); color: var(--t-on-ocean); border-radius: 14px; padding: 20px; display: grid; gap: 8px; }
.bc-custom .v { font-family: var(--t-display); font-size: 1.6rem; font-weight: 700; }
.bc-custom p { color: var(--t-on-ocean-muted); }
.bc-custom a { color: var(--t-gold); font-weight: 700; }

/* Timeline */
.bc-tl { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; position: relative; }
.bc-tl::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; border-left: 2px dashed var(--t-line); }
.bc-ms { position: relative; padding: 0 0 18px 46px; }
.bc-ms .dot { position: absolute; left: 6px; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--t-bg); border: 3px solid var(--t-accent); }
.bc-ms.done .dot { border-color: var(--t-line); background: var(--t-line); }
.bc-ms.next .dot { border-color: var(--t-gold); background: var(--t-gold); box-shadow: 0 0 0 6px color-mix(in srgb, var(--t-gold) 25%, transparent); }
.bc-ms .card { border: 1.5px solid var(--t-line); border-radius: 14px; padding: 14px 16px; background: var(--t-bg); display: grid; gap: 6px; }
.bc-ms.next .card { border-color: var(--t-gold); box-shadow: 0 0 0 1px var(--t-gold); }
.bc-ms .when { font-family: var(--t-mono); font-size: .92rem; color: var(--t-accent); font-weight: 600; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.bc-ms .when .age { color: var(--t-muted); font-weight: 500; }
.bc-ms .ttl { font-family: var(--t-display); font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
.bc-ms .chip { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--t-gold); color: var(--t-gold-ink); font-family: var(--t-body); }
.bc-ms.done .chip { background: var(--t-fill); color: var(--t-muted); }
.bc-ms details summary { cursor: pointer; color: var(--t-accent); font-weight: 600; font-size: .95rem; padding: 6px 0; min-height: 32px; }
.bc-ms details p { color: var(--t-muted); font-size: 1rem; padding-top: 4px; }
.bc-ms .extra { font-size: 1rem; color: var(--t-ink); }
.bc-ms .extra b { font-family: var(--t-mono); }
.bc-done-toggle { font: inherit; font-weight: 600; background: none; border: 1.5px dashed var(--t-line); border-radius: 12px; padding: 12px 16px; color: var(--t-muted); cursor: pointer; width: 100%; text-align: left; min-height: 48px; }
.bc-tool.large { font-size: 1.125rem; }
.bc-tool.large .bc-help { font-size: 1rem; }
.bc-tool.large select, .bc-tool.large input { font-size: 1.125rem; min-height: 52px; }
.bc-tool.large .bc-seg span { min-height: 52px; font-size: 1.05rem; }
.bc-tool.large .bc-btn, .bc-tool.large .bc-email button { min-height: 52px; font-size: 1.1rem; }
.bc-printlink { font: inherit; background: none; border: 0; color: var(--t-accent); font-weight: 700; text-decoration: underline; cursor: pointer; padding: 6px 0; min-height: 44px; }
.bc-medi { border-radius: 12px; padding: 14px 16px; border: 1.5px solid var(--t-line); background: var(--t-bg); display: grid; gap: 6px; }
.bc-medi.near { border-color: var(--t-gold); }
.bc-medi.above { border-color: var(--t-danger); }
.bc-medi b { font-family: var(--t-display); font-size: 1.1rem; }

@media print {
  .bc-tool { box-shadow: none; border: 0; }
  .bc-tool .bc-inputs, .bc-email, .bc-printlink, .bc-done-toggle, .bc-tool details summary { display: none !important; }
  .bc-cols { grid-template-columns: 1fr !important; }
  .bc-ms.done { display: block !important; }
  .bc-tool details > p, .bc-tool details > div { display: block !important; }
}

.bc-wide { padding: 22px 24px; border-top: 1px solid var(--t-line); display: grid; gap: 18px; }
.bc-wide .bc-email { max-width: 760px; }


/* ===== Design-system pass ===== */
.bc-tool { --t-sand: var(--sand, #F3EFE7); --t-sand-50: var(--sand-50, #FAF8F4); --t-sun: var(--sun, #F2B544); --t-blue-50: var(--blue-50, #EDF3FA); --t-blue-100: var(--blue-100, #D3E3F3);
  border-radius: 20px; box-shadow: none; }
.bc-out { background: var(--t-sand-50); }
.bc-tool select, .bc-tool input[type=number], .bc-tool input[type=email], .bc-tool input[type=text] { border-radius: 12px; }
.bc-tool select:focus, .bc-tool input:focus { box-shadow: 0 0 0 4px var(--t-blue-100); }
.bc-seg span, .bc-check { border-radius: 12px; }
.bc-seg input:checked + span { background: var(--t-blue-50); }
.bc-big { background: var(--t-sand); color: var(--t-ink); border-radius: 16px; }
.bc-big .k { color: var(--t-muted); }
.bc-big .v { color: var(--navy, #082B5B); font-weight: 500; }
.bc-big .v small, .bc-big .s { color: var(--t-muted); }
.bc-big .s { font-family: var(--t-body); }
.bc-custom { background: var(--t-sand); color: var(--t-ink); }
.bc-custom .v { color: var(--navy, #082B5B); font-weight: 500; }
.bc-custom p { color: var(--t-muted); }
.bc-custom a { color: var(--t-accent); }
.bc-isl-bar button[aria-pressed="true"] { background: var(--navy, #082B5B); border-color: var(--navy, #082B5B); color: #fff; }
.bc-pkg { border-radius: 16px; }
.bc-pkg.rec { border-color: var(--t-sun); box-shadow: 0 0 0 1px var(--t-sun); }
.bc-pkg .badge { background: var(--t-sun); color: var(--navy, #082B5B); }
.bc-email { border: 0; background: var(--t-blue-50); border-radius: 16px; }
.bc-email input[type=email] { border-radius: 12px !important; background: #fff; }
.bc-email button::after, .bc-btn::after { content: " →"; }
.bc-ms.next .dot { border-color: var(--t-sun); background: var(--t-sun); box-shadow: 0 0 0 6px rgba(242,181,68,.25); }
.bc-ms.next .card { border-color: var(--t-sun); box-shadow: 0 0 0 1px var(--t-sun); }
.bc-ms .chip { background: var(--t-sun); color: var(--navy, #082B5B); }
.bc-ms .when { font-family: var(--t-body); }
.bc-line .a, .bc-kv b, .bc-pkg .p, .bc-money input { font-family: var(--t-body); }
.bc-medi.near { border-color: var(--t-sun); }
.bc-pkg li::before, .bc-incl li::before { color: var(--t-accent); }

/* Island chips with island-shape icons (match the hero map) */
.bc-isl-bar { gap: 8px; }
.bc-isl-bar button.bc-isle { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; border: 1.5px solid var(--t-line); background: var(--t-sand-50); color: var(--t-muted); min-height: 44px; }
.bc-isle svg { width: 30px; height: 30px; flex: none; }
.bc-isle svg path { fill: var(--sand-200, #E6E0D4); stroke: #fff; stroke-width: .6; transition: fill 160ms; }
.bc-isl-bar button.bc-isle:hover { border-color: var(--blue-300, #78A6D4); color: var(--navy, #082B5B); }
.bc-isl-bar button.bc-isle:hover svg path { fill: var(--blue-200, #A9C8E6); }
.bc-isl-bar button.bc-isle[aria-pressed="true"] { background: var(--t-blue-50); border-color: var(--t-accent); color: var(--t-accent); box-shadow: inset 0 0 0 1px var(--t-accent); }
.bc-isl-bar button.bc-isle[aria-pressed="true"] svg path { fill: var(--t-accent); }
.bc-isle svg path { fill: #B7C2CF; }
.bc-isl-bar button.bc-isle { color: var(--navy, #082B5B); }

/* Readability pass: sans for all calculator headings, darker helper text, no tiny print */
.bc-tool { --t-muted: #3F4B5B; color: #1C2B3F; }
.bc-tool h2 { font-family: var(--t-display); }
.bc-tool h3, .bc-panel-title, .bc-ms .ttl, .bc-medi b, .bc-pkg h3, .bc-email h3 { font-family: var(--t-body); font-weight: 600; letter-spacing: 0; }
.bc-panel-title { font-size: 1.125rem; }
.bc-ms .ttl { font-size: 1.125rem; }
.bc-help, .bc-note, .bc-warn, .bc-line .d, .bc-email p, .bc-pkg ul, .bc-local, .bc-kv span { font-size: .9375rem; }
.bc-email .fine, .bc-disc { font-size: .875rem; color: #3F4B5B; }
.bc-seg.big span small, .bc-check small { font-size: .875rem; color: #3F4B5B; }
.bc-pkg .p small { font-size: .875rem; }
.bc-pkg .badge { font-size: .78rem; }
