/* Video Transcript Template Styles - Overrides Main Theme CSS */



/* Collapsible trigger icon — make width/height apply */
.video-first__collapsible .collapsible__trigger-icon  {
  height: .3125rem !important;
  margin: 0 0 0 .875rem !important;
  position: relative !important;
  width: .5rem !important;
}

/* If the visible glyph is an inner SVG */
.collapsible__trigger-icon  {
  height: .625rem !important;
  margin: 0 .625rem 0 0 !important;
  position: relative !important;
  width: 1.4375rem !important;
}

/* Base styles for collapsible trigger icon pseudo-elements */
.video-first__collapsible .collapsible__trigger-icon:after,
.video-first__collapsible .collapsible__trigger-icon:before {
    background: currentColor;
    content: "";
    height: .3125rem;
    position: absolute;
    transition: transform .2s cubic-bezier(.4, 0, 1, 1);
    width: .125rem;
}

/* Position the pseudo-elements */
.video-first__collapsible .collapsible__trigger-icon:before {
    right: 0;
}

.video-first__collapsible .collapsible__trigger-icon:after {
    right: .1875rem;
}

/* Collapsed state (default) - chevron pointing right */
.video-first__collapsible .collapsible__trigger-icon--collapsed:before,
.video-first__collapsible .collapsible__trigger-icon:before {
    transform: rotate(45deg);
}

.video-first__collapsible .collapsible__trigger-icon--collapsed:after,
.video-first__collapsible .collapsible__trigger-icon:after {
    transform: rotate(-45deg);
}

/* Expanded state - chevron pointing down */
.video-first__collapsible .collapsible__trigger-icon--expanded:before {
    transform: rotate(-45deg);
}

.video-first__collapsible .collapsible__trigger-icon--expanded:after {
    transform: rotate(45deg);
}

button {
    background: none;
    border: 0;
    cursor: pointer !important;
    margin: 0;
    padding: 0
}

/* New clean transcript display styles */
.video-transcript .video-first__transcript-block {
  display: flex;
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}
.video-transcript .video-first__transcript-timestamp {
  color: #6b7280; /* gray-500 */
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-right: 12px;
  min-width: 64px;
}
.video-transcript .video-first__transcript-speaker {
  font-weight: normal;
}
.video-transcript .video-first__transcript-detail {
  white-space: normal; /* content already has <br> */
  flex: 1;
}

@media (min-width: 600px) {
    .card--video .card__meta-value,.card-tool__copy,.data-point--detail .data-point-legend__item,.inline-image-legend__item-value,.video-first__meta-group-detail,.video-first__transcript-detail,.video-first__transcript-timestamp {
        font-size:1rem
    }
}

@media (min-width: 1024px) {
    .card--video .card__meta-value,.card-tool__copy,.data-point--detail .data-point-legend__item,.inline-image-legend__item-value,.video-first__meta-group-detail,.video-first__transcript-detail,.video-first__transcript-timestamp {
        font-size:1rem;
    }
}

/* Collapsible transcript styling */
.video-first__transcript {
    border-bottom: 0 !important;
}

.video-first__collapsible {
    border: 0 !important;
    border-bottom: .0625rem solid #eee !important;
    border-top: .0625rem solid #eee !important;
    margin-bottom: .9375rem !important;
    padding: .9375rem 0 !important;
}

div {
    display: block;
    unicode-bidi: isolate;
}

.collapsible__trigger, .external-link, .gated-content-modal__cta, .market-selector-footer__button, .related-content__next-article-link, .video-badge {
    font-family: Google Sans, arial, sans-serif;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.25rem;
}

[type=reset], [type=submit], button, html [type=button] {
    -webkit-appearance: button;
}

button, select {
    text-transform: none;
}

button, input, optgroup, select, textarea {
    font: inherit;
    margin: 0;
}



/* Remove focus outline from collapsible trigger */
.collapsible__trigger:focus,
.collapsible__trigger:focus-visible,
.video-first__collapsible .collapsible__trigger:focus,
.video-first__collapsible .collapsible__trigger:focus-visible,
button.collapsible__trigger:focus,
button.collapsible__trigger:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Override theme collapsible content - IMPORTANT: Hidden by default */
.video-post .video-first__transcript .collapsible__content,
.video-post .collapsible .collapsible__content,
.video-post .video-first__collapsible .collapsible__content,
.video-post .collapsible__content {
    all: unset !important;
    display: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.3s ease !important;
}

