/* Transcription-specific styles (placeholder). */
.field--name-field-transcription {
  position: relative;
  margin-top: 40px;
  margin-bottom: 40px;
  padding: 30px;
  border: 1px solid #b4b2b2;
  border-radius: 5px;
  border-left-width: 3px;
}

.field--name-field-transcription p {
  margin-bottom: 10px;
}

.field--name-field-transcription:after {
  width: 100%;
  height: 1px;
  display: block;
  clear: both;
  content: " ";
}

.field--name-field-transcription .field__label {
  position: relative;
  font-weight: 600;
  font-size: 16px;
  color: #000;
  margin-bottom: 10px;
  cursor: pointer;
}

.field--name-field-transcription .field__item {
  margin-bottom: 0;
  font-size: 14px;
  color: #000;
}

.field--name-field-transcription .field__item p {
  margin-bottom: 10px;
  font-size: 14px;
  color: #000;
}

/* Column: scrollable text + toggle row (toggle never clipped by overflow) */
.field--name-field-transcription .field__item {
  display: flex;
  flex-direction: column;
  max-height: 200px;
  margin-top: 0;
  overflow: hidden;
  transition: max-height 250ms ease, margin-top 250ms ease;
}

.field--name-field-transcription .rheumnow-transcription__clip {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

/* Fade at bottom of text area (above the toggle row) */
.field--name-field-transcription .rheumnow-transcription__clip::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52px;
  pointer-events: none;
  opacity: 1;
  transition: opacity 200ms ease;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
}

.field--name-field-transcription.is-expanded .field__item {
  max-height: 99999px;
  margin-top: 30px;
}

.field--name-field-transcription.is-expanded .rheumnow-transcription__clip::before {
  opacity: 0;
}

/* Collapsed: отступ между текстом и полосой — кнопка визуально ниже */
.field--name-field-transcription:not(.is-expanded) .rheumnow-transcription__toggle {
  margin-top: 10px;
}

/* Toggle row: шеврон внизу полосы, по центру по горизонтали */
.field--name-field-transcription .rheumnow-transcription__toggle {
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 48px;
  height: auto;
  margin: 0;
  padding: 0 0 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.field--name-field-transcription .rheumnow-transcription__toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-bottom: 2px;
  transform: rotate(0deg);
  transition: transform 200ms ease;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3e%3cpath fill='%23000' d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.field--name-field-transcription.is-expanded .rheumnow-transcription__toggle::after {
  transform: rotate(180deg);
}
