/* ============================================================
   Blog — shared styles for the index (/blog) and every post.
   One column, phone first. The site's own tokens from styles.css
   carry the palette, so a post page only loads styles.css + this.
   ============================================================ */

.bl-wrap { max-width: 720px; margin: 0 auto; padding: 0 22px 3.5rem; }
.bl-wrap--wide { max-width: 860px; }

.bl-brand { display: flex; justify-content: center; padding: 1.6rem 0 0.4rem; }
.bl-brand img { height: 26px; width: auto; }

/* ---- masthead (index) ---- */
.bl-head { text-align: center; padding: 1.5rem 0 1.2rem; }
.bl-head__kicker {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 8vw, 2.9rem); line-height: 1.06; letter-spacing: -0.015em;
  background: linear-gradient(120deg, var(--clay), var(--ochre));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bl-head__en {
  display: block; margin-top: 0.5rem; font-size: clamp(0.68rem, 2.3vw, 0.8rem);
  font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted);
  padding-inline-start: 0.32em;
}
.bl-rule { width: 54px; height: 2px; margin: 1.05rem auto 1.1rem; border-radius: 2px;
  background: linear-gradient(90deg, var(--clay), var(--ochre)); }
.bl-head p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto; line-height: 1.75; font-size: 0.97rem; }

/* ---- post cards on the index ---- */
.bl-list { display: grid; gap: 14px; margin-top: 1.6rem; }
.bl-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1.05rem 1.15rem 1.1rem;
  text-decoration: none; color: inherit; position: relative; overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.bl-card::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--clay), var(--ochre));
  opacity: 0.85;
}
.bl-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--cream-2); }
.bl-card__meta { display: flex; gap: 0.55rem; align-items: center; flex-wrap: wrap;
  font-size: 0.74rem; color: var(--muted); letter-spacing: 0.02em; }
.bl-card__tag { color: var(--clay); font-weight: 700; }
.bl-card__dot { opacity: 0.5; }
.bl-card h2 {
  font-family: var(--font-display-he); font-weight: 700; color: var(--ink);
  font-size: 1.12rem; line-height: 1.42; margin: 0.45rem 0 0.4rem; letter-spacing: -0.005em;
}
.bl-card p { margin: 0; color: var(--ink-soft); font-size: 0.93rem; line-height: 1.7; }
.bl-card__go { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.6rem;
  font-size: 0.85rem; font-weight: 700; color: var(--clay); }

/* ---- post page ---- */
.bl-crumb { padding: 1.1rem 0 0; font-size: 0.8rem; color: var(--muted); }
.bl-crumb a { color: var(--clay); text-decoration: none; }
.bl-crumb a:hover { text-decoration: underline; text-underline-offset: 2px; }

.bl-post__meta { display: flex; gap: 0.55rem; align-items: center; flex-wrap: wrap;
  margin-top: 1.5rem; font-size: 0.78rem; color: var(--muted); }
.bl-post__tag { color: var(--clay); font-weight: 700; }
.bl-post h1 {
  font-family: var(--font-display-he); font-weight: 700; color: var(--ink);
  font-size: clamp(1.5rem, 6.2vw, 2.15rem); line-height: 1.3; letter-spacing: -0.012em;
  margin: 0.55rem 0 0.8rem;
}
.bl-post__lead { font-size: 1.03rem; line-height: 1.8; color: var(--ink-soft);
  padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }

.bl-post h2 {
  font-family: var(--font-display-he); font-weight: 700; color: var(--ink);
  font-size: clamp(1.18rem, 4.6vw, 1.42rem); line-height: 1.4;
  margin: 2.4rem 0 0.75rem;
}
.bl-post h3 { font-size: 1.02rem; font-weight: 700; color: var(--ink); margin: 1.7rem 0 0.5rem; }
.bl-post p { line-height: 1.85; color: var(--ink-soft); margin: 0 0 1.05rem; font-size: 1rem; }
.bl-post strong, .bl-post b { color: var(--ink); font-weight: 700; }
.bl-post a { color: var(--clay); text-decoration: underline; text-underline-offset: 2px; }
.bl-post ul, .bl-post ol { margin: 0 0 1.15rem; padding-inline-start: 1.15rem; }
.bl-post li { line-height: 1.8; color: var(--ink-soft); margin-bottom: 0.45rem; }

.bl-fig { margin: 1.6rem 0; }
.bl-fig img { width: 100%; height: auto; display: block; border-radius: var(--r-md); border: 1px solid var(--line); }
.bl-fig figcaption { margin-top: 0.5rem; font-size: 0.78rem; color: var(--muted); text-align: center; }

