
.dred-search-page-shell {
  width: min(1500px, calc(100% - 60px));
  margin: 44px auto;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.dred-search-page-sidebar {
  position: sticky;
  top: 120px;
}

.dred-sidebar-sections-box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfdfb 0%, #f1f8ef 100%);
  border: 1px solid rgba(101,179,96,.30);
  border-radius: 24px;
  padding: 24px 20px 20px;
  box-shadow: 0 18px 40px rgba(31, 43, 61, .08);
}

.dred-sidebar-sections-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #65b360 0%, #8bcf86 100%);
}

.dred-sidebar-sections-box::after {
  content: 'DRED';
  position: absolute;
  right: -8px;
  bottom: 18px;
  font-size: 76px;
  font-weight: 800;
  letter-spacing: .08em;
  color: rgba(101,179,96,.06);
  transform: rotate(-10deg);
  pointer-events: none;
  z-index: 0;
}

.dred-sidebar-sections-badge,
.dred-sidebar-sections-title,
.dred-sidebar-sections-subtitle,
.dred-sidebar-sections-grid,
.dred-sidebar-download-all {
  position: relative;
  z-index: 1;
}

.dred-sidebar-sections-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(101,179,96,.12);
  color: #365f34;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.dred-sidebar-sections-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #65b360;
  box-shadow: 0 0 0 4px rgba(101,179,96,.16);
}

.dred-sidebar-sections-title {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.08;
  color: #1f2b3d;
}

.dred-sidebar-sections-subtitle {
  margin: 0 0 18px;
  color: #5e646d;
  font-size: 15px;
  line-height: 1.5;
}

.dred-sidebar-sections-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.dred-sidebar-download-all {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(101,179,96,.20);
}

.dred-sidebar-download-all-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #2f4263 0%, #22324c 100%);
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 16px 28px rgba(31,43,61,.18);
}

.dred-sidebar-download-all-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(31,43,61,.22);
}

.dred-sidebar-download-all-note {
  margin: 12px 0 0;
  color: #66707a;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.dred-sidebar-section-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  min-width: 0;
  width: 100%;
  padding: 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(180deg, #6cbf67 0%, #5cab57 100%);
  color: #ffffff !important;
  text-decoration: none !important;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  word-break: normal;
  overflow-wrap: break-word;
  box-shadow: 0 12px 24px rgba(34, 76, 55, .12);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  white-space: normal !important;
  hyphens: auto;
  overflow: hidden;
}

.dred-sidebar-section-button span {
  display: block;
  max-width: 100%;
}

.dred-sidebar-section-button:hover,
.dred-sidebar-section-button.is-active {
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(34, 76, 55, .18);
  filter: saturate(1.02);
}

@media (max-width: 980px) {
  .dred-search-page-shell {
    width: min(100%, calc(100% - 24px));
    margin: 24px auto;
    grid-template-columns: 1fr;
  }

  .dred-search-page-sidebar {
    position: static;
  }

  .dred-sidebar-sections-box {
    padding: 22px 18px 18px;
  }

  .dred-sidebar-sections-box::after {
    font-size: 58px;
    right: -6px;
    bottom: 12px;
  }

  .dred-sidebar-sections-title {
    font-size: 24px;
  }

  .dred-sidebar-sections-subtitle {
    font-size: 14px;
    margin-bottom: 16px;
    max-width: none;
  }

  .dred-sidebar-sections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dred-sidebar-section-button {
    min-height: 82px;
    font-size: 14px;
  }
}

.dred-search-menu-item {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  vertical-align: middle;
  margin: 0 28px 0 -72px;
  padding: 0 !important;
}

.dred-search-menu-item > a {
  display: none !important;
}

.dred-inline-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto;
}

.dred-inline-search-label {
  flex: 0 0 auto;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

.dred-inline-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: clamp(320px, 28vw, 500px);
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid rgba(255,255,255,.34);
  border-radius: 999px;
  background: #ffffff;
}

.dred-inline-search-bar:focus-within {
  background: #ffffff;
  border-color: rgba(255,255,255,.85);
  box-shadow: 0 0 0 2px rgba(255,255,255,.12);
}

.dred-inline-search-icon {
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1;
}

