/* Articles: same tokens and chrome as the sales page (index.html) */
:root {
  --bg: #FAF9F5;
  --bg-soft: #F2EFE6;
  --coral: #CC785C;
  --coral-dark: #B56548;
  --coral-soft: #FDF1EC;
  --ink: #1E1B17;
  --ink-900: #2D2A26;
  --ink-700: #4A453F;
  --muted: #8B8680;
  --line: #E6E0D2;
  --code-bg: #1E1B17;
  --gradient-coral: linear-gradient(135deg, #E8997E 0%, #CC785C 45%, #A55540 100%);
  --gradient-warm: linear-gradient(135deg, #FFF7F0 0%, #FDF1EC 50%, #FAE4D8 100%);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  direction: rtl;
  line-height: 1.75;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
img { max-width: 100%; display: block; }
a { color: var(--coral-dark); }

/* Header: dark, like the footer (Hadas 7.11.26) */
header {
  position: sticky; top: 0; z-index: 100;
  background: #141210;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: #fff; text-decoration: none; line-height: 1.3; }
.brand-mark {
  width: 38px; height: 38px; flex: none;
  background: var(--gradient-coral); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 18px;
}
.brand-text { font-size: 16px; }
.brand-text small { display: block; font-size: 12px; color: #E8997E; font-weight: 700; }
.header-nav { display: flex; align-items: center; gap: 18px; }
.header-nav a.nav-link { color: rgba(255,255,255,.82); font-weight: 600; font-size: 15px; text-decoration: none; }
.header-nav a.nav-link:hover, .header-nav a.nav-link[aria-current] { color: #E8997E; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 14px;
  font-family: inherit; font-weight: 700; font-size: 17px; line-height: 1.2;
  text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.btn-primary { background: var(--gradient-coral); color: #fff; box-shadow: 0 6px 20px rgba(204,120,92,.35); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 15px; border-radius: 10px; }

/* Layout (follows BizAgent article sites: wide frame, article in a white card) */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
main { padding: 26px 0 64px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.crumb a { color: var(--coral-dark); font-weight: 600; text-decoration: none; }

/* Article card */
.art {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 38px clamp(20px, calc(8vw - 10px), 92px);
  box-shadow: 0 22px 52px -38px rgba(0,0,0,.38);
}
.art h1 { font-size: clamp(28px, 5.5vw, 40px); line-height: 1.18; letter-spacing: -.02em; font-weight: 800; margin: 0 0 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 22px; }
.artcover { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 16px; margin: 0 0 24px; border: 1px solid var(--line); background: var(--coral-dark); }
.art p.lead { font-size: 21px; line-height: 1.7; color: var(--ink); font-weight: 500; margin-bottom: 18px; }
.art h2 { font-size: 25px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; margin: 34px 0 14px; padding-inline-start: 15px; border-inline-start: 4px solid var(--coral); scroll-margin-top: 90px; }
.art h3 { font-size: 20px; margin: 26px 0 8px; }
.art p, .art li { font-size: 18.5px; line-height: 1.8; color: var(--ink-900); }
.art p { margin: 0 0 17px; }
.art p, .art li { text-align: justify; text-justify: inter-word; }
.art ul, .art ol { margin: 0 0 17px; padding-inline-start: 24px; }
.art li { margin-bottom: 6px; }
.art a { color: var(--coral-dark); text-decoration: underline; text-underline-offset: 3px; }
.art a.btn { text-decoration: none; color: #fff; }
.art code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .85em; background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; direction: ltr; unicode-bidi: isolate; }
.cmd { position: relative; margin: 10px 0 20px; direction: ltr; }
.cmd pre {
  background: var(--code-bg); color: #F4EDE4; border-radius: 12px;
  padding: 46px 18px 16px; overflow-x: auto;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 15px; line-height: 1.6; text-align: left;
}
.art .cmd pre code { background: none; padding: 0; border-radius: 0; color: inherit; font-size: inherit; white-space: pre; }
.cmd .copy {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 8px;
  padding: 6px 12px; font-family: 'Heebo', sans-serif; font-size: 13px; cursor: pointer;
}
.cmd .copy:hover { background: rgba(255,255,255,.22); }
.note { border-inline-start: 4px solid var(--coral); background: var(--coral-soft); border-radius: 10px; padding: 14px 18px; margin: 18px 0; }
.note p:last-child { margin-bottom: 0; }

.toc { margin: 6px 0 30px; padding: 2px 20px; border: 1px solid var(--line); border-inline-start: 4px solid var(--coral); border-radius: 14px; background: var(--coral-soft); }
.toc > summary { cursor: pointer; list-style: none; font-weight: 800; font-size: 15.5px; color: var(--coral-dark); padding: 13px 0; display: flex; align-items: center; gap: 9px; }
.toc > summary::-webkit-details-marker { display: none; }
.toc > summary::after { content: "▾"; font-size: 14px; transition: transform .15s; }
.toc[open] > summary::after { transform: rotate(180deg); }
.toc ol { margin: 0 0 15px; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 7px; }
.toc li { counter-increment: toc; font-size: 16px; text-align: start; }
.toc li::before { content: counter(toc) ". "; color: var(--coral-dark); font-weight: 800; }
.toc a { font-weight: 600; color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--coral-dark); text-decoration: underline; }

.cta-box { background: var(--ink); color: #fff; border-radius: 18px; padding: 26px 24px; margin: 36px 0; text-align: center; }
.art .cta-box p { color: rgba(255,255,255,.78); text-align: center; margin-bottom: 18px; }
.art .cta-box p.cta-title { color: #fff; font-size: 22px; font-weight: 800; margin: 0 0 8px; }

.faq { margin-top: 40px; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 17.5px; }
.faq details p { margin: 10px 0 0; }

.author { display: flex; gap: 14px; align-items: center; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 36px; }
.author p { margin: 0; font-size: 16.5px; color: var(--ink-700); text-align: start; }
.author strong { color: var(--ink); }
.art p.source { font-size: 13.5px; color: var(--muted); margin-top: 18px; text-align: start; }

.table { overflow-x: auto; margin: 6px 0 22px; border: 1px solid var(--line); border-radius: 14px; }
.table table { width: 100%; border-collapse: collapse; min-width: 480px; }
.table th, .table td { padding: 12px 14px; text-align: start; font-size: 16px; line-height: 1.55; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--coral-dark); color: #fff; font-weight: 800; }
.table tbody th { font-weight: 800; color: var(--ink); background: var(--coral-soft); white-space: nowrap; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.related { margin-top: 32px; padding: 16px 20px; border-inline-start: 4px solid var(--coral); background: var(--bg); border-radius: 12px; }
.art .related h2 { font-size: 18px; margin: 0 0 8px; padding: 0; border: 0; }
.related ul { margin: 0; }

/* Articles list (BizAgent cards: image, brand-colour head, white body) */
.sechead { margin: 6px 0 22px; display: grid; gap: 6px; }
.sechead-row { display: flex; align-items: center; gap: 16px; }
.sechead-row h1 { margin: 0; font-size: clamp(28px, 4.5vw, 38px); line-height: 1.2; font-weight: 800; }
.sechead-row::after { content: ""; flex: 1; min-width: 24px; height: 1.5px; background: linear-gradient(to left, var(--coral), transparent); opacity: .6; }
.sechead p { margin: 0; color: var(--ink-700); font-size: 16.5px; line-height: 1.6; max-width: 760px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card { display: block; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 16px 34px -20px rgba(0,0,0,.42); transform: translateY(-2px); }
@supports (grid-template-rows: subgrid) {
  .cards > .card { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; }
}
.card-img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--coral-dark); }
.card-head { background: var(--coral-dark); padding: 15px 17px 16px; }
.card-head .card-meta { font-size: 13.5px; color: #fff; opacity: .85; margin-bottom: 7px; }
.card-head h2 { margin: 0; font-size: 20px; line-height: 1.32; font-weight: 800; color: #fff; }
.card-body { padding: 15px 17px 17px; }
.card-body p { margin: 0 0 12px; font-size: 16px; color: var(--ink-700); line-height: 1.6; }
.card-body .more { color: var(--coral-dark); font-weight: 700; font-size: 15px; }
.list-cta { margin-top: 36px; }
.list-cta p { color: rgba(255,255,255,.78); margin-bottom: 18px; }
.list-cta .cta-title { color: #fff; font-size: 22px; font-weight: 800; margin-bottom: 8px; }

/* Footer */
footer { background: #141210; color: rgba(255,255,255,.55); padding: 32px 0; text-align: center; font-size: 14px; }
footer a { color: rgba(255,255,255,.85); }
footer .legal-line { margin-top: 10px; font-size: 12px; }

@media (max-width: 520px) {
  body { font-size: 17px; }
  .wrap { padding: 0 12px; }
  .art { padding: 24px 16px; border-radius: 16px; }
  .art p, .art li { font-size: 17.5px; text-align: start; }
  .brand-text { font-size: 14px; }
  .header-nav .btn { display: none; }
  .header-nav { gap: 12px; }
  .header-nav a.nav-link { font-size: 14px; white-space: nowrap; }
  .art p.lead { font-size: 19px; }
}
