/* =====================================================
   משפחה כלכלית — Article Page
   Editorial magazine layout · cream parchment
   ===================================================== */

/* ============================================
   Container variants
   ============================================ */
.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.container--wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  padding: .85rem 0;
  font-size: .85rem;
  color: var(--ink-mute);
}
.breadcrumb__inner {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current="page"] {
  color: var(--ink-mute);
  font-weight: 500;
}
.breadcrumb__sep {
  color: var(--gold);
  font-weight: 700;
  opacity: .8;
}

/* ============================================
   Article scaffold
   ============================================ */
.article {
  padding: 0 0 clamp(3rem, 6vw, 5rem);
}

.article__header {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
}

.article__kicker {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--ink-mute);
  margin-bottom: 1.25rem;
  text-transform: none;
}
.article__kicker .kicker__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: var(--gold);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  border-radius: 50%;
}

.article__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 1rem;
  font-weight: 700;
}

.article__deck {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 32em;
  margin: 0 auto 1.5rem;
  font-weight: 400;
}

.article__meta {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--sans);
  font-size: .85rem;
  color: var(--ink-mute);
  letter-spacing: .04em;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.article__meta .dot { color: var(--gold); font-weight: 700; }
.article__meta time { font-weight: 500; color: var(--ink); }

/* ============================================
   Hero figure
   ============================================ */
.article__hero {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  padding: 0 clamp(1rem, 3vw, 2rem);
}
.article__hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-3);
  border: 1px solid var(--rule);
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
}
.article__hero-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article__hero-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(24, 27, 44, .15));
  pointer-events: none;
}
.article__hero figcaption {
  text-align: center;
  font-size: .82rem;
  color: var(--ink-mute);
  margin-top: .85rem;
  font-style: italic;
  font-family: var(--serif);
}

@media (max-width: 640px) {
  .article__hero-inner { aspect-ratio: 4 / 3; border-radius: var(--radius); }
}

/* ============================================
   Audio player
   ============================================ */
.article__audio {
  margin: clamp(1rem, 3vw, 2rem) auto clamp(2rem, 4vw, 3rem);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
}
.article__audio::before {
  content: "🎧";
  font-size: 1.2rem;
  filter: grayscale(.3);
}
.article__audio-label {
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .02em;
}
.article__audio audio {
  flex: 1;
  min-width: 240px;
  height: 38px;
  border-radius: 999px;
}
audio::-webkit-media-controls-panel {
  background-color: var(--paper);
}

/* ============================================
   Article body — typography
   ============================================ */
.article__body {
  font-family: var(--sans);
  font-size: 1.075rem;
  line-height: 1.78;
  color: var(--ink-soft);
}

.article__body p {
  margin: 0 0 1.1em;
}

/* Drop cap on first paragraph */
.article__body > p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 4em;
  font-weight: 900;
  float: right;
  margin: .05em .15em -.1em 0;
  line-height: .85;
  color: var(--gold);
  font-style: italic;
}

/* Headings within body */
.article__body h2 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin: 2.2em 0 .55em;
  padding-top: 1em;
  position: relative;
  letter-spacing: -0.005em;
}
.article__body h2::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 56px;
  height: 2px;
  background: var(--gold);
}

.article__body h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.8em 0 .5em;
}

.article__body h4 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.5em 0 .4em;
  letter-spacing: .01em;
}

/* Lists */
.article__body ul,
.article__body ol {
  padding-inline-start: 1.5em;
  margin: 1em 0 1.4em;
}
.article__body ul li,
.article__body ol li {
  margin-bottom: .55em;
  line-height: 1.7;
  position: relative;
}
.article__body ul {
  list-style: none;
  padding-inline-start: 0;
}
.article__body ul > li {
  padding-inline-start: 1.6em;
  position: relative;
}
.article__body ul > li::before {
  content: "+";
  position: absolute;
  inset-inline-start: 0;
  top: -1px;
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.15em;
  line-height: 1.5;
}
.article__body ul ul {
  margin: .55em 0 .55em;
}
.article__body ul ul > li::before {
  content: "›";
  color: var(--gold-soft);
  font-size: 1em;
}

