/* =========================================================
   CMOROOM INSIGHTS — DETAIL PAGE
   ========================================================= */

.id-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.id-tab {
  border: 1px solid var(--dash-line);
  background: var(--dash-card);
  color: var(--dash-muted);
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: 0.2s;
}
.id-tab:hover,
.id-tab.active {
  color: #fff;
  border-color: var(--dash-gold);
  background: rgba(201, 168, 79, 0.08);
}
.id-tab.active {
  box-shadow: inset 0 -2px 0 var(--dash-gold);
}
.id-panel[hidden] {
  display: none !important;
}

.id-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 11px;
  cursor: pointer;
}
.id-check input,
.id-check-grid input,
.id-toc-list input {
  accent-color: var(--dash-gold);
}

.id-slider-settings {
  padding: 15px;
  background: var(--dash-bg);
  border: 1px solid var(--dash-line);
}
.id-slider-preview {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid var(--dash-line);
  background: #080808;
}
.id-preview-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dash-muted);
  display: block;
  margin-bottom: 12px;
}
.id-preview-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.id-preview-card {
  min-height: 105px;
  border: 1px solid var(--dash-line);
  background: #fff;
  color: #111;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.id-preview-card span {
  width: 22px;
  height: 22px;
  background: var(--dash-gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}
.id-preview-card strong {
  font-size: 12px;
  line-height: 1.35;
}
.id-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.id-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #555;
}
.id-dots span.active {
  background: var(--dash-gold);
}

.id-slide-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.id-slide-head h3 {
  font-size: 14px;
  margin: 0;
  color: #fff;
}
.id-slide-head p {
  font-size: 11px;
  color: var(--dash-muted);
  margin: 4px 0 0;
}

/*=================== featured cards (testimonial UI style) ===================*/
.id-featured-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.id-featured-card {
  padding: 14px;
  background: var(--dash-bg);
  border: 1px solid var(--dash-line);
  border-radius: 12px;
  transition: border-color 0.25s ease;
}
.id-featured-card:hover {
  border-color: rgba(147, 128, 72, 0.45);
}
.id-fc-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.id-fc-image {
  position: relative;
  flex: 0 0 90px;
  width: 90px;
  height: 64px;
}
.id-fc-image img {
  width: 90px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  background: #000;
  border: 1px solid var(--dash-line);
}
.id-fc-logo {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  margin-right: 4px;
}
.id-fc-logo img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  padding: 4px;
}
.id-fc-upload {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--dash-gold);
  border-radius: 50%;
  color: #000;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.id-fc-upload:hover {
  background: #a8944f;
}
.id-fc-fields {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.id-fc-row {
  display: flex;
  gap: 7px;
}
.id-fc-row .dash-input {
  padding: 8px 11px;
  font-size: 12.5px;
}
.id-fc-row .js-featured-title {
  flex: 1 1 auto;
  font-weight: 700;
}
.id-fc-row .js-featured-order {
  flex: 0 0 78px;
  text-align: center;
  color: var(--dash-gold);
  font-weight: 700;
}
.id-fc-fields select {
  padding: 8px 11px;
  font-size: 12.5px;
  height: auto;
}
.id-fc-tools {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.js-remove-featured {
  border: 1px solid var(--dash-line);
  background: var(--dash-surface-2);
}
.js-remove-featured:hover {
  border-color: var(--dash-red);
  color: var(--dash-red);
}
.id-featured-path {
  font-size: 10px !important;
  color: var(--dash-muted) !important;
  width: 100%;
}

.id-story {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 70px;
  gap: 15px;
  padding: 22px 0;
  border-bottom: 1px solid var(--dash-line-soft);
}
.id-story:last-child {
  border-bottom: 0;
}
.id-story-no {
  width: 30px;
  height: 30px;
  border: 1px solid var(--dash-gold);
  color: var(--dash-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.id-story-main {
  min-width: 0;
}
.id-story-actions {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}
.id-image-row {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.id-story-image {
  height: 95px;
  background: #000;
  border: 1px solid var(--dash-line);
  overflow: hidden;
}
.id-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sp-path {
  font-size: 10px !important;
  color: var(--dash-muted) !important;
}

.id-recent {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 34px;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--dash-line-soft);
  align-items: start;
}
.id-recent:last-child {
  border-bottom: 0;
}
.id-recent-img {
  height: 72px;
  background: #000;
  overflow: hidden;
}
.id-recent-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.id-check-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.id-check-grid label {
  min-height: 42px;
  border: 1px solid var(--dash-line);
  background: var(--dash-bg);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  color: #fff;
  font-size: 11px;
}
.id-check-grid i {
  color: var(--dash-gold);
}
.id-share-preview {
  border: 1px solid var(--dash-line);
  background: var(--dash-bg);
  padding: 15px;
}
.id-share-preview > span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--dash-muted);
  margin-bottom: 10px;
}
.id-share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.id-share {
  border: 1px solid var(--dash-line);
  background: transparent;
  color: #fff;
  padding: 9px 12px;
  font-size: 11px;
  cursor: pointer;
}
.id-share:hover {
  border-color: var(--dash-gold);
  color: var(--dash-gold);
}

.id-outline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.id-outline li {
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: var(--dash-body);
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.id-outline li:hover {
  background: var(--dash-bg);
  color: #fff;
}
.id-outline li.is-hidden {
  text-decoration: line-through;
  opacity: 0.6;
}

.id-glance {
  list-style: none;
  padding: 0;
  margin: 0;
}
.id-glance li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--dash-line-soft);
  font-size: 11px;
  color: var(--dash-muted);
}
.id-glance li:last-child {
  border-bottom: 0;
}
.id-glance b {
  color: #fff;
}
.id-save {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

@media (max-width: 991.98px) {
  .id-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767.98px) {
  .id-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 3px;
  }
  .id-tab {
    white-space: nowrap;
  }
  .id-preview-track {
    grid-template-columns: 1fr;
  }
  .id-slide-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .id-fc-top {
    flex-wrap: wrap;
  }
  .id-fc-tools {
    flex-direction: row;
    width: 100%;
    justify-content: flex-end;
  }
  .id-fc-row {
    flex-wrap: wrap;
  }
  .id-slide-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .id-story {
    grid-template-columns: 30px minmax(0, 1fr);
  }
  .id-story-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
  .id-image-row {
    grid-template-columns: 1fr;
  }
  .id-story-image {
    height: 160px;
  }
  .id-recent {
    grid-template-columns: 75px minmax(0, 1fr);
  }
  .id-recent .dash-act {
    grid-column: 2;
  }
  .id-check-grid {
    grid-template-columns: 1fr;
  }
}

/*=================== Imported hp styles ===================*/
.hp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  margin-bottom: 22px;
  background: var(--dash-surface);
  border: 1px solid var(--dash-line);
  border-radius: 12px;
}
.hp-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: #b7b7c3;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}
.hp-tab:hover {
  color: #fff;
  background: var(--dash-surface-2);
}
.hp-tab.active {
  background: var(--dash-gold-soft);
  color: var(--dash-gold);
}