.dred-inline-search-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 40px;
  padding: 0;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  color: #111111 !important;
  font-size: 15px;
  line-height: 40px;
  box-shadow: none !important;
}

.dred-inline-search-input::placeholder {
  color: #666666;
}

.et-menu-nav .dred-search-menu-item,
.et_pb_menu__menu .dred-search-menu-item,
.nav .dred-search-menu-item,
#top-menu .dred-search-menu-item {
  margin-right: 28px !important;
}

.dred-inline-search-clear {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #666666;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  opacity: .85;
}

.dred-inline-search-clear:hover,
.dred-inline-search-panel-close:hover {
  opacity: 1;
}

.dred-inline-search-panel[hidden] {
  display: none !important;
}

.dred-inline-search-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: min(980px, calc(100vw - 220px));
  max-width: 980px;
  background: #efefef;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  overflow: hidden;
  z-index: 99999;
}

@media (max-width: 1200px) {
  .dred-inline-search-panel {
    width: min(900px, calc(100vw - 80px));
    max-width: 900px;
  }
}

@media (max-width: 767px) {
  .dred-inline-search-panel {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    left: -12px;
  }
}

.dred-inline-search-panel-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 12px 18px 0;
}

.dred-inline-search-panel-close {
  border: 0;
  background: transparent;
  color: #444;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.dred-inline-search-results {
  padding: 0 22px 22px;
  max-height: min(68vh, 620px);
  overflow-y: auto;
  overflow-x: hidden;
}

.dred-inline-search-status[hidden] {
  display: none !important;
}

.dred-inline-search-status {
  color: #555;
  padding: 6px 0 12px;
  text-align: left;
}

.dred-inline-search-results-list {
  display: flex;
  flex-direction: column;
}

.dred-result-card,
.dred-result-card-page {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding: 14px 0;
  text-align: left;
  transition: background-color .18s ease, box-shadow .18s ease;
}

.dred-result-card:last-child,
.dred-result-card-page:last-child {
  border-bottom: 0;
}

.dred-result-card:hover,
.dred-result-card-page:hover {
  background: rgba(0,0,0,.045);
}

.dred-result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 190px 160px;
  gap: 12px 18px;
  align-items: start;
  width: 100%;
}

.dred-result-row-page.is-search-view,
.dred-search-page-head.is-search-view {
  grid-template-columns: minmax(0, 1fr) 110px 190px 160px;
}

.dred-result-row-page.is-section-view,
.dred-search-page-head.is-section-view {
  grid-template-columns: minmax(0, 1fr) 110px 160px;
}

.dred-result-title,
.dred-result-hours,
.dred-result-type,
.dred-result-guide {
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  min-width: 0;
}

.dred-result-title {
  margin: 0;
  color: #65b360;
  font-weight: 600;
  overflow-wrap: break-word;
  word-break: normal;
}

.dred-result-hours,
.dred-result-type {
  color: #333;
  white-space: nowrap;
}

.dred-result-guide {
  min-width: 0;
  color: #111111 !important;
  opacity: 1 !important;
  white-space: nowrap;
}

.dred-result-guide a,
.dred-result-guide a:link,
.dred-result-guide a:visited,
.dred-result-guide a:hover,
.dred-result-guide a:focus {
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  text-decoration: underline !important;
  text-shadow: none !important;
  font-weight: 600;
  opacity: 1 !important;
}

.dred-search-results-page {
  padding: 48px 0 72px;
}

.dred-search-page-shell {
  width: min(1420px, calc(100% - 30px));
  margin: 0 auto;
}

.dred-search-page-box {
  background: #efefef;
  border-radius: 18px;
  padding: 28px 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
}

.dred-search-page-header {
  margin-bottom: 18px;
}

.dred-search-page-header h1 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.15;
  color: #333333;
}

.dred-search-page-query,
.dred-search-page-count,
.dred-search-page-empty {
  margin: 0 0 10px;
  color: #333333;
  font-size: 18px;
}

.dred-search-type-shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
}

.dred-search-type-shortcuts-label {
  font-weight: 700;
  color: #333;
}

.dred-search-type-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #c7c7c7;
  background: #fff;
  color: #333 !important;
  text-decoration: none !important;
  font-weight: 600;
}