.article__body ol {
  counter-reset: listcount;
  list-style: none;
  padding-inline-start: 0;
}
.article__body ol > li {
  counter-increment: listcount;
  padding-inline-start: 2.1em;
  position: relative;
}
.article__body ol > li::before {
  content: counter(listcount, decimal) ".";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  font-size: 1.05em;
  min-width: 1.6em;
}

/* First list (intro/summary) — special treatment */
.article__body > ul:first-child,
.article__body > ol:first-child {
  background: var(--paper-2);
  border-inline-start: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 0 0 1.75em;
  font-size: 1rem;
  line-height: 1.65;
}
.article__body > ul:first-child > li::before {
  font-size: 1.05em;
}
.article__body > ul:first-child > li {
  font-weight: 500;
  color: var(--ink);
}
.article__body > ul:first-child > li > strong { font-weight: 700; }

/* Inline emphasis */
.article__body strong { color: var(--ink); font-weight: 700; }
.article__body em { font-style: italic; }
.article__body a {
  color: var(--gold);
  border-bottom: 1.5px solid var(--gold-soft);
  font-weight: 600;
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.article__body a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Blockquote */
.article__body blockquote {
  margin: 2em 0;
  padding: 1.25rem 1.75rem 1.25rem 2.5rem;
  border-inline-start: 4px solid var(--gold);
  background: var(--paper-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  position: relative;
}
.article__body blockquote::before {
  content: "“";
  position: absolute;
  top: -.2em;
  inset-inline-end: .6rem;
  font-size: 4rem;
  color: var(--gold);
  opacity: .3;
  font-family: var(--serif);
  line-height: 1;
}
.article__body blockquote p:last-child { margin-bottom: 0; }

/* Article figures (inline images) */
.article__body figure,
.article-figure {
  margin: 2.2em 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--white);
}
.article__body figure img,
.article-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.article__body figure figcaption,
.article-figure figcaption {
  font-size: .85rem;
  font-style: italic;
  color: var(--ink-mute);
  text-align: center;
  padding: .75rem 1rem;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
}

/* HR / Divider */
.article__body hr,
.article-divider {
  border: 0;
  margin: 3em 0;
  text-align: center;
  height: 1px;
  background: transparent;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article__body hr::before,
.article-divider::before {
  content: "+ + +";
  background: var(--paper);
  padding: 0 1.5rem;
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 900;
  letter-spacing: .8em;
  font-size: 1.2rem;
  line-height: 1;
  z-index: 1;
}
.article__body hr::after,
.article-divider::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1px;
  background: var(--rule);
}

/* Tables */
.article__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75em 0;
  font-size: .95rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.article__body th,
.article__body td {
  padding: .75rem 1rem;
  text-align: start;
  border-bottom: 1px solid var(--rule);
}
.article__body th {
  background: var(--paper-2);
  font-weight: 700;
  color: var(--ink);
  font-family: var(--sans);
  font-size: .9rem;
  letter-spacing: .02em;
}
.article__body tr:last-child td { border-bottom: 0; }

/* ============================================
   FAQ (details/summary)
   ============================================ */
.article-faq {
  margin: 3em 0 2em;
  background: var(--paper-2);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem 1rem;
  border: 1px solid var(--rule);
}
.article-faq::before {
  content: "שאלות שחוזרות אצלנו";
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--ink);
  margin-bottom: 1rem;
  padding-bottom: .65rem;
  border-bottom: 2px solid var(--gold);
  font-weight: 700;
}

.article-faq details {
  border-bottom: 1px solid var(--rule);
  padding: .85rem 0;
}
.article-faq details:last-child { border-bottom: 0; }

.article-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
  font-family: var(--sans);
  position: relative;
  padding-inline-start: 1.6em;
  list-style: none;
  transition: color .2s;
}
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary::before {
  content: "+";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.4em;
  line-height: 1;
  transition: transform .25s;
}
.article-faq details[open] summary::before { transform: translateY(-50%) rotate(45deg); }
.article-faq summary:hover { color: var(--gold); }

