:root {
  --liroom-orange: #ea6101;
  --liroom-peach: #fdebdc;
  --liroom-peach-border: #f8dfcc;
  --liroom-text: #111820;
}

/* Прихований абзац: копія старого showhide зі скриншота */
.liroom-showhide {
  margin: 34px auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--liroom-text);
}
.liroom-showhide summary,
.liroom-showhide-preview-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 22px;
  background: var(--liroom-peach);
  color: #0e1115;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-align: center;
  cursor: pointer;
  list-style: none;
}
.liroom-showhide summary::-webkit-details-marker { display: none; }
.liroom-showhide__chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
  flex: 0 0 auto;
}
.liroom-showhide[open] .liroom-showhide__chevron,
.liroom-showhide-preview-summary .liroom-showhide__chevron {
  transform: rotate(225deg) translateY(-1px);
}
.liroom-showhide__content {
  margin: 0;
  padding: 26px 36px;
  background: #fff;
  border: 5px dashed var(--liroom-peach-border);
  border-top: 0;
  font-size: 1.1em;
  line-height: 1.65;
}
.liroom-showhide__content > :first-child { margin-top: 0; }
.liroom-showhide__content > :last-child { margin-bottom: 0; }

/* Альтернативна цитата: без стандартного blockquote/figure оформлення теми */
.liroom-alt-quote {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  column-gap: 2px;
  margin: 36px auto;
  padding: 28px 38px;
  border: 0 !important;
  border-left: 0 !important;
  background: var(--liroom-peach);
  color: var(--liroom-text);
  box-shadow: none;
}
.liroom-alt-quote::before,
.liroom-alt-quote::after { content: none !important; }
.liroom-alt-quote__mark {
  color: rgba(0, 0, 0, .075);
  font-size: 112px;
  line-height: .82;
  font-weight: 800;
  font-family: Georgia, serif;
  user-select: none;
}
.liroom-alt-quote__body { min-width: 0; }
.liroom-alt-quote--no-author {
  padding-top: 24px;
  padding-bottom: 24px;
}
.liroom-alt-quote--no-author .liroom-alt-quote__text {
  font-size: clamp(21px, 1.75vw, 32px);
}
.liroom-alt-quote--author .liroom-alt-quote__person {
  margin-top: 18px;
}

.liroom-alt-quote__text {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--liroom-text);
  font-size: clamp(22px, 1.9vw, 34px);
  line-height: 1.34;
  font-weight: 400;
}
.liroom-alt-quote__text p { margin: 0 0 10px; }
.liroom-alt-quote__text p:last-child { margin-bottom: 0; }
.liroom-alt-quote__person {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
}
.liroom-alt-quote__photo {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.liroom-alt-quote__caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--liroom-text);
}
.liroom-alt-quote__caption strong {
  color: var(--liroom-text);
  font-size: 18px;
  font-weight: 800;
}
.liroom-alt-quote__caption span {
  color: rgba(17, 24, 32, .72);
  font-size: 18px;
}

/* Inline підказка */
.liroom-hint {
  position: relative;
  color: var(--liroom-orange);
  border-bottom: 3px dashed var(--liroom-orange);
  cursor: help;
  text-decoration: none;
}
.liroom-hint::after {
  content: attr(data-liroom-hint);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 16px);
  transform: translateX(-50%);
  z-index: 50;
  min-width: 220px;
  max-width: 520px;
  width: max-content;
  background: #fff;
  color: #111820;
  border: 0;
  box-shadow: 0 16px 38px rgba(0,0,0,.18);
  padding: 18px 22px;
  border-radius: 3px;
  font-size: 13px;
  line-height: 1.35;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.liroom-hint::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  transform: translateX(-50%);
  border: 10px solid transparent;
  border-top-color: #fff;
  z-index: 51;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.liroom-hint:hover::after,
.liroom-hint:focus::after,
.liroom-hint.is-active::after,
.liroom-hint:hover::before,
.liroom-hint:focus::before,
.liroom-hint.is-active::before {
  opacity: 1;
  visibility: visible;
}

/* Галерея-слайдер */
.liroom-gallery-slider { position: relative; margin: 32px 0; }
.liroom-gallery-slider__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 0 12px;
  scrollbar-width: thin;
}
.liroom-gallery-slider__slide { flex: 0 0 86%; max-width: 86%; margin: 0; scroll-snap-align: center; }
.liroom-gallery-slider__slide img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.liroom-gallery-slider__slide figcaption { font-size: .9em; opacity: .75; margin-top: 8px; }
.liroom-gallery-slider__button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.09);
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.liroom-gallery-slider__button:hover { background: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.2); }
.liroom-gallery-slider__button span {
  display: block;
  width: 13px;
  height: 13px;
  border-top: 2px solid #111820;
  border-right: 2px solid #111820;
}
.liroom-gallery-slider__button--prev { left: 14px; }
.liroom-gallery-slider__button--next { right: 14px; }
.liroom-gallery-slider__button--prev span { transform: rotate(-135deg); margin-left: 4px; }
.liroom-gallery-slider__button--next span { transform: rotate(45deg); margin-right: 4px; }

/* Альтернативний нумерований список */
.liroom-numbered-list {
  counter-reset: liroom-counter;
  font-family: inherit;
  font-size: var(--liroom-numbered-font-size, 20px);
  line-height: inherit;
  margin: 30px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.liroom-numbered-list li {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  counter-increment: liroom-counter;
  list-style: none;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  column-gap: 22px;
  margin: 0;
}
.liroom-numbered-list li::before {
  content: counter(liroom-counter);
  color: var(--liroom-orange);
  font-weight: 800;
  font-size: 1.65em;
  line-height: 1;
  text-align: center;
}
.liroom-numbered-list__content { font-family: inherit; font-size: inherit; line-height: inherit; }
.liroom-numbered-list__content > :first-child { margin-top: 0; }
.liroom-numbered-list__content > :last-child { margin-bottom: 0; }

.liroom-lightbox { position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.86); display: flex; align-items: center; justify-content: center; padding: 24px; }
.liroom-lightbox img { max-width: 96vw; max-height: 92vh; }
.liroom-lightbox button { position: absolute; right: 18px; top: 12px; border: 0; background: transparent; color: white; font-size: 42px; cursor: pointer; }

@media (max-width: 700px) {
  .liroom-showhide__content { padding: 20px; }
  .liroom-alt-quote { grid-template-columns: 46px 1fr; padding: 28px 24px; }
  .liroom-alt-quote__mark { font-size: 76px; }
  .liroom-alt-quote__text { font-size: 24px; }
  .liroom-alt-quote__photo { width: 58px; height: 58px; }
  .liroom-gallery-slider__slide { flex-basis: 92%; max-width: 92%; }
  .liroom-gallery-slider__button { width: 40px; height: 40px; }
  .liroom-numbered-list li { grid-template-columns: 40px 1fr; column-gap: 14px; }
  .liroom-hint::after { left: 0; transform: none; max-width: 280px; min-width: 190px; font-size: 18px; }
  .liroom-hint::before { left: 20px; transform: none; }
}
