/* The Rail - Global link styles (override red links from styles.css) */
.the-rail a,
.the-rail-sidebar a {
  color: #16a085;
  border-bottom-color: #16a085;
  line-height: inherit;
}

.the-rail a:hover,
.the-rail-sidebar a:hover {
  color: #1abc9c;
  border-bottom-color: #1abc9c;
}

/* The Rail Wrapper - Contains sidebar + main content */
.the-rail-wrapper {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* Sidebar - Hidden on mobile, shown on desktop */
.the-rail-sidebar {
  display: none;
}

@media (min-width: 992px) {
  .the-rail-sidebar {
    display: block;
    flex: 0 0 220px;
    padding: 20px;
    background: rgba(22, 160, 133, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(22, 160, 133, 0.2);
    position: sticky;
    top: 20px;
  }

  .the-rail-sidebar h2 {
    font-size: 1.2em;
    font-weight: 700;
    color: #16a085;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 8px;
  }

  .the-rail-sidebar h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #16a085, transparent);
    border-radius: 2px;
  }

  .the-rail-sidebar p {
    font-size: 0.9em;
    line-height: 1.5;
    color: #c8c8c8;
    margin: 0 0 12px 0;
  }

  .the-rail-sidebar p:last-child {
    margin-bottom: 0;
  }

  .the-rail-sidebar a {
    color: #16a085;
    text-decoration: none;
    border-bottom: 1px solid rgba(22, 160, 133, 0.3);
    transition: all 0.2s ease;
  }

  .the-rail-sidebar a:hover {
    color: #1abc9c;
    border-bottom-color: #1abc9c;
  }

  /* Quick Links Section */
  .rail-quick-links {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(22, 160, 133, 0.2);
  }

  .rail-quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: rgba(22, 160, 133, 0.05);
    border: 1px solid rgba(22, 160, 133, 0.15);
    border-radius: 6px;
    border-bottom: 1px solid rgba(22, 160, 133, 0.15) !important;
    transition: all 0.2s ease;
    text-decoration: none;
  }

  .rail-quick-link:last-child {
    margin-bottom: 0;
  }

  .rail-quick-link:hover {
    background: rgba(22, 160, 133, 0.12);
    border-color: rgba(22, 160, 133, 0.3);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(22, 160, 133, 0.15);
  }

  .rail-quick-link .link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #888;
    transition: color 0.2s ease;
  }

  .rail-quick-link .link-icon svg {
    width: 100%;
    height: 100%;
  }

  .rail-quick-link:hover .link-icon {
    color: #16a085;
  }

  .rail-quick-link .link-text {
    font-size: 0.9em;
    font-weight: 500;
    color: #c8c8c8;
  }

  .rail-quick-link:hover .link-text {
    color: #1abc9c;
  }
}

/* The Rail Container Widths */
.the-rail {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  flex: 1;
}

/* Mobile: Full width with no padding */
@media (max-width: 767px) {
  .the-rail-wrapper {
    padding: 0;
  }

  .the-rail {
    max-width: 100%;
    padding: 0;
  }
}

/* Tablet: Moderate width */
@media (min-width: 768px) and (max-width: 991px) {
  .the-rail-wrapper {
    max-width: 600px;
    padding: 0 20px;
  }

  .the-rail {
    max-width: 100%;
    padding: 0;
  }
}

/* Desktop: Slightly wider with sidebar */
@media (min-width: 992px) and (max-width: 1199px) {
  .the-rail-wrapper {
    max-width: 900px;
    padding: 0 20px;
  }

  .the-rail {
    max-width: 100%;
    padding: 0;
  }
}

/* Large Desktop: Max width with sidebar */
@media (min-width: 1200px) {
  .the-rail-wrapper {
    max-width: 980px;
    padding: 0 20px;
  }

  .the-rail {
    max-width: 100%;
    padding: 0;
  }
}

/* Page Title Styling */
.the-rail > h1 {
  font-weight: 900;
  font-size: 2em;
  background: linear-gradient(135deg, #16a085 0%, #1abc9c 50%, #16a085 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(22, 160, 133, 0.4);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.the-rail > h1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #16a085, transparent);
  border-radius: 2px;
}

@media (max-width: 767px) {
  .the-rail #featured-content > .container {
    padding: 10px;
  }
  .the-rail > h1 {
    font-size: 1.5em;
  }
}

.stream {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  position: relative;
  padding: 1rem 1rem 1rem 50px;
  min-height: 100vh;
}

/* Vertical timeline accent */
.stream::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #2a2a2a, #16a085, #2a2a2a);
  animation: pulse-line 3s ease-in-out infinite;
}

@media (min-width: 768px) {
  .stream {
    padding: 2rem 2rem 2rem 80px;
  }

  .stream::before {
    left: 40px;
  }
}

