/* ---- Paywall.astro ---- */
.pw-free { margin: 4px auto 18px; max-width: 460px; text-align: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft2); }
  .pw-free-lead { font-size: 14.5px; color: var(--ink); margin-bottom: 11px; }
  .pw-free-row { display: flex; gap: 8px; flex-wrap: wrap; }
  .pw-free-row input { flex: 1 1 180px; min-width: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; font-family: inherit; background: #fff; }
  .pw-free-row .btn { flex-shrink: 0; padding: 11px 18px; }
  .pw-free-msg { font-size: 13.5px; margin-top: 9px; color: var(--muted); }
  .pw-free-msg.ok { color: var(--forest); font-weight: 600; }
  .pw-free-fine { font-size: 11.5px; color: var(--muted); margin-top: 9px; }
/* ---- Comments.astro ---- */
.cx { max-width: var(--read); margin: 36px auto 0; padding-top: 24px; border-top: 1px solid var(--line); }
  .cx-react { margin-bottom: 20px; }
  .cx-helpful { font-size: 13.5px; font-weight: 600; border: 1px solid var(--line); background: var(--soft2); border-radius: 999px; padding: 8px 16px; cursor: pointer; color: var(--ink); transition: border-color .2s, background .2s; }
  .cx-helpful:hover { border-color: var(--accent); }
  .cx-helpful.done { background: rgba(60,122,90,.12); border-color: var(--up); color: var(--up); cursor: default; }
  .cx-h { font-size: 1.5rem; margin-bottom: 12px; }
  .cx-empty { color: var(--muted); font-size: 14.5px; }
  .cx-list { list-style: none; padding: 0; margin: 0 0 26px; }
  .cx-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .cx-item .cx-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
  .cx-item .cx-meta b { color: var(--ink); font-weight: 600; }
  .cx-item .cx-body { font-size: 15px; line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; }
  .cx-form { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
  .cx-form h3 { font-size: 1.2rem; margin-bottom: 12px; }
  .cx-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
  .cx-row input { flex: 1 1 200px; min-width: 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; font-size: 14.5px; font-family: inherit; background: #fff; }
  .cx-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; font-size: 14.5px; font-family: inherit; background: #fff; resize: vertical; }
  .cx-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
  .cx-note { font-size: 12px; color: var(--muted); }
  .cx-msg { margin-top: 10px; font-size: 14px; color: var(--muted); }
  .cx-msg.ok { color: var(--forest); font-weight: 600; }
/* ---- ShareBar.astro ---- */
.sharebar { margin: 30px 0 6px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .sb-label { font-family: inherit; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
  .sb-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
  .sb-list > li { margin: 0; }
  /* --panel surface + --ink text + --muted border: >=8:1 text and >=5:1 border on every niche.
     Never --accentSoft here (see header note: it is a hard red on seasonedexpat-pt). */
  .sb-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 13px;
    font-family: inherit; font-size: 12.5px; font-weight: 600; line-height: 1;
    color: var(--ink); background: var(--panel);
    border: 1px solid var(--muted); border-radius: 999px;
    text-decoration: none; cursor: pointer;
    transition: color .15s, border-color .15s, background .15s, transform .15s;
  }
  .sb-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
  .sb-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .sb-btn svg { flex: 0 0 auto; }
  .sb-btn[data-ok] { color: var(--accent); border-color: var(--accent); }
  .sb-live { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  /* The canonical URL, printed only on paper so a printout can be traced back to the article. */
  .sb-print-src { display: none; }
  @media (max-width: 480px) { .sb-btn span:not([data-sb-copy-t]) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .sb-btn { padding: 9px; } }
  @media (prefers-reduced-motion: reduce) { .sb-btn { transition: none; } .sb-btn:hover { transform: none; } }
  @media print {
    .sharebar { display: none !important; }
    .sb-print-src { display: block; font-size: 10pt; color: #000; margin: 10pt 0 0; word-break: break-all; }
    .sb-print-src::before { content: "Source: "; font-weight: 700; }
  }
/* ---- VendorLead.astro ---- */
.vlead { background: var(--soft); border: 1px solid var(--accentSoft); border-radius: 14px; padding: 22px 24px; margin: 30px 0; }
  .vlead h3 { font-size: 1.3rem; margin-bottom: 6px; }
  .vlead-blurb { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
  .vlead-detail { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; font-size: 14.5px; font-family: inherit; background: #fff; margin-bottom: 8px; }
  .vlead-row { display: flex; gap: 8px; flex-wrap: wrap; }
  .vlead-row input[type=email] { flex: 1 1 220px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; font-size: 14.5px; font-family: inherit; background: #fff; }
  .vlead-row .btn { flex-shrink: 0; }
  .vlead-msg { font-size: 13.5px; margin-top: 9px; color: var(--muted); }
  .vlead-msg.ok { color: var(--forest); font-weight: 600; }
  .vlead-fine { font-size: 11.5px; color: var(--muted); margin-top: 9px; }
/* ---- StockChart.astro ---- */
/* Self-contained LIGHT panel — Evan's chosen StockChart redesign. Near-white surface so the
     chart reads as a native brand data card on every niche that embeds it. Categorical line
     palette leads with dark navy, then green / gold / blue / pink / purple identity hues (each
     >=3:1 on the near-white panel). Green/red stay reserved for the up/down semantics. */
  .sc-wrap {
    --sc-bg: #ffffff;
    --sc-border: rgba(15, 23, 42, .12);
    --sc-ink: #111827;
    --sc-muted: #5b6472;
    --sc-faint: #97a1b0;
    --sc-up: #12874a;
    --sc-down: #c23b32;
    --sc-1: rgb(11, 18, 32); --sc-2: #0f7d43; --sc-3: #b7791f;
    --sc-4: #2563eb; --sc-5: #c2255c; --sc-6: #7048e8;

    margin: 26px 0 30px;
    padding: 16px 18px 15px;
    background:
      radial-gradient(120% 140% at 15% 0%, #ffffff 0%, #fbfcfe 55%, #f6f8fb 100%);
    border: 1px solid var(--sc-border);
    border-radius: 14px;
    box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 10px 26px -18px rgba(16,24,40,.30), 0 2px 8px rgba(16,24,40,.05);
    color: var(--sc-ink);
  }

  .sc-eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    margin: 0 0 8px;
    font: 700 10.5px/1 'Inter', system-ui, sans-serif;
    letter-spacing: .14em; text-transform: uppercase; color: var(--sc-muted);
  }
  .sc-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sc-up); box-shadow: 0 0 8px var(--sc-up); flex: none; }

  .sc-plot { width: 100%; }
  .sc-plot svg { display: block; height: auto; overflow: visible; }

  .sc-zero { stroke: rgba(17, 24, 39, .16); stroke-width: 1; }
  .sc-area { opacity: .95; }
  .sc-halo { stroke: var(--sc-bg); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; opacity: .9; }
  .sc-line { stroke: var(--c); stroke-width: 2.1; stroke-linejoin: round; stroke-linecap: round; }
  .sc-end { fill: var(--c); }
  .sc-end-ring { fill: var(--c); opacity: .18; }
  .sc-corner {
    font: 600 11px 'Inter', system-ui, sans-serif; font-variant-numeric: tabular-nums;
    fill: var(--sc-muted); stroke: var(--sc-bg); stroke-width: 3; paint-order: stroke; stroke-linejoin: round;
  }

  .sc-legend { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
  .sc-chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 4px 10px 4px 8px;
    background: rgba(17, 24, 39, .04);
    border: 1px solid rgba(17, 24, 39, .10);
    border-radius: 8px;
    white-space: nowrap;
  }
  .sc-swatch { width: 13px; height: 3px; border-radius: 2px; background: var(--c); flex: none; }
  .sc-sym {
    font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--sc-ink);
  }
  .sc-pct { font: 600 12px 'Inter', system-ui, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
  .sc-pct.up { color: var(--sc-up); }
  .sc-pct.down { color: var(--sc-down); }

  .sc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

  @media (max-width: 560px) {
    .sc-wrap { padding: 13px 13px 12px; border-radius: 12px; }
    .sc-chip { padding: 3px 8px 3px 7px; gap: 6px; }
    .sc-sym, .sc-pct { font-size: 11.5px; }
  }
