*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

:root {
  --midnight: #eef6fb;
  --deep-navy: #f5f5f5;
  --navy: #f0f0f0;
  --navy-light: #eaeaea;
  --card: #eef6fb;
  --card-hover: #f2f2f2;
  --border: rgba(100, 100, 100, 0.18);
  --border-glow: rgba(100, 100, 100, 0.4);
  --rose-gold: #1a1715;
  --rose-light: #1a1715;
  --rose-dim: #1a1715;
  --crimson: #5037c0;
  --crimson-glow: rgba(192, 55, 74, 0.25);
  --text-primary: #1a1a1a;
  --text-secondary: #333333;
  --text-muted: #555555;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 40px rgba(201, 149, 106, 0.06);
  --transition: .28s cubic-bezier(.4, 0, .2, 1);
}

body {
  background: var(--midnight);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(192, 55, 74, .06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(201, 149, 106, .04) 0%, transparent 50%)
}


.page--article {
  margin: 0 auto;
}

.post {
  display: grid;
  grid-template-areas:
    "head"
    "fig"
    "content-wrap"
    "tag"
    "footer"
    "rel";
  grid-template-columns: 1fr;
}

.post__content-wrap {
  grid-area: content-wrap;
  display: flex;
  gap: 0 32px;
  align-items: start;
  flex-direction: row-reverse;
}
.related-posts {
  grid-area: rel;
}

.post__toc-item {
  list-style: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}


.post__header {
  margin-bottom: 36px;
  grid-area: head;
}

.post__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #77664c 0%, #2913af 50%, #f0e8dc 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s linear infinite
}

@keyframes shimmer {
  0% {
    background-position: 0% center
  }

  100% {
    background-position: 200% center
  }
}


.post__byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 14px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: fit-content
}

.post__author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--rose-gold);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  transition: color var(--transition)
}

.post__author:hover {
  color: var(--rose-light)
}

.post__author-icon {
  width: 28px;
  height: 28px;
  background: var(--navy-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-dim);
  border: 1px solid var(--border)
}

.post__byline-sep {
  color: var(--border-glow)
}

.post__date {
  font-size: 12px;
  letter-spacing: .04em
}

.post__read-time,
.post__views {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted)
}

.post__read-time svg,
.post__views svg {
  color: var(--rose-dim)
}


.post__hero {
  margin: 0 -24px 44px;
  position: relative;
  overflow: hidden;
  max-height: 420px;
  grid-area: fig;
}
.post__hero img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.post__toc {
  grid-area: toc;
  position: sticky;
  top: 120px;
  width: 240px;
  max-height: calc(100vh - 140px); /* обмежуємо висоту вікном */
  overflow-y: auto;
  margin-left: auto;
  margin-bottom: 80px;
  padding: 20px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  align-self: start; /* ← ключова властивість! */
}
.related-posts__grid{
  list-style: none;
}


.post__toc-title {
  display: block;
  margin-bottom: 12px;
  text-align: center;
  font-size: 18px;
}


.post__toc-list {
  margin: 0;
  padding-left: 18px;
}


.post__toc-item {
  margin-bottom: 8px;
}


.post__toc-link {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
}

.post__toc-link:hover {
  color: #000;
}


.post__toc-link.is-active {
  font-weight: 600;
  color: #000;
}

@media(min-width:600px) {
  .post__hero {
    margin: 0 0 44px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card), var(--shadow-glow)
  }
}

.post__hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(10, 14, 26, .6) 100%);
  pointer-events: none
}

.post__hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform .8s cubic-bezier(.4, 0, .2, 1)
}

.post__hero:hover .post__hero-img {
  transform: scale(1.03)
}

.post__hero-placeholder {
  width: 100%;
  height: 420px;
  background: linear-gradient(135deg, var(--card) 0%, var(--navy-light) 50%, var(--card) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic
}


.post__body.prose {
  font-size: 16.5px;
  line-height: 1.85;
  color: #1d1208;
  flex: 1 1 90%;
  margin-bottom: 48px
}

.post__body.prose h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-primary);
  margin: 44px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -.01em
}

.post__body.prose h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  font-style: italic;
  color: var(--rose-light);
  margin: 32px 0 12px
}

.post__body.prose p {
  margin-bottom: 20px;
  color: black
}

.post__body.prose a {
  color: var(--rose-gold);
  text-decoration: underline;
  text-decoration-color: rgba(201, 149, 106, .4);
  text-underline-offset: 3px;
  transition: all var(--transition)
}