@keyframes pulse-line {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.stream h2 {
  font-weight: 800;
  color: #16a085;
  font-size: 1.1em;
  padding: 24px 12px 12px;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  text-shadow: 0 2px 8px rgba(22, 160, 133, 0.3);
}

/* Timeline dot for date headers */
.stream h2::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 60%;
  transform: translate(-50%, -50%);
  width: 13px;
  height: 13px;
  background: #16a085;
  border: 2px solid #1a1a2e;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(22, 160, 133, 0.2),
              0 0 15px rgba(22, 160, 133, 0.4);
}

@media (min-width: 768px) {
  .stream h2 {
    padding: 24px 24px 12px;
    letter-spacing: 3px;
  }

  .stream h2::before {
    left: -39px;
    width: 17px;
    height: 17px;
    border: 3px solid #1a1a2e;
    box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.2),
                0 0 20px rgba(22, 160, 133, 0.4);
  }
}

.story-card {
  padding: 16px 12px;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  animation: fadeInUp 0.5s ease-out;
}

@media (min-width: 768px) {
  .story-card {
    padding: 16px 20px;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.story-card::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 26px;
  width: 9px;
  height: 9px;
  background: #2a2a2a;
  border: 2px solid #16a085;
  border-radius: 50%;
  transform: translateX(-50%);
}

@media (min-width: 768px) {
  .story-card::before {
    left: -42px;
    width: 11px;
    height: 11px;
  }
}

.story-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: #16a085;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.story-card:hover::before {
  background: #16a085;
  box-shadow: 0 0 0 2px rgba(22, 160, 133, 0.2),
              0 0 15px rgba(22, 160, 133, 0.4);
}

@media (min-width: 768px) {
  .story-card:hover::before {
    box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.2),
                0 0 20px rgba(22, 160, 133, 0.4);
  }
}

.story-card h3 {
  font-weight: 600;
  color: #e8e8e8;
  font-size: 1em;
  display: inline;
}

.story-card .col-md-4 {
  padding-right: 0;
}

.story-card .preview-card .card-title {
  font-weight: normal;
  margin-bottom: 0;
  color: #e8e8e8;
  font-size: 0.9rem;
  line-height: 1.3rem;
  overflow: hidden;
}

.story-card .card-text {
  font-size: 0.9em;
  line-height: 1.6;
  color: #b8b8b8;
}

.story-card .body p {
  color: #c8c8c8;
  display: inline;
  line-height: 1.6;
}

.story-card .body p + p {
  display: block;
  margin: 1rem 0 0 0;  /* bad top instead of bottom so we have gap between paragraphs */
}

.story-card .body p a {
  color: #16a085;
  text-decoration: none;
  border-bottom: 1px solid rgba(22, 160, 133, 0.3);
  transition: all 0.2s ease;
}

.story-card .body p a:hover {
  color: #1abc9c;
  border-bottom-color: #1abc9c;
}

/* Blockquote styling */
.story-card .body blockquote {
  margin: 1rem 0;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-left: 3px solid rgba(22, 160, 133, 0.4);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: #b8b8b8;
}

.story-card .body blockquote p {
  display: block;
  margin: 0.5rem 0;
}

.story-card .body blockquote p:first-child {
  margin-top: 0;
}

.story-card .body blockquote p:last-child {
  margin-bottom: 0;
}

/* List styling */
.story-card .body ul,
.story-card .body ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
  color: #c8c8c8;
}

.story-card .body ul li,
.story-card .body ol li {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.story-card .body ul {
  list-style-type: disc;
}

.story-card .body ol {
  list-style-type: decimal;
}

.story-card .body ul li::marker {
  color: #16a085;
}

.story-card .body ol li::marker {
  color: #16a085;
  font-weight: 600;
}

/* Writer attribution styling */
.story-card .text-muted {
  color: #16a085 !important;
  font-weight: 600;
  font-style: italic;
  font-size: 0.9em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Story footer styling */
.story-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 12px 0.75rem 15px; /* Extra left padding to cover border */
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(22, 160, 133, 0.15);
  margin: 1rem -12px -16px -15px; /* Account for 12px padding + 3px border */
  border-radius: 0;
  border-left: 3px solid transparent; /* Match parent border */
  transition: border-left-color 0.3s ease;
}

@media (min-width: 768px) {
  .story-footer {
    padding: 0.75rem 20px 0.75rem 23px; /* Extra left padding to cover border */
    margin: 1rem -20px -16px -23px; /* Account for 20px padding + 3px border */
  }
}

/* On hover, match the green border */
.story-card:hover .story-footer {
  border-left-color: #16a085;
}

.footer-author {
  color: #888;
  font-size: 0.9em;
}

.footer-author em {
  font-weight: 600;
  font-style: normal;
}

.footer-date {
  color: #888;
  font-size: 0.85em;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-date a {
  color: #888;
  text-decoration: none;
  border-bottom: none;
  transition: color 0.2s ease;
}

.footer-permalink:hover {
  color: #aaa;
  text-decoration: none;
}

.footer-share {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}

.footer-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #666;
  transition: color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.footer-share-btn:hover {
  color: #aaa;
  transform: scale(1.1);
  text-decoration: none;
}

.footer-share-btn svg {
  width: 100%;
  height: 100%;
}

.story-card aside {
  margin-top: 1rem;
}

/* Preview Cards Container */
.story-card aside .preview-cards-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Multiple Preview Cards Stacking */
.story-card aside .preview-cards-container .preview-card + .preview-card {
  margin-top: 1.5rem;
  position: relative;
}

/* Separator between cards */
.story-card aside .preview-cards-container .preview-card + .preview-card::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(22, 160, 133, 0.3), transparent);
  margin: -0.75rem 0 0.75rem 0;
}