.hp-section {
  transition: opacity 0.25s ease;
}
.hp-section.is-off {
  opacity: 0.5;
}
.hp-upload-copy {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hp-path {
  font-family: monospace;
  font-size: 12px;
  padding: 8px 11px;
}

.hp-add-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 150px;
  padding: 12px;
  background: transparent;
  border: 1px dashed var(--dash-line);
  color: var(--dash-muted);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hp-add-card:hover {
  border-color: var(--dash-gold);
  color: var(--dash-gold);
  background: var(--dash-gold-soft);
}
.hp-add-card .bi {
  font-size: 20px;
}

.hp-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 4px;
}
.hp-pick {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px;
  background: var(--dash-bg);
  border: 1px solid var(--dash-line);
  cursor: pointer;
  transition: all 0.2s ease;
}
.hp-pick:hover {
  border-color: var(--dash-gold);
}
.hp-pick.is-on {
  border-color: var(--dash-gold);
  background: var(--dash-gold-soft);
}
.hp-pick-check {
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--dash-gold);
  cursor: pointer;
}
.hp-pick-check:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
.hp-pick-thumb {
  flex: 0 0 58px;
  height: 58px;
  overflow: hidden;
  background: #000;
}
.hp-pick-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hp-pick-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hp-pick-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
/*=================== featured roundup cards (Latest Episodes card look) ===================*/
.hp-events {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 14px;
  align-items: stretch;
}
.hp-event {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--dash-bg);
  border: 1px solid var(--dash-line);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.hp-event:hover {
  border-color: var(--dash-gold);
  transform: translateY(-2px);
}
.hp-event-thumb {
  position: relative;
  flex: 0 0 auto;
  height: 140px;
  overflow: hidden;
  background: #000;
}
.hp-event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hp-event-thumb .js-go-upload {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 26px;
  height: 26px;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.7);
}
.hp-event-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 13px 14px 14px;
}
.hp-event-body .dash-input {
  padding: 8px 11px;
  font-size: 12.5px;
}
.hp-event-body .hp-go-title {
  font-weight: 700;
}
.hp-event-body .hp-go-img {
  font-family: monospace;
  font-size: 11.5px;
}
.hp-event-tools {
  flex: 0 0 auto;
  margin-top: auto;
  display: flex;
  flex-direction: row;
  gap: 6px;
  justify-content: flex-end;
  padding: 10px 14px;
  border-top: 1px solid var(--dash-line-soft);
}
.hp-event-tools .dash-act {
  width: 28px;
  height: 28px;
  font-size: 12px;
}
.hp-event-tools .dash-act i {
  display: flex;
  align-items: center;
  justify-content: center;
}
.id-upload-label {
  margin: 0;
  cursor: pointer;
}
.hp-switch-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--dash-muted);
  margin: 0;
}
.hp-switch-field {
  height: 43px;
  padding: 0 14px;
  background: var(--dash-bg);
  border: 1px solid var(--dash-line);
  border-radius: 9px;
}

/*=================== Main Article Modal Trigger ===================*/
.js-open-main-modal {
  background-image: none;
  cursor: pointer;
}

/* Watch/Read/Listen Meta Stats */
.hp-meta-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.hp-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hp-meta-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #fff;
  white-space: nowrap;
}
.hp-meta-label i {
  font-size: 11px;
  color: var(--dash-muted);
}
.hp-meta-time {
  font-size: 10.5px;
  color: var(--dash-muted);
  white-space: nowrap;
  padding-left: 1px;
}

.dash-text-limit-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#mainArticlePickModal
  .modal-content
  .modal-body
  .hp-pick
  .hp-pick-body
  .hp-pick-meta,
#featuredPickModal
  .modal-content
  .modal-body
  .hp-pick
  .hp-pick-body
  .hp-pick-meta {
  font-size: 12px;
}

/* the featured slide reads like a spotlight card: gold kicker, title, blurb */
#featuredSlides .hp-event.id-featured-card .hp-event-body {
  gap: 0;
  padding: 13px 14px 14px;
}
#featuredSlides .id-featured-card .hp-go-meta {
  order: -1;
  margin-bottom: 4px !important;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dash-gold);
}
#featuredSlides .id-featured-card .hp-go-title {
  margin: 0 0 3px !important;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
#featuredSlides .id-featured-card .dash-text-limit-2 {
  font-size: 12.5px;
  color: var(--dash-muted);
}