.post__body.prose a:hover {
  color: var(--rose-light)
}

.post__body.prose blockquote {
  margin: 32px 0;
  padding: 20px 28px;
  border-left: 3px solid var(--rose-gold);
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--rose-light);
  line-height: 1.7
}

.post__body.prose strong {
  color: var(--text-primary);
  font-weight: 500
}

.post__body.prose em {
  color: var(--rose-light)
}


.post__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  grid-area: footer;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px
}

.post__tags-label,
.post__share-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: block
}

.post__tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.post__tag {
  grid-area: tag;
  display: inline-block;
  padding: 5px 14px;
  font-size: 11px;

  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-secondary);
  cursor: default;
  transition: all var(--transition)
}

.post__tag:hover {
  border-color: var(--rose-dim);
  color: var(--rose-gold);
  background: rgba(201, 149, 106, .06)
}

.post__share {
  display: flex;
  align-items: center;
  gap: 10px
}

.post__share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition)
}

.post__share-btn:hover {
  border-color: var(--rose-gold);
  color: var(--rose-gold);
  box-shadow: 0 0 16px rgba(201, 149, 106, .2);
  transform: translateY(-2px)
}


.related {
  margin-bottom: 60px
}

.related__heading {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px
}

.related__heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-glow), transparent)
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px
}

.related-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition)
}

.related-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card)
}

.related-card__img {
  height: 140px;
  background: linear-gradient(135deg, #1a2236, #0d1324);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden
}

.related-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease
}

.related-card:hover .related-card__img img {
  transform: scale(1.07)
}

.related-card__body {
  padding: 16px
}

.related-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 8px
}

.related-card__meta {
  font-size: 12px;
  color: var(--text-muted)
}


.discussion {
  padding: 48px 0 0;
  position: relative
}

.discussion::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-gold), transparent)
}

.discussion__head {
  margin-bottom: 36px;
  text-align: center
}

.discussion__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: .04em;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 12px
}

.discussion__counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  background: linear-gradient(135deg, var(--crimson), #858fbf);
  color: #fff;
  border-radius: 100px
}


.discussion__form-box {
  margin-bottom: 44px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), box-shadow var(--transition)
}

.discussion__form-box:focus-within {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(201, 149, 106, .15), 0 0 40px rgba(201, 149, 106, .08)
}

.discussion-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px
}

@media(max-width:520px) {
  .discussion-form__grid {
    grid-template-columns: 1fr
  }
}

.discussion-form input[type=text],
.discussion-form input[type=email],
.discussion-form textarea {
  width: 100%;
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  -webkit-appearance: none
}

.discussion-form input::placeholder,
.discussion-form textarea::placeholder {
  color: var(--text-muted);
  font-size: 13px
}

.discussion-form input:focus,
.discussion-form textarea:focus {
  border-color: var(--rose-dim);
  background: rgba(165, 190, 253, 0.9);
  box-shadow: 0 0 0 3px rgba(201, 149, 106, .1)
}

.discussion-form textarea {
  resize: vertical;
  min-height: 110px;
  margin-bottom: 14px;
  line-height: 1.6
}
/* Toast */
.discussion-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 9999;
  padding: 12px 24px;
  background: #1a1a1a;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  white-space: nowrap;
}

.discussion-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.discussion-toast--error {
  background: linear-gradient(135deg, #c0374a, #a02030);
  box-shadow: 0 8px 32px rgba(192, 55, 74, 0.3);
}
/* Reply Form Container */
.comment__reply-form {
  margin-top: 12px;
  display: none;
  margin-left: 16px;
  padding: 20px;
  background: #f9f9f9;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--crimson);
  animation: fadeUp .3s ease both;
}
.comment__reply-form.active{
  display: block;
}

/* "Replying to" label */
.comment-form__reply-to {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.comment-form__reply-to::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='9 17 4 12 9 7'/%3E%3Cpath d='M20 18v-2a4 4 0 0 0-4-4H4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.comment-form__reply-to strong {
  color: var(--crimson);
  font-weight: 500;
}

/* Inputs */
.discussion-form__input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}

.discussion-form__input::placeholder {
  color: var(--text-muted);
  font-size: 12px;
}

.discussion-form__input:focus {
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(80, 55, 192, .08);
}

/* Textarea */
.discussion-form__textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
  margin-top: 10px;
  margin-bottom: 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}

.discussion-form__textarea::placeholder {
  color: var(--text-muted);
  font-size: 12px;
}