.dred-search-type-pill.is-active,
.dred-search-type-pill:hover {
  background: #65b360;
  border-color: #65b360;
  color: #fff !important;
}

.dred-search-page-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255,255,255,.65);
}

.dred-filter-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
}

.dred-filter-field label {
  font-weight: 700;
  color: #333;
}

.dred-filter-field input,
.dred-filter-field select {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #cfcfcf;
  background: #fff;
  color: #111;
}

.dred-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.dred-filter-submit,
.dred-filter-reset,
.dred-filter-export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  text-decoration: none !important;
  font-weight: 700;
}

/* button color unified */
.dred-filter-submit {
  border: 0;
  background: #65b360;
  color: #fff;
  cursor: pointer;
}

.dred-filter-reset,
.dred-filter-export {
  border: 1px solid #c5c5c5;
  background: #fff;
  color: #333 !important;
}

.dred-search-page-table {
  overflow-x: auto;
}

.dred-search-page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 190px 160px;
  gap: 12px 18px;
  padding: 0 0 12px;
  border-bottom: 2px solid rgba(0,0,0,.12);
  margin-bottom: 4px;
  font-weight: 800;
  color: #333;
}

.dred-search-page-list {
  display: flex;
  flex-direction: column;
}

@media (max-width: 1240px) {
  .dred-inline-search-label {
    display: none;
  }

  .dred-search-menu-item {
    margin-left: 0;
  }
}

@media (max-width: 980px) {
  .dred-result-row,
  .dred-search-page-head,
  .dred-result-row-page.is-search-view,
  .dred-result-row-page.is-section-view,
  .dred-search-page-head.is-search-view,
  .dred-search-page-head.is-section-view {
    grid-template-columns: minmax(0, 1fr);
  }

  .dred-inline-search-panel,
  .dred-search-page-shell {
    width: calc(100vw - 20px);
  }
}

.dred-search-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

.dred-search-pagination-link,
.dred-search-pagination-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
}

.dred-search-pagination-link {
  background: #ffffff;
  border: 1px solid #c5c5c5;
  color: #333333 !important;
  text-decoration: none !important;
  font-weight: 700;
}

.dred-search-pagination-status {
  color: #333333;
  font-weight: 700;
  background: rgba(255,255,255,.55);
}


.dred-filter-submit,
.dred-filter-reset,
.dred-filter-export,
.dred-search-pagination-link,
.dred-inline-search-panel-close,
.dred-sidebar-section-button,
.dred-search-page .button,
.dred-search-page button,
.dred-search-page input[type=submit],
.dred-search-page input[type=button] {
  background: #65b360 !important;
  border-color: #65b360 !important;
  color: #ffffff !important;
}

.dred-filter-reset:hover,
.dred-filter-export:hover,
.dred-filter-submit:hover,
.dred-search-pagination-link:hover,
.dred-sidebar-section-button:hover,
.dred-sidebar-section-button.is-active:hover,
.dred-sidebar-section-button.is-active {
  background: #65b360 !important;
  border-color: #65b360 !important;
  color: #ffffff !important;
}

.dred-filter-reset,
.dred-filter-export,
.dred-filter-submit,
.dred-search-pagination-link {
  text-decoration: none !important;
  box-shadow: none !important;
}

.dred-filter-submit,
.dred-filter-reset,
.dred-filter-export,
.dred-search-pagination-link {
  background: #65b360 !important;
  border-color: #65b360 !important;
  color: #ffffff !important;
}

.dred-filter-submit:hover,
.dred-filter-reset:hover,
.dred-filter-export:hover,
.dred-search-pagination-link:hover {
  background: #65b360 !important;
  border-color: #65b360 !important;
  color: #ffffff !important;
  opacity: .92;
}

.dred-filter-reset,
.dred-filter-export,
.dred-search-pagination-link {
  text-decoration: none !important;
}


.dred-search-page-head.is-search-view {
  grid-template-columns: minmax(0, 1fr) 110px 190px 160px;
}

.dred-search-page-head.is-section-view {
  grid-template-columns: minmax(0, 1fr) 110px 160px;
}

.dred-result-row-page.is-search-view {
  grid-template-columns: minmax(0, 1fr) 110px 190px 160px;
}