/* Archive Section */
.archive-section {
  margin-top: 3rem;
  padding-top: 2rem;
  position: relative;
}

.archive-section h2 {
  font-weight: 800;
  color: #16a085;
  font-size: 1.1em;
  padding: 24px 24px 12px;
  margin: 0 0 1.5rem 0;
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
  text-shadow: 0 2px 8px rgba(22, 160, 133, 0.3);
}

.archive-section h2::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 13px;
  height: 13px;
  background: #16a085;
  border: 2px solid #1a1a2e;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(22, 160, 133, 0.2),
              0 0 15px rgba(22, 160, 133, 0.4);
}

@media (min-width: 768px) {
  .archive-section h2::before {
    left: -38px;
    width: 16px;
    height: 16px;
    border: 3px solid #1a1a2e;
    box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.2),
                0 0 20px rgba(22, 160, 133, 0.4);
  }
}

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.archive-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid transparent;
  border-bottom: none !important;
  transition: all 0.3s ease;
  text-decoration: none !important;
  color: #e8e8e8 !important;
  position: relative;
}

.archive-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  background: #2a2a2a;
  border: 2px solid #16a085;
  border-radius: 50%;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .archive-item::before {
    left: -42px;
    width: 9px;
    height: 9px;
  }
}

.archive-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: #16a085;
  border-bottom: none !important;
  transform: translateX(4px);
  color: #e8e8e8 !important;
}

.archive-item:hover .archive-week {
  color: #1abc9c !important;
}

.archive-item:hover::before {
  width: 10px;
  height: 10px;
  background: #16a085;
  box-shadow: 0 0 10px rgba(22, 160, 133, 0.5);
}

.archive-week {
  font-weight: 600;
  font-size: 0.95em;
}

.archive-dates {
  color: #16a085;
  font-size: 0.9em;
  opacity: 0.8;
}

.archive-view-all {
  display: inline-block;
  padding: 12px 24px;
  background: rgba(22, 160, 133, 0.2);
  border: 2px solid rgba(22, 160, 133, 0.4) !important;
  border-bottom: 2px solid rgba(22, 160, 133, 0.4) !important;
  color: #16a085 !important;
  text-decoration: none !important;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 24px;
  position: relative;
}

.archive-view-all::before {
  content: '';
  position: absolute;
  left: -55px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  background: #2a2a2a;
  border: 2px solid #16a085;
  border-radius: 50%;
}

@media (min-width: 768px) {
  .archive-view-all::before {
    left: -65px;
    width: 9px;
    height: 9px;
  }
}

.archive-view-all:hover {
  background: rgba(22, 160, 133, 0.3);
  border: 2px solid rgba(22, 160, 133, 0.6) !important;
  border-bottom: 2px solid rgba(22, 160, 133, 0.6) !important;
  color: #1abc9c !important;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(22, 160, 133, 0.3);
}

/* Year Archive Grid */
.archive-year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 1rem;
  padding: 1.5rem 0;
}

.archive-year-item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(22, 160, 133, 0.2);
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #e8e8e8;
  min-height: 100px;
  min-width: 0;
}

.archive-year-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(22, 160, 133, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border-bottom: 2px solid rgba(22, 160, 133, 0.5) !important;
}

.archive-year-week {
  font-weight: 700;
  font-size: 1.1em;
  color: #e8e8e8;
  margin-bottom: 8px;
}

.archive-year-item:hover .archive-year-week {
  color: #1abc9c;
}

.archive-year-dates {
  color: #16a085;
  font-size: 0.9em;
  margin-bottom: 12px;
}

.archive-year-count {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(22, 160, 133, 0.3);
  color: #16a085;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 600;
  border: 1px solid rgba(22, 160, 133, 0.4);
}