.discussion-form__textarea:focus {
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(80, 55, 192, .08);
}

/* Footer buttons row */
.discussion-form__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* Cancel button */
.comment-form__cancel {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 18px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.comment-form__cancel:hover {
  border-color: #ccc;
  color: var(--text-secondary);
  background: #f0f0f0;
}

/* Submit button */
.comment-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 20px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--crimson) 0%, #858fbf 100%);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
}

.comment-form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(80, 55, 192, .25);
}

.comment-form__submit:active {
  transform: translateY(0);
}

.comment-form__submit svg {
  flex-shrink: 0;
}

.discussion-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px
}

.discussion-form__hint {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic
}


.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--crimson) 0%, #858fbf 100%);
  border: 1px solid rgba(192, 55, 74, .5);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--crimson-glow)
}

.btn-primary:active {
  transform: translateY(0)
}


.discussion__list {
  display: flex;
  flex-direction: column;
  gap: 0
}

.discussion__empty {
  text-align: center;
  padding: 52px 24px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--card)
}


.comment {
  padding: 22px 0;
  border-bottom: 1px solid rgba(180, 145, 100, .08);
  animation: commentIn .4s ease both
}

@keyframes commentIn {
  from {
    opacity: 0;
    transform: translateY(12px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.comment--nested {}

.comment__body {
  background: transparent;
  transition: background var(--transition);
  border-radius: var(--radius);
  padding: 16px
}

.comment__body:hover {
  background: rgba(246, 248, 255, 0.747)
}

.comment__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap
}

.comment__author {
  font-size: 14px;
  font-weight: 500;
  color: var(--rose-gold);
  display: flex;
  align-items: center;
  gap: 6px
}

.comment__badge {
  display: inline-flex;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--crimson), #858fbf);
  color: #fff;
  border-radius: 100px
}

.comment__date {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto
}

.comment__content {
  font-size: 14.5px;
  line-height: 1.75;
  color: #b8ad9f;
  margin-bottom: 12px
}

.comment__actions {
  display: flex;
  gap: 10px
}

.comment__reply-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 16px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase
}

.comment__reply-btn:hover {
  border-color: var(--rose-dim);
  color: var(--rose-gold);
  background: rgba(201, 149, 106, .06)
}

.comment__children {
  border-left: 2px solid var(--border);
  padding-left: 20px;
  margin-left: 16px;
  margin-top: 4px;
  position: relative
}

.comment__children::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--border-glow), transparent)
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px
}

::-webkit-scrollbar-track {
  background: var(--midnight)
}

::-webkit-scrollbar-thumb {
  background: var(--border-glow);
  border-radius: 3px
}

::-webkit-scrollbar-thumb:hover {
  background: var(--rose-dim)
}

::selection {
  background: rgba(192, 55, 74, .35);
  color: var(--text-primary)
}

:focus-visible {
  outline: 2px solid var(--rose-dim);
  outline-offset: 3px;
  border-radius: var(--radius-sm)
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}
@media (max-width: 768px) {
  .post__content-wrap{
    flex-direction: column;
  }
  .post__toc {
    position: relative;
    margin: 0;
    width: 100%;
    top: 0;
  }
}
/* Таблиця в контенті */
.post__body.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 14.5px;
  line-height: 1.6;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.post__body.prose table caption {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--text-muted);
  margin: 10px 0;
  text-align: center;
}

.post__body.prose thead {
  background: linear-gradient(135deg, var(--crimson) 0%, #858fbf 100%);
}

.post__body.prose thead th {
  padding: 14px 18px;
  color: #131111;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: left;
  border: none;
}

.post__body.prose tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.post__body.prose tbody tr:last-child {
  border-bottom: none;
}

.post__body.prose tbody tr:hover {
  background: #f5f5f5;
}

.post__body.prose tbody td {
  padding: 14px 18px;
  color: var(--text-primary);
  vertical-align: top;
}

.post__body.prose tbody td:first-child {
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Адаптив — горизонтальний скрол на мобільних */
.post__body.prose .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 32px 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.post__body.prose .table-wrap table {
  margin: 0;
  box-shadow: none;
  min-width: 280px;
}

@media (max-width: 640px) {
  .post__body.prose table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: unset;
  }

  .post__body.prose thead th,
  .post__body.prose tbody td {
    padding: 6px 4px;
    font-size: 13px;
  }

  .post__body.prose tbody td:first-child {
    white-space: normal;
  }
}