.dred-result-row-page.is-section-view {
  grid-template-columns: minmax(0, 1fr) 110px 160px;
}

.dred-result-row-page .dred-result-hours,
.dred-result-row-page .dred-result-type {
  font-weight: 400;
}

.dred-result-row-page .dred-result-guide a {
  white-space: nowrap;
}


@media (max-width: 1200px) {
  .dred-search-page-shell {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 22px;
  }

  .dred-inline-search-bar {
    width: clamp(260px, 24vw, 420px);
  }
}

@media (max-width: 980px) {
  .dred-search-page-box {
    padding: 20px 18px;
  }

  .dred-search-page-header h1 {
    font-size: 28px;
  }

  .dred-search-page-filters {
    padding: 16px;
  }

  .dred-filter-field {
    min-width: 100%;
  }

  .dred-filter-actions {
    width: 100%;
  }

  .dred-filter-submit,
  .dred-filter-reset,
  .dred-filter-export {
    flex: 1 1 180px;
  }
}

@media (max-width: 767px) {
  .dred-sidebar-sections-grid {
    grid-template-columns: 1fr;
  }

  .dred-sidebar-section-button {
    min-height: 74px;
    font-size: 15px;
  }

  .dred-inline-search {
    width: 100%;
  }

  .dred-inline-search-bar {
    width: 100%;
  }

  .dred-search-menu-item {
    width: 100%;
    margin: 8px 0 !important;
  }

  .dred-search-page-query,
  .dred-search-page-count,
  .dred-search-page-empty {
    font-size: 16px;
  }
}

/* v0.7.4 adjustments */
.dred-sidebar-download-all-button {
  background: linear-gradient(135deg, #1f2b3d 0%, #32445f 100%);
  border: 1px solid rgba(31,43,61,.22);
  box-shadow: 0 18px 38px rgba(31,43,61,.24);
}

.dred-sidebar-download-all-button:hover {
  background: linear-gradient(135deg, #24324a 0%, #3b5070 100%);
  transform: translateY(-1px);
}

.dred-sidebar-download-all-note {
  font-size: 12px;
}

@media (max-width: 980px) {
  .dred-search-page-box {
    order: 1;
  }

  .dred-search-page-sidebar {
    order: 2;
    margin-top: 18px;
  }

  .dred-sidebar-sections-box {
    margin-top: 0;
  }
}

@media (max-width: 767px) {
  .dred-search-page-shell {
    width: min(100%, calc(100% - 16px));
    gap: 18px;
  }

  .dred-sidebar-sections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
  }

  .dred-sidebar-section-button {
    min-height: 76px;
    font-size: 14px;
    padding: 12px 10px;
    border-radius: 16px;
  }

  .dred-search-page-box {
    padding: 16px 14px;
  }

  .dred-search-page-header h1 {
    font-size: 24px;
    line-height: 1.1;
  }

  .dred-search-page-table {
    overflow-x: auto;
  }

  .dred-result-row-page.is-search-view,
  .dred-result-row-page.is-section-view,
  .dred-search-page-head.is-search-view,
  .dred-search-page-head.is-section-view {
    min-width: 720px;
  }
}

@media (max-width: 480px) {
  .dred-sidebar-sections-grid {
    grid-template-columns: 1fr !important;
  }

  .dred-sidebar-download-all-button {
    min-height: 58px;
    font-size: 15px;
  }
}


/* v0.7.4 fixes */
@media (max-width: 1200px) {
  .dred-search-page-shell {
    display: flex;
    flex-direction: column;
    width: min(100%, calc(100% - 20px));
    gap: 18px;
  }

  .dred-search-page-box {
    order: 1;
    width: 100%;
  }

  .dred-search-page-sidebar {
    order: 2;
    width: 100%;
    position: static;
    top: auto;
  }
}

@media (max-width: 767px) {
  .dred-search-page-shell {
    width: min(100%, calc(100% - 14px));
    margin: 16px auto 28px;
  }

  .dred-search-page-box,
  .dred-sidebar-sections-box {
    padding: 16px 14px;
  }

  .dred-sidebar-sections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  .dred-sidebar-section-button {
    min-height: 76px;
    font-size: 14px;
    padding: 10px 8px;
  }

  .dred-search-page-header h1 {
    font-size: 22px;
    line-height: 1.1;
  }

  .dred-search-page-table {
    overflow-x: visible;
  }

  .dred-search-page-head {
    display: none !important;
  }

  .dred-result-row-page.is-search-view,
  .dred-result-row-page.is-section-view {
    grid-template-columns: 1fr !important;
    gap: 6px;
  }

  .dred-result-title,
  .dred-result-hours,
  .dred-result-type,
  .dred-result-guide {
    white-space: normal;
  }

  .dred-result-guide {
    padding-bottom: 2px;
  }

  .dred-filter-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .dred-filter-submit,
  .dred-filter-reset,
  .dred-filter-export {
    width: 100%;
  }

  .dred-sidebar-download-all-button {
    min-height: 60px;
    font-size: 15px;
    line-height: 1.25;
    padding: 14px 12px;
  }
}


/* v0.7.5 mobile ordering hard fix */
@media (max-width: 980px) {
  .dred-search-results-page,
  .dred-search-results-page #primary {
    overflow-x: hidden !important;
  }

  .dred-search-page-shell {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
    width: min(100%, calc(100% - 18px)) !important;
    margin: 18px auto 28px !important;
    gap: 18px !important;
  }

  .dred-search-page-shell > * {
    min-width: 0 !important;
    width: 100% !important;
  }

  .dred-search-page-box {
    order: 1 !important;
  }

  .dred-search-page-sidebar {
    order: 2 !important;
    position: static !important;
    top: auto !important;
  }

  .dred-sidebar-sections-box {
    margin-top: 0 !important;
  }
}