/* a pull-out number, used sparingly */
.bl-stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 1.5rem 0; }
.bl-stat > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 0.8rem 0.9rem; }
.bl-stat b { display: block; font-family: var(--font-display); font-size: 1.32rem; color: var(--ink);
  letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.bl-stat span { display: block; margin-top: 0.15rem; font-size: 0.78rem; color: var(--muted); line-height: 1.45; }

/* the money table — the heart of a deal post */
.bl-table { margin: 1.5rem 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bl-table table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.bl-table th, .bl-table td { text-align: start; padding: 0.62rem 0.6rem; border-bottom: 1px solid var(--line); }
.bl-table thead th { font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; border-bottom-width: 2px; }
.bl-table td.num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap;
  color: var(--ink); font-weight: 600;
  /* lay the number out as its own LTR run so a leading minus stays on the left */
  unicode-bidi: plaintext; }
.bl-table tr.is-credit td.num { color: var(--gain-deep); }
.bl-table tr.is-total td { border-top: 2px solid var(--ink); border-bottom: none; padding-top: 0.75rem;
  font-weight: 700; color: var(--ink); }
.bl-table small { display: block; color: var(--muted); font-size: 0.76rem; font-weight: 400; margin-top: 0.12rem; }

.bl-note { background: var(--cream); border: 1px solid var(--cream-2); border-radius: var(--r-md);
  padding: 0.95rem 1.05rem; margin: 1.5rem 0; }
.bl-note p { margin: 0; font-size: 0.93rem; line-height: 1.75; color: var(--ink); }
.bl-note p + p { margin-top: 0.6rem; }

/* ---- onward links + cta ---- */
.bl-next { margin: 2.6rem 0 0; display: grid; gap: 10px; }
.bl-next a {
  display: flex; align-items: center; gap: 0.75rem; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 0.8rem 0.9rem;
  text-decoration: none; color: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.bl-next a:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.bl-next__thumb { flex: 0 0 44px; height: 44px; border-radius: 10px; overflow: hidden;
  display: grid; place-items: center; background: var(--cream); }
.bl-next__thumb img { width: 100%; height: 100%; object-fit: cover; }
.bl-next__thumb--logo img { width: 80%; height: auto; object-fit: contain; }
.bl-next__txt { flex: 1 1 auto; min-width: 0; }
.bl-next__txt b { display: block; font-size: 0.94rem; color: var(--ink); }
.bl-next__txt small { display: block; font-size: 0.79rem; color: var(--muted); margin-top: 0.1rem; }

.bl-cta { margin-top: 2.6rem; text-align: center; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem 1.2rem; }
.bl-cta h2 { font-family: var(--font-display-he); font-weight: 700; font-size: 1.2rem;
  color: var(--ink); margin: 0 0 1rem; line-height: 1.4; }
.bl-cta .btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.bl-foot { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); text-align: center; }
.bl-foot__link { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.bl-foot__link img { height: 20px; width: auto; }
.bl-foot__link span { font-size: 0.88rem; color: var(--clay); font-weight: 700; }
.bl-foot small { display: block; margin-top: 0.8rem; font-size: 0.76rem; color: var(--muted); line-height: 1.7; }
.bl-foot a { color: inherit; }

/* ---- reveal ---- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ---- narrow phones: the money table has to fit 375px without its own scroll ---- */
@media (max-width: 430px) {
  .bl-table table { font-size: 0.82rem; }
  .bl-table th, .bl-table td { padding: 0.55rem 0.35rem; }
  .bl-table .vend { font-size: 0.74rem; color: var(--muted); font-weight: 400; }
  .bl-table small { font-size: 0.7rem; }
  .bl-table thead th { font-size: 0.68rem; letter-spacing: 0.03em; }
}

/* ---- buttons inside a post: .bl-post a would otherwise paint them clay + underline ---- */
.bl-post a.btn { text-decoration: none; }
.bl-post a.btn-primary { color: #fff; }
.bl-post a.btn-ghost { color: var(--ink); }

/* ---- source line under a stat block ---- */
.bl-src { font-size: 0.76rem; color: var(--muted); line-height: 1.7; margin: -0.6rem 0 1.4rem; }
.bl-post .bl-src a { color: var(--ink-soft); }

/* ---- one-line nudge between sections ---- */
.bl-inline { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-inline-start: 3px solid var(--clay);
  border-radius: var(--r-md); padding: 0.85rem 1rem; margin: 1.6rem 0; }
.bl-inline p { margin: 0; font-size: 0.95rem; color: var(--ink); line-height: 1.6; }
.bl-post .bl-inline a { font-weight: 700; white-space: nowrap; text-decoration: none; }

/* ---- cta extras ---- */
.bl-cta p { margin: -0.4rem auto 1.1rem; max-width: 38ch; font-size: 0.95rem; line-height: 1.7; color: var(--ink-soft); }
.bl-cta .btn-wa { background: #25D366; color: #fff; box-shadow: 0 10px 24px rgba(37, 211, 102, 0.28); }
.bl-cta .btn-wa:hover { background: #1fb457; transform: translateY(-2px); }
.bl-cta .btn-wa svg { width: 20px; height: 20px; }
.bl-post .bl-cta__more { display: inline-block; margin-top: 1rem; font-size: 0.86rem; }
.bl-table td.is-gain { color: var(--gain-deep); }
/* three stats on a phone: one per row, number beside its label */
@media (max-width: 430px) {
  .bl-stat--rows { grid-template-columns: 1fr; gap: 8px; }
  .bl-stat--rows > div { display: flex; align-items: center; gap: 0.9rem; padding: 0.7rem 0.9rem; }
  .bl-stat--rows b { flex: 0 0 4.7rem; font-size: 1.4rem; }
  .bl-stat--rows span { margin-top: 0; }
}

/* ============================================================
   v5: a lighter, more visual post layout (.bl-post--v2)
   Bigger type, a full-bleed hero on phones, numbers as visuals
   instead of a wall of figures, and a money card for the deal.
   ============================================================ */
.bl-post--v2 p { font-size: 1.06rem; line-height: 1.8; }
.bl-post--v2 .bl-post__lead { font-size: 1.12rem; line-height: 1.75; border-bottom: 0; padding-bottom: 0; }
.bl-post--v2 h1 { font-size: clamp(1.7rem, 7.2vw, 2.3rem); line-height: 1.25; }
.bl-post--v2 .bl-sec h2 { font-size: clamp(1.35rem, 5.4vw, 1.6rem); margin: 0 0 0.8rem; }
.bl-post--v2 .bl-src { margin: 0.2rem 0 1.2rem; }

.bl-sec { margin-top: 3rem; }
.bl-sec__label { display: flex; align-items: center; gap: 0.6rem; font-size: 0.78rem; font-weight: 700;
  color: var(--clay); letter-spacing: 0.06em; margin-bottom: 0.55rem; }
.bl-sec__label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* photos bleed to the phone's edges */
.bl-hero { position: relative; margin: 1.3rem -22px 0; overflow: hidden; background: var(--sand); }
.bl-hero img { width: 100%; height: auto; display: block; }
.bl-hero__cap { position: absolute; inset-inline: 0; bottom: 0; padding: 2.6rem 20px 1rem; color: #fff;
  background: linear-gradient(180deg, rgba(20,18,16,0) 0%, rgba(20,18,16,0.8) 100%); }
.bl-hero__cap b { display: block; font-family: var(--font-display-he); font-size: 1.25rem; line-height: 1.3; }
.bl-hero__cap span { display: block; font-size: 0.92rem; opacity: 0.92; margin-top: 0.2rem; }
.bl-photo { margin: 0 -22px 1.2rem; }
.bl-photo img { width: 100%; height: auto; display: block; background: var(--sand); }
.bl-photo figcaption { font-size: 0.78rem; color: var(--muted); padding: 0.45rem 22px 0; }
@media (min-width: 760px) {
  .bl-hero { margin-inline: 0; border-radius: var(--r-lg); }
  .bl-photo { margin-inline: 0; }
  .bl-photo img { border-radius: var(--r-md); }
  .bl-photo figcaption { padding-inline: 0; }
}

/* the rate, then and now */
.bl-rate { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1rem 1.1rem 0.5rem; margin: 1.2rem 0 10px; }
.bl-rate__title { font-size: 0.84rem; color: var(--muted); margin: 0 0 0.8rem; }
.bl-rate__row { display: grid; grid-template-columns: 4.6rem 1fr; align-items: center; gap: 0.7rem; margin-bottom: 0.6rem; }
.bl-rate__row span { font-size: 0.88rem; color: var(--ink-soft); font-weight: 600; }
.bl-rate__bar { height: 42px; border-radius: 9px; background: var(--sand); width: var(--w);
  display: flex; align-items: center; padding-inline: 0.75rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); white-space: nowrap; }
.bl-rate__row.is-now .bl-rate__bar { background: var(--clay); color: #fff; }

.bl-big { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 0.7rem; }
.bl-big > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 0.95rem; }
.bl-big b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 2.1rem; line-height: 1;
  color: var(--clay); letter-spacing: -0.02em; white-space: nowrap; }
.bl-big span { display: block; margin-top: 0.5rem; font-size: 0.88rem; line-height: 1.45; color: var(--ink-soft); }

.bl-quote { margin: 1.5rem 0; padding: 1.2rem 1.25rem; background: var(--cream); border-radius: var(--r-lg);
  font-family: var(--font-display-he); font-size: 1.32rem; line-height: 1.5; color: var(--ink); font-weight: 700; }

/* the deal, as a money card */
.bl-money { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin: 1.3rem 0 0.9rem; }
.bl-money__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 1.1rem; background: var(--cream); }
.bl-money__top span { font-size: 0.95rem; color: var(--ink); font-weight: 700; }
.bl-money__top b { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--ink); white-space: nowrap; }
.bl-money__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.72rem 1.1rem; border-top: 1px solid var(--line); font-size: 0.97rem; color: var(--ink-soft); }
.bl-money__row b { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-weight: 600; white-space: nowrap; unicode-bidi: plaintext; }
.bl-money__row small { display: block; font-size: 0.76rem; color: var(--muted); margin-top: 0.1rem; }
.bl-money__net { padding: 1.1rem 1.1rem 1.2rem; background: rgba(14,122,85,0.08); border-top: 2px solid var(--gain-deep); }
.bl-money__net span { display: block; font-size: 0.92rem; color: var(--gain-deep); font-weight: 700; }
.bl-money__net b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 2.4rem; line-height: 1.15; color: var(--gain-deep); }
.bl-money__net em { display: inline-block; font-style: normal; margin-top: 0.55rem; font-size: 0.86rem; font-weight: 700; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.28rem 0.75rem; }
.bl-post .bl-money__link { display: inline-block; font-size: 0.9rem; font-weight: 700; margin: 0 0 1.2rem; }