.archive-year-item:hover .archive-year-count {
  background: rgba(22, 160, 133, 0.5);
  color: #1abc9c;
  border-color: rgba(22, 160, 133, 0.6);
}

/* Archive Back Button */
.archive-back-button {
  display: inline-block;
  padding: 12px 32px;
  background: rgba(22, 160, 133, 0.2);
  border: 2px solid rgba(22, 160, 133, 0.4) !important;
  border-bottom: 2px solid rgba(22, 160, 133, 0.4) !important;
  color: #16a085;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.archive-back-button:hover {
  background: rgba(22, 160, 133, 0.3);
  border: 2px solid rgba(22, 160, 133, 0.6) !important;
  border-bottom: 2px solid rgba(22, 160, 133, 0.6) !important;
  color: #1abc9c;
  box-shadow: 0 4px 12px rgba(22, 160, 133, 0.3);
}


.preview-card {
  max-width: 540px;
  background: linear-gradient(135deg, rgba(32, 32, 32, 0.6) 0%, rgba(22, 160, 133, 0.1) 100%);
  border: 1px solid rgba(22, 160, 133, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  overflow: hidden;
}


.preview-card:hover {
  border-color: rgba(22, 160, 133, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.preview-card .card-body {
  padding: 1rem;
}


.card-title-link {
  text-decoration: none;
  color: #e8e8e8;
  border-bottom: none;
  width: 100%;
  transition: color 0.2s ease;
}

.card-title-link:hover {
  color: #16a085;
}

.publisher-logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  float: right;
  margin-left: 8px;
  margin-bottom: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(22, 160, 133, 0.3);
}

.preview-card-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-bottom: 2px solid rgba(22, 160, 133, 0.2);
  display: block;
}

/* Dark mode text overrides */
.preview-card .text-muted,
.preview-card small,
.preview-card .small {
  color: #16a085 !important;
  opacity: 0.8;
}

.preview-card p {
  color: #c8c8c8;
}

.preview-card a:not(.card-title-link) {
  color: #16a085;
  text-decoration: none;
}

.preview-card a:not(.card-title-link):hover {
  color: #1abc9c;
  border-bottom-color: #1abc9c;
}

.preview-card-img-left {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Audio Player Styles */
.waveform-player {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(22, 160, 133, 0.15);
  border-radius: 6px;
  padding: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.play-pause-btn {
  min-width: 36px !important;
  height: 36px !important;
  background: rgba(22, 160, 133, 0.2) !important;
  border: 2px solid rgba(22, 160, 133, 0.4) !important;
  color: #16a085 !important;
  font-size: 1rem !important;
  border-radius: 4px !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.play-pause-btn:hover,
.play-pause-btn:focus,
.play-pause-btn:active {
  background: rgba(22, 160, 133, 0.3) !important;
  border-color: rgba(22, 160, 133, 0.6) !important;
  color: #1abc9c !important;
  box-shadow: 0 0 12px rgba(22, 160, 133, 0.3) !important;
  outline: none !important;
}

.play-pause-btn .play-icon,
.play-pause-btn .pause-icon {
  pointer-events: none;
}

.current-time,
.total-time {
  color: #888;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: monospace;
}

.player-controls > .mx-1 {
  color: #555;
}

.audio-publisher {
  font-size: 0.85rem;
  margin-left: auto;
}

.audio-publisher a {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.audio-publisher a:hover {
  opacity: 1;
}


.waveform-container {
  position: relative;
  height: 50px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(22, 160, 133, 0.2);
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.waveform-container:hover {
  border-color: rgba(22, 160, 133, 0.4);
  box-shadow: 0 0 15px rgba(22, 160, 133, 0.15);
}

.waveform-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(22, 160, 133, 0.3), rgba(22, 160, 133, 0.5));
  width: 0;
  transition: width 0.1s;
  pointer-events: none;
}

.waveform-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  filter: contrast(1.2);
}

.hidden-audio {
  display: none;
}

/* Video Player Styles */
.tweet-video-container {
  position: relative;
  width: 100%;
  max-height: 400px;
  background: #000;
  overflow: hidden;
  border-bottom-left-radius: .25rem;
  border-bottom-right-radius: .25rem;
  border: 2px solid rgba(22, 160, 133, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.video-preview-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-bottom-left-radius: .25rem;
  border-bottom-right-radius: .25rem;
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(22, 160, 133, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 20px rgba(22, 160, 133, 0.6),
              0 0 40px rgba(22, 160, 133, 0.3);
}

.video-play-button:hover {
  background: rgba(26, 188, 156, 1);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 30px rgba(22, 160, 133, 0.8),
              0 0 60px rgba(22, 160, 133, 0.5);
}

.video-play-button:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.video-play-icon {
  margin-left: 4px;
}

.tweet-video-player {
  width: 100%;
  height: 100%;
  background: #000;
  display: none;
  border-bottom-left-radius: .25rem;
  border-bottom-right-radius: .25rem;
}

/* Native video should use object-fit to maintain aspect within container */
video.tweet-video-player {
  object-fit: contain;
}

/* Media Grid Styles (Twitter-style) */
.media-grid {
  display: grid;
  gap: 3px;
  background: #2a2a2a;
  border-bottom-left-radius: .25rem;
  border-bottom-right-radius: .25rem;
  overflow: hidden;
  max-height: 400px;
  border: 2px solid rgba(22, 160, 133, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.media-grid-item {
  position: relative;
  overflow: hidden;
  background: #000;
}

.media-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-grid-item a {
  display: block;
  width: 100%;
  height: 100%;
}

/* 2 items - side by side */
.media-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.media-grid-2 .media-grid-item {
  aspect-ratio: 1 / 1;
}

/* 3 items - first tall on left, two stacked on right */
.media-grid-3 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.media-grid-3 .media-grid-item-1 {
  grid-row: 1 / 3;
  aspect-ratio: 2 / 3;
}

.media-grid-3 .media-grid-item-2,
.media-grid-3 .media-grid-item-3 {
}

/* 4+ items - 2x2 grid */
.media-grid-4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.media-grid-4 .media-grid-item {
  aspect-ratio: 1 / 1;
}

/* Video players in grid need to fit properly */
.media-grid-item .tweet-video-container {
  max-height: none;
  height: 100%;
  border-radius: 0;
}

.media-grid-item .video-preview-image {
  border-radius: 0;
}

.media-grid-item .tweet-video-player {
  border-radius: 0;
}

/* Responsive */
@media (max-width: 1200px) {
  .therail-container {
    flex-direction: column;
  }

  .column-left,
  .column-middle,
  .column-right {
    flex: 1 1 auto;
    max-width: 100%;
  }
}

/* ============================================================================
   Twitter Text Transitions
   ============================================================================ */

/* Wrapper for text content - creates stacking context */
.twitter-text-wrapper {
  position: relative;
}

/* Short text - visible by default */
.twitter-text-content {
  display: block;
}

/* Full text - hidden by default */
.twitter-text-full {
  display: none;
}

/* When expanded - hide short text and show full text */
.twitter-text.expanded .twitter-text-content {
  display: none;
}

.twitter-text.expanded .twitter-text-full {
  display: block;
}

/* Style for read more/show less links */
.twitter-read-more,
.twitter-show-less {
  color: #1da1f2;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  margin-top: 4px;
}

.twitter-read-more:hover,
.twitter-show-less:hover {
  text-decoration: underline;
}

/* Hide show less by default */
.twitter-show-less {
  display: none;
}

.twitter-text.expanded .twitter-read-more {
  display: none;
}

.twitter-text.expanded .twitter-show-less {
  display: inline-block;
}

/* Twitter stats bar */
.twitter-stats {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.twitter-stats-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* Hide quote count, like count, and bookmark count on mobile */
@media (max-width: 767px) {
  .twitter-stats-row .stat-item:nth-child(3),  /* quote count */
  .twitter-stats-row .stat-item:nth-child(4),  /* like count */
  .twitter-stats-row .stat-item:nth-child(5) { /* bookmark count */
    display: none;
  }
}

.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9em;
  color: #8b98a5 !important;
  text-decoration: none;
  border-bottom: none !important;
  transition: all 0.2s ease;
  cursor: pointer;
}

.stat-item:hover {
  color: #16a085 !important;
  transform: translateY(-1px);
  border-bottom: none !important;
}

/* Override .preview-card a styles for stat items */
.preview-card .stat-item,
.preview-card a.stat-item {
  color: #8b98a5 !important;
  border-bottom: none !important;
}

.preview-card .stat-item:hover,
.preview-card a.stat-item:hover {
  color: #16a085 !important;
  border-bottom: none !important;
}

.stat-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  display: block;
}

.stat-value {
  font-weight: 500;
  color: inherit;
  line-height: 1;
}

.twitter-permalink {
  color: #8b98a5 !important;
  text-decoration: none;
  border-bottom: none !important;
  font-weight: 500;
  font-size: 0.9em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.twitter-permalink:hover {
  color: #16a085 !important;
  text-decoration: none;
  border-bottom: none !important;
}

/* Override .preview-card a styles for twitter permalink */
.preview-card .twitter-permalink,
.preview-card a.twitter-permalink {
  color: #8b98a5 !important;
  border-bottom: none !important;
}

.preview-card .twitter-permalink:hover,
.preview-card a.twitter-permalink:hover {
  color: #16a085 !important;
  border-bottom: none !important;
}

/* Twitter profile logo link */
.publisher-logo-link {
  border-bottom: none !important;
  text-decoration: none;
  line-height: 0;
}

.publisher-logo-link:hover {
  border-bottom: none !important;
  opacity: 0.8;
}

.preview-card .publisher-logo-link,
.preview-card a.publisher-logo-link {
  border-bottom: none !important;
}

.preview-card .publisher-logo-link:hover,
.preview-card a.publisher-logo-link:hover {
  border-bottom: none !important;
}

/* Override backend preview-section styles */
.preview-section .stat-item,
.preview-section a.stat-item {
  color: #8b98a5 !important;
  border-bottom: none !important;
}

.preview-section .stat-item:hover,
.preview-section a.stat-item:hover {
  color: #16a085 !important;
  border-bottom: none !important;
}

.preview-section .twitter-permalink,
.preview-section a.twitter-permalink {
  color: #8b98a5 !important;
  border-bottom: none !important;
}

.preview-section .twitter-permalink:hover,
.preview-section a.twitter-permalink:hover {
  color: #16a085 !important;
  border-bottom: none !important;
}

.preview-section .publisher-logo-link,
.preview-section a.publisher-logo-link {
  border-bottom: none !important;
}

.preview-section .publisher-logo-link:hover,
.preview-section a.publisher-logo-link:hover {
  border-bottom: none !important;
}




/* specific body/site design styles for The Rail, which dark display */
body.the-rail {
  background-color: #000 !important;
}
body.the-rail footer {
  padding-top: 60px !important;
  border-top-color: #333 !important;
  background-color: #000 !important;
  color: #999;
}

body.the-rail footer a {
  color: #ccc;
}

body.the-rail footer .float-right {
  background-color: #ccc !important;
  border-radius: 10px;
  padding: 10px;
}


/* dark design site navigation */
body.the-rail .navbar-light .navbar-nav .nav-link {
  color: #aaa;
}

body.the-rail .navbar-light .navbar-toggler {
  border-color: rgba(255, 255, 255, .1)
}

body.the-rail .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%23fff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

body.the-rail .mob-section-nav {
  background-color: #333;
}

/* ============================================================================
   Media Embeds for The Rail
   ============================================================================ */

/* Google Drive PDF/Doc Embed Styles */
.story-card .media-embed-doc {
  margin: 1rem 0;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(22, 160, 133, 0.3);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.story-card .media-embed-doc:hover {
  border-color: rgba(22, 160, 133, 0.5);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}

.story-card .media-embed-doc iframe {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

/* For embeds within preview cards (in aside section) */
.preview-card .media-embed-doc {
  margin: 0;
  border-radius: 0;
  border: none;
  border-bottom: 2px solid rgba(22, 160, 133, 0.3);
}

.preview-card .media-embed-doc iframe {
  height: 500px;
}

/* Side-by-side layout: iframe on left, content on right */
.preview-card .row .col-md-6 .media-embed-doc {
  border-bottom: none;
  border-right: 2px solid rgba(22, 160, 133, 0.3);
  height: 100%;
  min-height: 400px;
}

.preview-card .row .col-md-6 .media-embed-doc iframe {
  height: 100%;
  min-height: 400px;
}

/* Responsive heights for mobile */
@media (max-width: 767px) {
  .story-card .media-embed-doc iframe {
    height: 400px;
  }

  .preview-card .media-embed-doc iframe {
    height: 350px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .story-card .media-embed-doc iframe {
    height: 500px;
  }

  .preview-card .media-embed-doc iframe {
    height: 450px;
  }
}

/* ========================================
   Trending Collections Styles
   ======================================== */

/* Trending Section */
.trending-section {
  margin: 0 0 2.5rem 0;
  padding: 0;
}

.trending-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #16a085;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Trending Collections Container */
.trending-collections {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Trending Chip */
.trending-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(22, 160, 133, 0.12);
  color: #e8e8e8;
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  border: none;
}

.trending-chip:hover {
  background: rgba(22, 160, 133, 0.2);
  color: #fff;
  transform: translateY(-1px);
}

.trending-chip-text {
  font-weight: 500;
}

.trending-chip-count {
  font-size: 0.85rem;
  color: #16a085;
  font-weight: 500;
}

.trending-chip-count::before {
  content: '(';
}

.trending-chip-count::after {
  content: ')';
}

/* Trending Collection Page */
.trending-collection-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 2rem;
}

.trending-collection-title-section {
  flex: 1;
}

.trending-collection-header h1 {
  margin: 0;
  font-weight: 900;
  font-size: 2em;
  background: linear-gradient(135deg, #16a085 0%, #1abc9c 50%, #16a085 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(22, 160, 133, 0.4);
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 1rem;
}

.trending-collection-header h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #16a085, transparent);
  border-radius: 2px;
}

.trending-collection-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: #555;
  margin-top: 0.75rem;
}

.trending-collection-description p {
  margin: 0.5rem 0;
}

.trending-collection-meta {
  margin-top: 0.75rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: #16a085;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.back-link:hover {
  color: #1abc9c;
  transform: translateX(-4px);
}

.no-posts-message {
  text-align: center;
  padding: 4rem 2rem;
  color: #8b98a5;
}

.no-posts-message p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.no-posts-message .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: rgba(22, 160, 133, 0.2);
  border: 1px solid #16a085;
  border-radius: 6px;
  color: #16a085;
  text-decoration: none;
  transition: all 0.3s ease;
}

.no-posts-message .btn:hover {
  background: rgba(22, 160, 133, 0.3);
  color: #1abc9c;
  transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 767px) {
  .trending-section {
    margin: 0 0 2rem 0;
  }

  .trending-section h2 {
    font-size: 1rem;
  }

  .trending-collections {
    gap: 0.6rem;
  }

  .trending-chip {
    font-size: 0.9rem;
    padding: 0.45rem 0.85rem;
  }

  .trending-chip-count {
    font-size: 0.8rem;
  }

  .trending-collection-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .trending-collection-header .archive-back-button {
    align-self: flex-start;
  }

  /* Multiple preview cards on mobile */
  .story-card aside .preview-cards-container .preview-card + .preview-card {
    margin-top: 1rem;
  }

  .story-card aside .preview-cards-container .preview-card + .preview-card::before {
    margin: -0.5rem 0 0.5rem 0;
  }
}

/* ========================================
   Homepage Rail Embed Styles
   ======================================== */

/* Row needs position relative so the Rail can position absolute within */
.homepage-hero-row {
  position: relative;
}

/* Rail embed column uses absolute positioning to match left column height */
.rail-embed-column {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
}

/* Main embed container */
.the-rail-homepage-embed {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  position: absolute;
  top: 1rem; /* matches mt-4 */
  left: 15px;
  right: 15px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header row */
.the-rail-homepage-embed .rail-embed-header {
  padding: 0.6rem 0 1rem 0;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.the-rail-homepage-embed .embed-list .stream {
  padding-left: 26px;
}

.the-rail-homepage-embed .embed-list .story-card::before {
  left: -10px;
}

.rail-embed-title {
  font-size: 1rem;
  font-weight: 700;
  color: #16a085;
  text-decoration: none;
  border-bottom: none;
  position: relative;
  padding-bottom: 6px;
}

.rail-embed-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #16a085, transparent);
  border-radius: 2px;
}

.rail-embed-title:hover {
  color: #1abc9c;
  text-decoration: none;
}

a.rail-embed-updated {
  font-size: 0.75rem;
  line-height: 1.5rem;
  color: #888;
  font-weight: 400;
  text-decoration: none;
  border-bottom: none;
}

.rail-embed-updated:hover {
  color: #aaa;
  text-decoration: none;
}

/* Posts container - fills remaining space */
.the-rail-homepage-embed .rail-posts-container {
  position: relative;
  padding: 0;
  flex: 1 1 0;
  overflow: hidden;
  min-height: 0;
}

/* Gradient fade overlay */
.the-rail-homepage-embed .rail-fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, transparent 0%, rgba(42, 42, 42, 0.7) 40%, rgba(42, 42, 42, 0.95) 70%, rgb(42, 42, 42) 100%);
  pointer-events: none;
  z-index: 10;
}

.the-rail-homepage-embed .embed-list .story-card {
  border-left: none;
}

.the-rail-homepage-embed .embed-list .story-card:hover {
  background: inherit;
  transform: none;
}

/* Button on same dark background */
.the-rail-homepage-embed .btn-rail-more {
  background: rgba(42, 42, 42, 0.85);
  margin: 0;
  width: 100%;
  border-radius: 0;
  border: none;
  border-top: 1px solid rgba(22, 160, 133, 0.2);
  padding: 12px 16px;
}

.the-rail-homepage-embed .btn-rail-more:hover {
  background: rgba(50, 50, 50, 0.9);
}

/* Read more button */
.btn-rail-more {
  display: block;
  width: calc(100% - 1.5rem);
  margin: 0 0.75rem 0.75rem;
  padding: 10px 16px;
  background: rgba(22, 160, 133, 0.15);
  border: 1px solid rgba(22, 160, 133, 0.3);
  border-radius: 4px;
  color: #16a085;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-rail-more:hover {
  background: rgba(22, 160, 133, 0.25);
  border-color: rgba(22, 160, 133, 0.5);
  color: #1abc9c;
  text-decoration: none;
}

/* ----------------------------------------
   Embed List Style
   Compact Rail display for homepage and other embeds
   Shows timeline, matches Rail homepage design
   ---------------------------------------- */

.embed-list .stream {
  min-height: auto;
  padding: 1rem 1rem 1rem 40px;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(42, 42, 42, 0.85) 100%);
}

/* Timeline line - slightly thinner for embed */
.embed-list .stream::before {
  left: 15px;
  width: 2px;
}

/* Timeline dots for story cards - smaller for embed */
.embed-list .story-card::before {
  left: -25px;
  width: 8px;
  height: 8px;
}

.embed-list .stream h2 {
  font-size: 0.7rem;
  padding: 8px 0 6px;
  margin: 0 0 0.25rem 0;
  letter-spacing: 1px;
}

.embed-list .stream h2:first-child {
  padding-top: 0;
}

.embed-list .story-card {
  padding: 12px 12px;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid transparent;
  border-bottom: none;
  transition: all 0.3s ease;
}

.embed-list .story-card-truncated {
  padding: 10px 12px;
}

.embed-list .story-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: #16a085;
}

.embed-list .story-footer {
  border-left: none !important;
  transition: none;
}

.embed-list .story-card:hover .story-footer {
  border-left: none !important;
}

.embed-list .story-card .body {
  font-size: 1rem;
  line-height: 1.4;
  color: #999;
  transition: color 0.2s ease;
}

.embed-list .story-card h3 {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  font-weight: 600;
}

.embed-list .story-card h3 a {
  line-height: inherit;
}

/* Full stories (non-truncated) have white titles */
.embed-list .story-card:not(.story-card-truncated) h3 {
  color: #ccc;
}

.embed-list .story-card .body p {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

/* Hover effect - make text white */
.embed-list .story-card:hover .body {
  color: #bbb;
}

/* Timeline dot glow on hover */
.embed-list .story-card:hover::before {
  background: #16a085;
  box-shadow: 0 0 10px rgba(22, 160, 133, 0.5);
}

/* Clickable body (for full stories - excludes preview card) */
.embed-list .body-clickable {
  position: relative;
  cursor: pointer;
}

.embed-list .body-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
}

/* Truncated cards are fully clickable */
.embed-list .story-card-truncated {
  position: relative;
  cursor: pointer;
}

.embed-list .story-card-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
}

.embed-list .story-card aside {
  margin-top: 0.6rem;
}

/* Hide preview cards for truncated stories */
.embed-list .story-card-truncated aside {
  display: none;
}

/* Clamp text to 3 lines for truncated stories */
.embed-list .story-card-truncated .body {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* The h3 and p need to be inline for clamping to work across them */
.embed-list .story-card-truncated .body h3,
.embed-list .story-card-truncated .body p {
  display: inline;
}


.embed-list .preview-card {
  max-width: 100%;
}

.embed-list .preview-card .card-body {
  padding: 0.6rem;
}

.embed-list .preview-card .card-title {
  font-size: 0.9rem;
  line-height: 1.2rem;
}
.embed-list .preview-card .card-title a {
  line-height: 1.2rem;
}

.embed-list .preview-card .card-text {
  font-size: 0.7rem;
}

.embed-list .preview-card-img {
  max-height: 140px;
}

.embed-list .twitter-text {
  font-size: 0.9rem;
}

.embed-list .twitter-stats {
  font-size: 0.7rem;
  padding-top: 6px;
}

.embed-list .stat-item {
  font-size: 0.7rem;
  gap: 3px;
}

.embed-list .story-footer {
  padding: 0.4rem 0 0 0;
  margin: 0.5rem 0 0 0;
  background: transparent;
  border-top: none;
}

.embed-list .story-card:hover .story-footer {
  border-left: none;
}

.embed-list .footer-author,
.embed-list .footer-date {
  font-size: 0.75rem;
  color: #666;
}

/* Hide footer entirely on homepage embed */
.the-rail-homepage-embed .story-footer {
  display: none;
}

/* ----------------------------------------
   Mobile styles for Rail embed
   ---------------------------------------- */
@media (max-width: 991px) {
  /* Reset absolute positioning for mobile */
  .homepage-hero-row {
    position: static;
  }

  .rail-embed-column {
    position: static;
    margin-top: 2rem;
  }

  .the-rail-homepage-embed {
    position: static;
    height: auto;
    display: block;
  }

  .the-rail-homepage-embed .rail-posts-container {
    padding: 0;
    position: static;
    overflow: visible;
    flex: none;
    height: auto;
  }

  .the-rail-homepage-embed .stream {
    min-height: auto;
    height: auto;
  }

  /* Hide the fade overlay on mobile since we show full content */
  .the-rail-homepage-embed .rail-fade-overlay {
    display: none;
  }

  /* Ensure button shows */
  .the-rail-homepage-embed .btn-rail-more {
    position: static;
    margin-top: 0.75rem;
  }
}