@media (max-width: 767px) {
  .dred-search-page-shell {
    width: min(100%, calc(100% - 14px)) !important;
    margin: 14px auto 24px !important;
  }

  .dred-search-page-table,
  .dred-search-page-list {
    overflow: visible !important;
  }
}


/* v0.7.7 videopildoras and mobile fixes */
.dred-search-page-head.is-video-section-view,
.dred-result-row-page.is-video-section-view {
  grid-template-columns: minmax(0, 1fr) 145px;
}

.dred-result-duration {
  color: #333;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .dred-search-page-shell {
    display: flex !important;
    flex-direction: column !important;
    width: calc(100vw - 16px) !important;
    max-width: none !important;
    margin: 14px auto 24px !important;
  }

  .dred-search-page-box {
    order: 1 !important;
    width: 100% !important;
  }

  .dred-search-page-sidebar {
    order: 2 !important;
    width: 100% !important;
    margin-top: 0 !important;
  }

  .dred-sidebar-sections-box,
  .dred-search-page-box {
    min-width: 0 !important;
  }
}

@media (max-width: 767px) {
  .dred-search-page-head.is-video-section-view,
  .dred-result-row-page.is-video-section-view {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .dred-result-duration {
    margin-top: 4px;
  }
}

/* v0.7.8 mobile fixes */
@media (max-width: 767px) {
  .dred-search-results-page .dred-search-page-shell {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 16px !important;
  }
  .dred-search-results-page .dred-search-page-box,
  .dred-search-results-page .dred-search-page-sidebar,
  .dred-search-results-page .dred-sidebar-sections-box {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 100% !important;
  }
  .dred-search-results-page .dred-search-page-sidebar { order: 2 !important; }
  .dred-search-results-page .dred-search-page-box { order: 1 !important; }
  .dred-search-results-page .dred-sidebar-sections-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .dred-search-results-page .dred-sidebar-section-button,
  .dred-search-results-page .dred-sidebar-download-all-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}
@media (max-width: 520px) {
  .dred-search-results-page .dred-sidebar-sections-grid { grid-template-columns: 1fr !important; }
}


/* v0.8.1 microcredenciales */
.dred-search-page-head.is-micro-section-view,
.dred-result-row-page.is-micro-section-view {
  display:grid;
  grid-template-columns:minmax(0,1fr) 100px 170px 150px;
  gap:12px 18px;
  align-items:start;
}
.dred-result-ects { color:#65b360; font-weight:600; white-space:nowrap; }
@media (max-width: 980px) {
  .dred-search-page-head.is-micro-section-view,
  .dred-result-row-page.is-micro-section-view {
    grid-template-columns:minmax(0,1fr) 90px 140px 130px;
  }
}
@media (max-width: 767px) {
  .dred-search-page-head.is-micro-section-view,
  .dred-result-row-page.is-micro-section-view {
    grid-template-columns:minmax(0,1fr) !important;
  }
  .dred-result-ects,
  .dred-result-row-page.is-micro-section-view .dred-result-hours,
  .dred-result-row-page.is-micro-section-view .dred-result-guide {
    margin-top:4px;
    white-space:normal;
  }
}

/* v0.8.3 videopildoras duration badge */
.dred-result-duration {
  color: #2b2b2b;
  white-space: nowrap;
}

.dred-video-duration-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.dred-video-duration-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #111111;
  flex: 0 0 18px;
}

.dred-video-duration-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.dred-video-duration-value {
  color: #65b360;
  font-weight: 700;
}

@media (max-width: 767px) {
  .dred-result-row-page.is-video-section-view .dred-result-duration {
    margin-top: 6px;
  }
}


/* v0.8.3 videopildoras duration badge */
.dred-result-row-page.is-video-section-view .dred-result-duration {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  white-space: nowrap;
  color: #6b8f1a;
  font-weight: 700;
}


@media (max-width: 767px) {
  .dred-result-row-page.is-video-section-view .dred-result-duration {
    margin-top: 6px;
  }
}

.dred-result-metric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.dred-result-metric-value {
  color: #65b360;
  font-weight: 700;
  white-space: nowrap;
}

.dred-result-clock {
  color: #333333;
  font-size: 15px;
  line-height: 1;
}


/* v0.8.6 floating search ordering */
.dred-inline-search-results-list .dred-result-row {
  grid-template-columns: minmax(0, 1fr) 150px 180px 150px;
  align-items: center;
}

.dred-inline-search-results-list .dred-result-hours,
.dred-inline-search-results-list .dred-result-type,
.dred-inline-search-results-list .dred-result-guide {
  display: flex;
  align-items: center;
  min-height: 28px;
}

.dred-inline-search-results-list .dred-result-type {
  color: #5a6168;
  font-weight: 600;
}

.dred-inline-search-results-list .dred-result-guide {
  justify-content: flex-start;
}

.dred-inline-search-results-list .dred-result-guide a,
.dred-inline-search-results-list .dred-result-guide-text {
  white-space: nowrap;
}

.dred-inline-search-results-list .dred-result-guide-text.is-empty,
.dred-result-guide .dred-result-guide-text.is-empty {
  color: #777777;
  font-weight: 500;
  display: inline-block;
  min-width: 1ch;
}

.dred-inline-search-results-list .dred-result-guide .dred-result-guide-text.is-empty {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  text-align: center;
}

@media (max-width: 980px) {
  .dred-inline-search-results-list .dred-result-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .dred-inline-search-results-list .dred-result-hours,
  .dred-inline-search-results-list .dred-result-type,
  .dred-inline-search-results-list .dred-result-guide {
    min-height: 0;
  }
}


/* v0.8.7 videopildoras duration single clock */
.dred-result-row-page.is-video-section-view .dred-result-duration::before { display:none !important; }


/* v0.9.0 duration header + centered empty guide */
.dred-result-row-page .dred-result-guide .dred-result-guide-text.is-empty,
.dred-inline-search-results-list .dred-result-guide .dred-result-guide-text.is-empty {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  text-align: center;
}
.dred-result-row-page .dred-result-guide .dred-result-guide-text.is-empty {
  min-width: 100%;
}


/* v0.9.1 principal search without clock + centered guide */
.dred-result-row-page.is-search-view .dred-result-guide,
.dred-inline-search-results-list .dred-result-guide {
  justify-content: center;
  text-align: center;
}
.dred-result-row-page.is-search-view .dred-result-guide a,
.dred-inline-search-results-list .dred-result-guide a {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  text-align: center;
}
.dred-result-row-page.is-search-view .dred-result-hours .dred-result-clock {
  display: none !important;
}


.dred-sidebar-download-all-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(31, 43, 61, .22);
}