.bl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1rem; }
.bl-chips span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 0.85rem; font-size: 0.9rem; color: var(--ink); }
.bl-chips b { color: var(--clay); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }

.bl-post .bl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bl-post .bl-steps li { display: flex; gap: 0.9rem; align-items: flex-start; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 0.95rem 1rem; line-height: 1.6; color: var(--ink-soft); font-size: 1rem; margin: 0; }
.bl-steps i { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--clay); color: #fff;
  display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 0.9rem; margin-top: 0.1rem; }
.bl-steps b { display: block; color: var(--ink); }
/* three market chips: one per row on phones, a row of three on wider screens */
.bl-chips { display: grid; grid-template-columns: 1fr; }
.bl-chips span { display: flex; align-items: baseline; gap: 0.55rem; }
@media (min-width: 560px) { .bl-chips { grid-template-columns: repeat(3, 1fr); } }

/* thin brand strip along the top edge of the hero photo */
.bl-hero::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 5px; z-index: 1;
  background: linear-gradient(90deg, var(--clay), var(--ochre)); }
.bl-hero--mid { margin-top: 2rem; }

/* sticky mobile CTA for posts: one tap away wherever the reader is.
   Reuses the /start bar look; shown by JS once the lead scrolls out. */
.bl-sticky { position: fixed; bottom: 0; left: 0; right: 0; z-index: 95; display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.85rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: rgba(251, 244, 232, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); animation: bl-sticky-up 0.3s var(--ease); }
.bl-sticky[hidden] { display: none; }
@keyframes bl-sticky-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.bl-sticky__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px;
  padding: 0.75rem 1.1rem; border-radius: 999px; text-decoration: none; color: #FFFDF9; font-weight: 700; font-size: 1rem;
  background: linear-gradient(135deg, var(--clay), var(--ochre)); box-shadow: 0 16px 34px -18px rgba(180, 95, 60, 0.55); }