.article-faq details > *:not(summary) {
  padding: .65rem 0 .35rem 1.6em;
  margin: 0;
  color: var(--ink-soft);
  font-size: .98rem;
  line-height: 1.7;
  animation: fadeIn .25s ease;
}
.article-faq details ul {
  list-style: none;
  padding-inline-start: 0;
  margin: 0;
}
.article-faq details ul li {
  padding-inline-start: 1.4em;
  position: relative;
  margin-bottom: .35rem;
}
.article-faq details ul li::before {
  content: "›";
  position: absolute;
  inset-inline-start: 0;
  color: var(--gold);
  font-weight: 700;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Inline mid-article CTA
   ============================================ */
.inline-cta {
  margin: 3em 0;
  background: var(--ink);
  color: var(--paper);
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.inline-cta::before {
  content: "+";
  position: absolute;
  bottom: -3rem;
  inset-inline-end: -2rem;
  font-family: var(--serif);
  font-size: 14rem;
  font-weight: 900;
  color: var(--gold);
  opacity: .12;
  line-height: 1;
}
.inline-cta h3 {
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin: 0 0 .5rem;
}
.inline-cta p {
  color: rgba(251, 246, 233, .8);
  margin: 0 auto 1.25rem;
  max-width: 36ch;
  font-size: 1rem;
}
.inline-cta .btn {
  background: var(--gold);
  color: var(--ink);
}
.inline-cta .btn:hover {
  background: var(--paper);
  color: var(--ink);
}

/* ============================================
   Author / About card
   ============================================ */
.article__author {
  margin: 3em auto;
}
.author-card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.85rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.author-card__mark {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.6rem;
  font-style: italic;
}
.author-card__body { flex: 1; }
.author-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0 0 .35rem;
  color: var(--ink);
}
.author-card p {
  font-size: .95rem;
  margin: 0 0 .5rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.author-card a {
  font-size: .92rem;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.author-card a:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ============================================
   Big article CTA section (bottom of page)
   ============================================ */
.article__cta {
  background: var(--paper-2);
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.article__cta::before {
  content: "+";
  position: absolute;
  top: -3rem;
  inset-inline-start: -2rem;
  font-family: var(--serif);
  font-size: 18rem;
  color: var(--gold);
  opacity: .04;
  font-weight: 900;
  line-height: 1;
}

.cta-frame {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-3);
  position: relative;
}
.cta-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed var(--rule);
  border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
}
.cta-frame > * { position: relative; }
.cta-frame .kicker {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--gold);
  margin-bottom: 1rem;
}
.cta-frame h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 .75rem;
  color: var(--ink);
  line-height: 1.2;
}
.cta-frame > p {
  margin: 0 0 1.5rem;
  font-size: 1.02rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.cta-frame .form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 1rem;
}
@media (max-width: 720px) {
  .cta-frame .form-row { grid-template-columns: 1fr; }
}
.cta-frame .form-row .form-field { margin-bottom: 0; }

/* ============================================
   Related articles ("להמשך קריאה")
   ============================================ */
.article__related {
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.article__related h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.article__related h2::after {
  content: "+ + +";
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: .5em;
  font-weight: 900;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 880px) { .related-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .related-grid { grid-template-columns: 1fr; } }

.related-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--rule-strong);
}
.related-card__thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--paper-2);
}
.related-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.related-card:hover .related-card__thumb img { transform: scale(1.04); }

.related-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 1;
}
.related-card__cat {
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--gold);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .35em;
}
.related-card__cat::before {
  content: "";
  width: 16px;
  height: 1.5px;
  background: var(--gold);
}
.related-card__title {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin: .15rem 0 0;
  line-height: 1.3;
  color: var(--ink);
  flex: 1;
}
.related-card__title a {
  color: inherit;
}
.related-card__title a:hover { color: var(--gold); }
.related-card__more {
  margin-top: .85rem;
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .35em;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
  align-self: start;
  transition: color .2s, border-color .2s;
}
.related-card__more:hover { color: var(--gold); border-bottom-color: var(--gold); }
