/* ==========================================================================
   Single post / article layout
   ========================================================================== */

:root {
  --font-family-article: var(--font-family);
}

body.single .breadcrumbs {
  margin-bottom: 1.25rem;
}

body.single .site-sidebar {
  border: none;
  padding-inline-start: 0;
}

.single-post__title {
  font-family: var(--font-family-heading);
  font-size: clamp(1.75rem, 4.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

.single-post__lihtne-keel-badge {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--spacing-sm);
  margin: -0.5rem 0 1.75rem;
}

.single-post__lihtne-keel-badge-icon {
  display: block;
  width: 55px;
  height: 55px;
}

.single-post__header-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-md);
  margin-bottom: 1.75rem;
}

.single-post__meta-main {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

/* Publication date after the title (mirrors the card date row). */
.single-post__date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  /* text-muted (#666) ≈ 5.7:1 on white — gray-border-dark (#7f8c8d) failed AA at 3.47:1 */
  color: var(--color-text-muted, #666666);
  font-size: 0.9375rem;
}

.single-post__date-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.single-post__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 1.75rem;
  min-width: 0;
}

.single-post__person {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

.single-post__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.single-post__avatar--placeholder {
  display: block;
  background-color: var(--color-gray-bg-dark);
}

.single-post__avatar--logo {
  width: auto;
  height: 2.5rem;
  max-width: 2.5rem;
  border-radius: 0;
  object-fit: contain;
  padding: 0;
  background-color: transparent;
  box-sizing: border-box;
}

.single-post__person-text {
  min-width: 0;
}

.single-post__person-name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
}

.single-post__person-name a {
  color: inherit;
  text-decoration: none;
}

.single-post__person-name a:hover,
.single-post__person-name a:focus-visible {
  text-decoration: underline;
}

.single-post__person-detail {
  margin: 0.125rem 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--color-text-muted);
}

/* Email line: brand link colour so the contact stands out from the role. */
.single-post__person-detail--email a {
  color: var(--color-widget-blue);
  text-decoration: none;
}

/* Role / job-title line: italic, matches the editorial pattern in the design. */
.single-post__person-detail--role {
  font-style: italic;
}

.single-post__person-detail a {
  color: inherit;
  text-decoration: none;
}

.single-post__person-detail a:hover,
.single-post__person-detail a:focus-visible {
  text-decoration: underline;
}

.single-post__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
}

.single-post__action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 0.25rem;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.single-post__action:hover,
.single-post__action:focus-visible {
  color: var(--color-green-accent);
  background-color: var(--color-gray-bg);
}

.single-post__action:focus-visible {
  outline: 2px solid var(--color-green-light);
  outline-offset: 2px;
}

body.single {
  scroll-behavior: smooth;
}

.single-post .audio-player {
  margin-bottom: 1.75rem;
}

/* The "Vaata lihtsas keele kokkuvõtet" jump button is now an editor-inserted
   block — see assets/blocks/kokkuvote-jump/ (styles live in that block's
   style.css). It used to be auto-emitted here via partials/kokkuvote-jump.php. */

/* Framed body images are now opt-in via the vaimupuu/framed-image block.
   Plain core/image with a caption renders unstyled. See
   assets/blocks/framed-image/style.css for block variant styling. */

.single-post__content {
  font-family: var(--font-family-article);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.single-post__content > *:first-child {
  margin-top: 0;
}

.single-post__footer {
  margin-top: var(--spacing-xl);
}

@media (max-width: 600px) {
  .single-post__header-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .single-post__actions {
    justify-content: flex-end;
  }
}

/* Pildiraam block styles live alongside the block at
   assets/blocks/framed-image/style.css — auto-enqueued via block.json. */