.bl-sticky__wa { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; }
.bl-sticky__wa svg { width: 26px; height: 26px; }
@media (min-width: 769px) { .bl-sticky { display: none; } }
@media (max-width: 768px) { .bl-sticky:not([hidden]) ~ .wa-float { display: none; } body.has-sticky .bl-wrap { padding-bottom: 6rem; } }
.bl-money__top small { display: block; font-size: 0.76rem; color: var(--muted); font-weight: 400; margin-top: 0.1rem; }
/* hero caption: readable on a bright winter photo */
.bl-hero__cap { padding: 3.4rem 20px 1.15rem; text-shadow: 0 1px 3px rgba(0,0,0,0.55);
  background: linear-gradient(180deg, rgba(20,18,16,0) 0%, rgba(20,18,16,0.55) 45%, rgba(20,18,16,0.92) 100%); }
.bl-hero__cap b { font-size: 1.55rem; }
.bl-hero__cap span { font-size: 1rem; opacity: 1; }
/* .bl-post b paints bold text ink; the caption over the photo must stay white */
.bl-post .bl-hero__cap b { color: #fff; }
.bl-hero__cap { padding-top: 2.4rem;
  background: linear-gradient(180deg, rgba(20,18,16,0) 0%, rgba(20,18,16,0.82) 34%, rgba(20,18,16,0.94) 100%); }
