/* Makor Hateva article template. Loaded only for WordPress posts. */
.post-hero {
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.post-hero h1 {
  max-width: 22ch;
  margin-inline: auto;
}

.post-crumb {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
  color: var(--color-text-light);
  font-size: 0.88rem;
}

.post-crumb a {
  color: var(--color-primary-dark);
  text-decoration: none;
}

.post-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.1rem auto 0;
  color: var(--color-text-light);
  font-size: 0.92rem;
}

.post-meta a { color: var(--color-primary-dark); }

.post-body {
  padding-top: clamp(2rem, 5vw, 4rem);
}

.post-figure {
  margin: 0 0 2rem;
}

.post-figure img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.post-figure figcaption,
.entry-content figcaption {
  margin-top: 0.65rem;
  color: var(--color-text-light);
  font-size: 0.86rem;
  text-align: center;
}

.post-toc {
  margin: 0 0 2.25rem;
  padding: 1.15rem 1.3rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-primary-wash);
}

.post-toc summary {
  cursor: pointer;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
}

.post-toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 2rem;
  margin: 1rem 0 0;
  padding-inline-start: 1.4rem;
}

.post-toc li::marker {
  color: var(--color-primary-dark);
  font-weight: 700;
}

.post-toc a {
  color: var(--color-primary-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.entry-content p,
.entry-content li {
  line-height: 1.85;
}

.entry-content h2 {
  margin-top: 2.5rem;
  scroll-margin-top: 110px;
}

.entry-content h3 {
  margin-top: 1.75rem;
  color: var(--color-primary-dark);
}

.entry-content blockquote,
.entry-content .mk-callout {
  margin: 1.75rem 0;
  padding: 1.1rem 1.3rem;
  border-inline-start: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  background: var(--color-primary-wash);
}

.entry-content blockquote p:last-child,
.entry-content .mk-callout p:last-child { margin-bottom: 0; }

.entry-content table,
.entry-content .wp-block-table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 1.75rem 0;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  min-width: 9rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  text-align: start;
}

.entry-content th { background: var(--color-primary-wash); }
.entry-content tr:nth-child(even) td { background: var(--color-bg-alt); }

.entry-content pre,
.entry-content code {
  direction: ltr;
  text-align: left;
}

.entry-content pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: #f2f7f7;
}

.entry-content figure { margin: 2rem 0; }
.entry-content img { max-width: 100%; height: auto; }

.entry-content .mk-faq details {
  margin: 0.8rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.entry-content .mk-faq summary {
  cursor: pointer;
  color: var(--color-ink);
  font-weight: 700;
}

.post-service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.post-service h2 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.35rem;
}

.post-service p { margin: 0; }

.post-service__label {
  color: var(--color-primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.post-service .btn { flex: none; }

.post-related__title {
  margin-bottom: 1.5rem;
  text-align: center;
}

.post-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.post-related .post-card a {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.post-related .post-card__image {
  display: block;
  aspect-ratio: 16 / 10;
}

.post-related .post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-related .post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.post-related .post-card__more {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--color-primary-dark);
  font-weight: 700;
}

.post-cta p { margin-inline: auto; }

.post-cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .post-toc ol { grid-template-columns: 1fr; }
  .post-related__grid { grid-template-columns: 1fr; }
  .post-service { align-items: stretch; flex-direction: column; }
  .post-service .btn { align-self: flex-start; }
}

@media (max-width: 480px) {
  .post-meta { align-items: center; flex-direction: column; }
  .post-meta > span[aria-hidden="true"] { display: none; }
  .post-toc { padding: 1rem; }
  .post-cta__actions .btn { width: 100%; }
}