/* Show content when expanded */
.video-post .collapsible__content[aria-hidden="false"] {
    display: block !important;
    max-height: none !important;
}

/* Override theme transcript content */
.video-post .video-first__transcript-content {
    all: unset !important;
    display: block !important;
    padding: 24px !important;
    background-color: #ffffff !important;
}

/* Enhanced Transcript Display */
.video-post .transcript-container {
    margin-bottom: 24px !important;
}

.video-post .transcript-line {
    display: flex !important;
    align-items: flex-start !important;
    margin-bottom: 16px !important;
    padding: 12px 16px !important;
    background-color: #ffffff !important;
    border-radius: 8px !important;
    border: 1px solid #e8eaed !important;
    transition: all 0.2s ease !important;
}

.video-post .transcript-line:hover {
    background-color: #f8f9fa !important;
    border-color: #dadce0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.video-post .transcript-timestamp {
    display: inline-block !important;
    background-color: #1a73e8 !important;
    color: white !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    margin-right: 16px !important;
    min-width: 50px !important;
    text-align: center !important;
    font-family: 'Roboto Mono', monospace !important;
    flex-shrink: 0 !important;
}

.video-post .transcript-content {
    flex: 1 !important;
    color: #202124 !important;
    line-height: 1.6 !important;
    font-family: Roboto, Arial, sans-serif !important;
    font-size: 14px !important;
}

/* Transcript Actions */
.video-post .transcript-actions {
    display: flex !important;
    gap: 12px !important;
    margin-top: 24px !important;
    padding-top: 24px !important;
    border-top: 1px solid #e8eaed !important;
}

.video-post .btn {
    padding: 12px 24px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-family: 'Google Sans', Roboto, Arial, sans-serif !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.video-post .btn--secondary {
    background-color: #f8f9fa !important;
    color: #5f6368 !important;
    border: 1px solid #dadce0 !important;
}

.video-post .btn--secondary:hover {
    background-color: #f1f3f4 !important;
    color: #202124 !important;
    border-color: #bdc1c6 !important;
}

/* Footer Metadata Styles */
.video-post .entry-footer {
    margin-top: 32px !important;
    padding: 24px 0 !important;
    border-top: 1px solid #e8eaed !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    align-items: center !important;
}

.video-post .video-upload-date,
.video-post .video-duration,
.video-post .video-speaker {
    display: inline-flex !important;
    align-items: center !important;
    padding: 8px 16px !important;
    background-color: #f8f9fa !important;
    border: 1px solid #e8eaed !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    color: #5f6368 !important;
    font-family: 'Google Sans', Roboto, Arial, sans-serif !important;
    font-weight: 500 !important;
}

.video-post .video-description {
    width: 100% !important;
    margin: 16px 0 0 0 !important;
    padding: 16px !important;
    background-color: #f8f9fa !important;
    border: 1px solid #e8eaed !important;
    border-radius: 8px !important;
    color: #202124 !important;
    line-height: 1.6 !important;
    font-family: Roboto, Arial, sans-serif !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-post .transcript-line {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .video-post .transcript-timestamp {
        align-self: flex-start !important;
        margin-right: 0 !important;
    }
}

/* Collapsible trigger button styling */
.collapsible__trigger:not(:focus-visible) {
    outline: none;
}

.video-first__collapsible .collapsible__trigger {
    padding-right: .625rem !important;
    width: inherit !important;
}

.collapsible__trigger:focus, .collapsible__trigger:hover, .external-link:focus, .external-link:hover, .gated-content-modal__cta:focus, .gated-content-modal__cta:hover, .market-selector-footer__button:focus, .market-selector-footer__button:hover, .related-content__next-article-link:focus, .related-content__next-article-link:hover, .video-badge:focus, .video-badge:hover {
    color: #174ea6;
}

.collapsible__trigger, .external-link, .gated-content-modal__cta, .related-content__next-article-link, .video-badge {
    color: #1a73e8;
}

.collapsible__trigger {
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    text-decoration: none;
    width: 100%;
}






