.ct-cop-explorer {
  /* Site palette. --teal-dark keeps small text on teal above 4.5:1. */
  --teal-dark: #087b80;
  --teal: #06989e;
  --teal-link: #087b80;
  --ink: #3f5454;
  --muted: #667878;
  --warm-white: #f6f4f1;
  --white: #fdfeff;
  --line: #c6e2e0;
  /* Field borders need 3:1 against white and the page background. */
  --field-line: #728e8c;
  --selected-line: #087b80;
  --button-font: "Courier Prime", "Courier New", monospace;
}

/* Remove Divi's default row gap only around an embedded COP explorer. */
.et_pb_section:has(.ct-cop-explorer),
.et_pb_row:has(.ct-cop-explorer) {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.ct-cop-explorer * {
  box-sizing: border-box;
}

.ct-cop-explorer {
  margin: 0;
  background: var(--warm-white);
}

.ct-cop-explorer button,
.ct-cop-explorer input,
.ct-cop-explorer select {
  font: inherit;
}

.ct-cop-explorer button,
.ct-cop-explorer select {
  cursor: pointer;
}

.ct-cop-explorer a {
  color: inherit;
}

.ct-cop-explorer [hidden] {
  display: none !important;
}

.ct-cop-explorer h2,
.ct-cop-explorer h3,
.ct-cop-explorer p {
  margin-top: 0;
}

.ct-cop-explorer input:focus-visible,
.ct-cop-explorer select:focus-visible,
.ct-cop-explorer button:focus-visible {
  outline: 3px solid var(--teal-dark);
  outline-offset: 3px;
}

.ct-cop-explorer .filter-bar label {
  display: grid;
  gap: 5px;
  color: var(--ink);
  font-weight: 700;
}

.ct-cop-explorer .search-input-wrap {
  position: relative;
  display: block;
}

.ct-cop-explorer .search-input-wrap svg {
  position: absolute;
  left: 14px;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--teal-dark);
  stroke-linecap: round;
  stroke-width: 2;
}

.ct-cop-explorer .filter-bar input,
.ct-cop-explorer .filter-bar select,
.ct-cop-explorer .filter-bar button {
  width: 100%;
  border: 1px solid var(--field-line);
  color: var(--ink);
  font-size: 15px;
}

.ct-cop-explorer .filter-bar input {
  padding: 0 14px 0 44px;
  cursor: text;
}

.ct-cop-explorer .filter-bar select {
  padding: 0 36px 0 12px;
}

.ct-cop-explorer .filter-bar input::placeholder {
  color: var(--muted);
}

.ct-cop-explorer .filter-bar #ct-cop-clear-filters {
  width: auto;
  white-space: nowrap;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    transform 120ms ease;
}

.ct-cop-explorer .results-width {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.ct-cop-explorer .results-section {
  min-height: 850px;
  padding: 18px 24px 80px;
  background: var(--warm-white);
}

.ct-cop-explorer .view-switch button:active,
.ct-cop-explorer .letter-index button:active:not(:disabled),
.ct-cop-explorer #ct-cop-clear-filters:active {
  transform: scale(0.97);
}

.ct-cop-explorer .results-list {
  display: grid;
  gap: 46px;
}

.ct-cop-explorer .result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ct-cop-explorer .conference-heading {
  grid-column: 1 / -1;
  font-weight: 700;
}

.ct-cop-explorer .letter-index {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
  gap: 6px;
}

.ct-cop-explorer .letter-index button {
  min-height: 44px;
  min-width: 0;
  padding: 5px 3px;
  font-weight: 700;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    transform 120ms ease,
    opacity 160ms ease;
}

.ct-cop-explorer .letter-index button.is-active {
  color: #fff;
  background: var(--teal-dark);
}

.ct-cop-explorer .letter-index button:disabled {
  color: #557375;
  opacity: 0.48;
  cursor: not-allowed;
}

.ct-cop-explorer .result-card {
  min-width: 0;
  padding: 23px 24px 20px;
  transition:
    box-shadow 220ms ease,
    translate 220ms ease;
  scroll-margin-top: var(--controls-offset, 16px);
  scroll-margin-bottom: var(--tray-offset, 16px);
}

@media (hover: hover) and (pointer: fine) {
  .ct-cop-explorer .result-card:hover {
    translate: 0 -2px;
  }
}

.ct-cop-explorer .result-meta {
  display: flex;
  flex-wrap: wrap;
}

.ct-cop-explorer .result-card h3 {
  color: var(--ink);
}

.ct-cop-explorer .permalink {
  display: inline-block;
  /* A 24px target that leaves the title's line height alone. */
  margin: -4px 0;
  padding: 4px 8px;
  color: var(--teal-link);
  font-size: 15px;
  text-decoration: none;
  opacity: 0;
  transition: opacity 150ms ease;
}

.ct-cop-explorer .result-card:hover .permalink,
.ct-cop-explorer .permalink:focus-visible {
  opacity: 1;
}

.ct-cop-explorer .result-summary {
  margin-bottom: 11px;
}

.ct-cop-explorer .detail-layer {
  overflow: hidden;
}

.ct-cop-explorer .detail-layer p {
  margin-bottom: 9px;
  padding-top: 1px;
}

.ct-cop-explorer .reading-links {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #d5e7e5;
}

.ct-cop-explorer .reading-links h4 {
  color: #365b5c;
}

.ct-cop-explorer .reading-links ul {
  margin: 0;
  padding-left: 19px;
  color: #365b5c;
}

.ct-cop-explorer .reading-links a {
  color: var(--teal-link);
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  text-decoration-skip-ink: auto;
}

.ct-cop-explorer .reading-links a:hover {
  color: #065b60;
  text-decoration-thickness: 2px;
}

.ct-cop-explorer .reading-links a:focus-visible {
  color: #065b60;
  outline: 3px solid var(--selected-line);
  outline-offset: 3px;
  border-radius: 2px;
}

.ct-cop-explorer .empty-state {
  padding: 70px 24px;
  border: 1px dashed rgb(8 89 94 / 48%);
  border-radius: 14px;
  color: #173f41;
  text-align: center;
  background: rgb(255 255 255 / 38%);
}

.ct-cop-explorer .empty-state > span {
  display: block;
  font-size: 42px;
  line-height: 1;
}

.ct-cop-explorer .empty-state h3 {
  margin: 14px 0 4px;
  font-size: 25px;
}

.ct-cop-explorer .empty-state p {
  margin-bottom: 18px;
}

.ct-cop-explorer .empty-state button {
  font: inherit;
  cursor: pointer;
}

.ct-cop-explorer .empty-state button:hover,
.ct-cop-explorer .empty-state button:active {
  color: var(--ink);
  background: #e8f5f4;
  border-color: var(--teal-dark);
}

.ct-cop-explorer .empty-state button:focus-visible {
  outline: 2px solid var(--teal-dark);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .ct-cop-explorer *,
  .ct-cop-explorer *::before,
  .ct-cop-explorer *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1120px) {
  .ct-cop-explorer .search-field {
    grid-column: 1 / -1;
  }

  .ct-cop-explorer .filter-bar #ct-cop-clear-filters {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .ct-cop-explorer .result-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .ct-cop-explorer .result-card {
    padding: 20px 18px 17px;
  }
}

.ct-cop-explorer .filter-shell {
  background: transparent;
  z-index: 20;
}

.ct-cop-explorer .explore-panel {
  width: min(100%, 1160px);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgb(255 255 255 / 95%);
  box-shadow: 0 4px 14px rgb(63 84 84 / 6%);
  backdrop-filter: blur(10px);
}

.ct-cop-explorer .panel-toggle {
  width: auto;
  gap: 8px;
  height: 44px;
  margin: 4px 8px 0 auto;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  color: var(--teal-dark);
  background: transparent;
}

.ct-cop-explorer .panel-toggle:hover {
  background: #e8f5f4;
}

.ct-cop-explorer .panel-toggle svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.ct-cop-explorer .panel-toggle[aria-expanded="true"] .tray-chevron {
  transform: rotate(180deg);
}

.ct-cop-explorer .explore-panel.is-collapsed {
  width: max-content;
  margin-left: auto;
}

.ct-cop-explorer .detail-control {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ct-cop-explorer .filter-bar {
  margin: 0 auto;
  display: grid;
  gap: 14px;
  align-items: end;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.ct-cop-explorer .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.ct-cop-explorer .results-heading {
  color: #173f41;
  display: block;
}

.ct-cop-explorer .results-actions {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: flex-start;
  gap: 14px;
}

.ct-cop-explorer .view-switch {
  display: flex;
  flex: 1;
}

.ct-cop-explorer .view-switch button {
  background: transparent;
  font-weight: 700;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    transform 120ms ease,
    opacity 160ms ease;
  flex: 1;
}

.ct-cop-explorer .article-card h3 a {
  text-decoration: none;
}

.ct-cop-explorer .article-card h3 a:hover {
  text-decoration: underline;
}

@media (max-width: 820px) {
  .ct-cop-explorer .filter-shell {
    pointer-events: none;
  }

  .ct-cop-explorer .explore-panel {
    pointer-events: auto;
  }

  .ct-cop-explorer .explore-panel.is-collapsed {
    margin-right: 0;
  }

  .ct-cop-explorer #ct-cop-panel-content {
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    scroll-padding: 16px;
  }

  .ct-cop-explorer .explore-panel.is-collapsed #ct-cop-panel-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
  }

  .ct-cop-explorer .panel-toggle[aria-expanded="true"] .toggle-label,
  .ct-cop-explorer .panel-toggle[aria-expanded="true"] .filter-icon,
  .ct-cop-explorer .panel-toggle[aria-expanded="true"] #ct-cop-filter-badge,
  .ct-cop-explorer .panel-toggle[aria-expanded="true"] .tray-chevron {
    display: none;
  }

  .ct-cop-explorer .panel-toggle[aria-expanded="true"] .tray-close {
    display: block;
  }

  .ct-cop-explorer .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ct-cop-explorer .search-field,
  .ct-cop-explorer .conference-field,
  .ct-cop-explorer .filter-bar label[for="ct-cop-topic-filter"],
  .ct-cop-explorer .filter-bar #ct-cop-clear-filters {
    grid-column: 1 / -1;
  }
}

.ct-cop-explorer .panel-toggle .filter-icon {
  width: 22px;
  flex-shrink: 0;
}
.ct-cop-explorer .panel-toggle .tray-chevron {
  width: 16px;
  flex-shrink: 0;
}

.ct-cop-explorer .tray-close {
  display: none;
}
.ct-cop-explorer .toggle-label {
  font-weight: 700;
}
.ct-cop-explorer #ct-cop-filter-badge {
  min-width: 20px;
  padding: 2px 5px;
  border-radius: 999px;
  background: var(--teal-dark);
  color: #fff;
  font-size: 12px;
}
.ct-cop-explorer .filter-bar #ct-cop-clear-filters {
  text-decoration: none;
}
.ct-cop-explorer .panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 16px;
}
.ct-cop-explorer #ct-cop-tray-result-count {
  font-size: 12px;
}
.ct-cop-explorer #ct-cop-view-results {
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  color: #fff;
  background: var(--teal-dark);
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 820px) {
  .ct-cop-explorer .results-width {
    padding-top: 0;
  }
}

/* Base text styles. The site's theme owns everything outside the explorer. */
.ct-cop-explorer {
  --ct-cop-sticky-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--ct-cop-header-offset, 0px));
  display: block;
  color: var(--ink);
  font-family: "DM Sans", Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
}

.ct-cop-explorer h1,
.ct-cop-explorer h2,
.ct-cop-explorer h3,
.ct-cop-explorer h4,
.ct-cop-explorer h5,
.ct-cop-explorer h6,
.ct-cop-explorer p {
  padding: 0;
  color: inherit;
  font-family: inherit;
}

/* Hidden content must not determine the collapsed mobile tray width. */
@media (max-width: 820px) {
  .ct-cop-explorer .explore-panel {
    max-width: 100%;
  }
}

/* Layout of the controls bar and the filter panel. */
.ct-cop-explorer .explore-controls {
  width: min(100%, 1040px);
  margin: 0 auto 28px;
}

.ct-cop-explorer .filter-shell {
  position: static;
  top: auto;
  padding: 16px 0 0;
}

.ct-cop-explorer .results-actions {
  flex-wrap: nowrap;
}

@media (min-width: 821px) {
  .ct-cop-explorer .results-actions > .panel-toggle {
    flex: 0 0 160px;
    margin: 0;
    padding: 10px 16px;
  }

  .ct-cop-explorer .view-switch {
    min-width: 0;
  }

  .ct-cop-explorer .view-switch button {
    padding-inline: 12px;
  }

  .ct-cop-explorer .results-width {
    padding-top: 0;
  }
}

@media (max-width: 820px) {
  .ct-cop-explorer .filter-shell {
    position: fixed;
    bottom: var(--keyboard-offset, 0px);
    left: 0;
    right: 0;
    padding: 0 16px calc(12px + env(safe-area-inset-bottom));
  }

  .ct-cop-explorer #ct-cop-panel-content {
    padding: 0 16px 16px;
  }

  .ct-cop-explorer .explore-panel.is-collapsed #ct-cop-panel-content {
    max-height: 0;
    width: 0;
    padding: 0;
  }

  .ct-cop-explorer .panel-toggle[aria-expanded="true"] {
    margin: 8px 8px 0 auto;
  }

  .ct-cop-explorer .results-actions {
    flex-wrap: wrap;
  }

  .ct-cop-explorer .view-switch {
    flex: 0 0 100%;
    width: 100%;
  }
}

@media (min-width: 375px) and (max-width: 820px) {
  .ct-cop-explorer .filter-bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ct-cop-explorer .filter-bar label[for="ct-cop-topic-filter"] {
    grid-column: 1;
  }

  .ct-cop-explorer .filter-bar #ct-cop-clear-filters {
    grid-column: 2;
    width: auto;
  }
}

@media (hover: hover) and (pointer: fine) {
  .ct-cop-explorer .filter-bar #ct-cop-clear-filters:hover {
    color: var(--ink);
  }
}

.ct-cop-explorer .filter-bar #ct-cop-clear-filters:active {
  color: var(--ink);
}

.ct-cop-explorer .search-highlight {
  border-radius: 2px;
  color: inherit;
}

.ct-cop-explorer .result-group:focus-visible {
  outline: 3px solid var(--teal-dark);
  outline-offset: 6px;
}

@media (max-width: 1120px) {
  .ct-cop-explorer .filter-bar.is-glossary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 375px) and (max-width: 820px) {
  .ct-cop-explorer .filter-bar.is-glossary {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* Scope the surrounding background to Divi sections containing this component. */
.et_pb_section:has(.ct-cop-explorer) {
  background-color: #f6f4f1 !important;
}

/* Publication images. */
.ct-cop-explorer .article-image-link {
  display: block;
  margin-bottom: 16px;
  overflow: hidden;
}
.ct-cop-explorer .article-image {
  display: block;
  width: 100%;
  height: auto;
}
.ct-cop-explorer .article-image-link:focus-visible {
  outline: 3px solid var(--selected-line);
  outline-offset: 4px;
}
@media (max-width: 820px) {
  .ct-cop-explorer .results-section {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (max-width: 820px) {
  .et_pb_row:has(.ct-cop-explorer) {
    width: 100% !important;
    max-width: none !important;
  }
}

/* Display mode stays beside the tabs, outside the filter panel. */
.ct-cop-explorer .results-heading {
  margin-bottom: 0;
}
.ct-cop-explorer .results-actions .detail-control {
  flex: 0 0 auto;
  width: auto;
  margin: 0 0 0 auto;
  padding: 0;
}

/* Allow filter controls to shrink inside the panel at intermediate widths. */
.ct-cop-explorer .filter-bar,
.ct-cop-explorer .filter-bar label,
.ct-cop-explorer .search-input-wrap,
.ct-cop-explorer .filter-bar input,
.ct-cop-explorer .filter-bar select {
  min-width: 0;
  max-width: 100%;
}
.ct-cop-explorer .filter-shell {
  padding-top: 12px;
}
@media (min-width: 821px) {
  .ct-cop-explorer .filter-bar {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.7fr) auto;
  }
  .ct-cop-explorer .filter-bar.is-glossary {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto;
  }
}
@media (min-width: 821px) and (max-width: 1100px) {
  .ct-cop-explorer .filter-bar .search-field {
    grid-column: 1 / -1;
  }
  .ct-cop-explorer .filter-bar .conference-field,
  .ct-cop-explorer .filter-bar label[for="ct-cop-topic-filter"] {
    grid-column: auto;
  }
  .ct-cop-explorer .filter-bar #ct-cop-clear-filters {
    justify-self: end;
  }
  .ct-cop-explorer .results-actions {
    gap: 10px;
  }
  .ct-cop-explorer .results-actions > .panel-toggle {
    flex-basis: 112px;
    padding-inline: 10px;
  }
}
/* Switching Simple/Detailed must not move the page. The result count sits in the filter panel. */
.ct-cop-explorer .results-list {
  overflow-anchor: none;
}
.ct-cop-explorer #ct-cop-result-count.filter-count {
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #345d60;
  font-size: 12px;
  line-height: 1.5;
  white-space: normal;
}
@media (max-width: 820px) {
  .ct-cop-explorer #ct-cop-result-count.filter-count {
    display: none;
  }
}

/* Both mode choices remain visible and use native radio keyboard behaviour. */
.ct-cop-explorer .mode-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: 184px;
  min-height: 44px;
}
.ct-cop-explorer .mode-switch::before {
  content: "";
  position: absolute;
  background: var(--teal-dark);
  transition: transform 180ms ease;
}
.ct-cop-explorer .mode-switch[data-mode="detailed"]::before {
  transform: translateX(100%);
}
.ct-cop-explorer .mode-option {
  position: relative;
  flex: 1;
  cursor: pointer;
}
.ct-cop-explorer .mode-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  top: 50%;
  left: 50%;
}
.ct-cop-explorer .mode-option span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  font-size: 13px;
  font-weight: 700;
}
.ct-cop-explorer .mode-option input:focus-visible + span {
  outline: 3px solid var(--teal-dark);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .ct-cop-explorer .mode-switch::before {
    transition: none;
  }
}

/* Keep the toolbar controls aligned, including when they wrap on mobile. */
.ct-cop-explorer .results-actions .view-switch,
.ct-cop-explorer .results-actions .mode-switch,
.ct-cop-explorer .results-actions > .panel-toggle {
  box-sizing: border-box;
  height: 48px;
  min-height: 48px;
}
.ct-cop-explorer .results-actions .view-switch button {
  min-height: 0;
  height: 100%;
  padding-block: 6px;
}
.ct-cop-explorer .results-actions .mode-option span {
  height: 100%;
  min-height: 0;
}

.ct-cop-explorer .view-switch button {
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .ct-cop-explorer .results-actions .view-switch button {
    padding-inline: 6px;
  }
}
@media (max-width: 820px) {
  .ct-cop-explorer .explore-panel.is-collapsed .panel-toggle {
    box-sizing: border-box;
    height: 48px;
    min-height: 48px;
  }
}

/* Preserve tray content during closing, without clipping the panel shadow. */
@media (max-width: 820px) {
  .ct-cop-explorer .explore-panel.is-animating-tray #ct-cop-panel-content {
    width: auto;
    padding: 0 16px 16px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ct-cop-explorer .result-card:hover {
    translate: none;
  }
}

/* On phones the mode switch takes a full row. */
@media (max-width: 820px) {
  .ct-cop-explorer .results-section {
    padding-top: 12px;
  }
  .ct-cop-explorer .results-actions .detail-control {
    flex: 0 0 100%;
    width: 100%;
    margin: 0;
  }
}

/* Phones leave room at the bottom for the Filters button. */
@media (max-width: 820px) {
  .ct-cop-explorer .results-section {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
  .ct-cop-explorer .explore-controls {
    margin-bottom: 20px;
  }
  .ct-cop-explorer .empty-state {
    padding: 40px 20px;
  }
}

@media (hover: none), (pointer: coarse) {
  .ct-cop-explorer .permalink {
    opacity: 1;
  }
}

.ct-cop-explorer .filter-bar #ct-cop-clear-filters:focus-visible {
  color: var(--ink);
  outline: 2px solid var(--teal-dark);
  outline-offset: 2px;
}

/* The controls bar sticks to the top. Reading sizes match everywhere, and publication covers are square. */
.ct-cop-explorer .explore-controls {
  position: sticky;
  top: var(--ct-cop-sticky-top, 12px);
  z-index: 20;
  padding: 12px;
}
.ct-cop-explorer .reading-links h4 {
  font-size: 20px;
  line-height: 1.3;
  margin: 12px 0 8px;
}
.ct-cop-explorer .reading-links ul,
.ct-cop-explorer .reading-links a {
  font-size: 17px;
  line-height: 1.6;
}
.ct-cop-explorer .detail-layer p {
  font-size: 17px;
  line-height: 1.6;
}
.ct-cop-explorer .results-actions .view-switch button {
  font-size: 17px;
}
.ct-cop-explorer .results-actions .mode-option span,
.ct-cop-explorer .toggle-label {
  font-size: 15px;
}
.ct-cop-explorer .filter-bar label {
  font-size: 15px;
}
.ct-cop-explorer #ct-cop-article-results {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ct-cop-explorer .article-image {
  aspect-ratio: 1;
  object-fit: cover;
}
@media (min-width: 821px) {
  .ct-cop-explorer .explore-controls .explore-panel {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  .ct-cop-explorer #ct-cop-panel-content {
    padding: 12px 8px 4px;
  }
}
@media (min-width: 601px) and (max-width: 1000px) {
  .ct-cop-explorer #ct-cop-article-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .ct-cop-explorer #ct-cop-article-results {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 820px) {
  .ct-cop-explorer .explore-controls {
    padding: 8px;
  }
  .ct-cop-explorer .results-actions .view-switch button {
    font-size: 15px;
  }
}

@media (min-width: 821px) and (max-width: 1120px) {
  .ct-cop-explorer .filter-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  }
  .ct-cop-explorer .filter-bar #ct-cop-clear-filters {
    grid-column: 3;
    width: auto;
  }
  .ct-cop-explorer .filter-bar.is-glossary {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .ct-cop-explorer .filter-bar.is-glossary #ct-cop-clear-filters {
    grid-column: 2;
  }
}

/* Match the ClimaTalk site: centred page title, outlined Courier Prime buttons,
 * Articles-page filter pills, /cop/ card borders and plain topic labels. */

.ct-cop-explorer .explore-controls {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--warm-white);
  box-shadow: none;
}

/* Content tabs and detail mode use the Articles page's category pills. */
.ct-cop-explorer .results-actions .view-switch {
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.ct-cop-explorer .results-actions .view-switch button {
  border: 2px solid var(--ink);
  border-radius: 20px;
  color: var(--ink);
}
@media (min-width: 1101px) {
  .ct-cop-explorer .results-actions .view-switch button {
    font-size: 18px;
  }
}
.ct-cop-explorer .results-actions .view-switch button.is-active {
  border-color: var(--teal-dark);
  color: #fff;
  background: var(--teal-dark);
}
@media (hover: hover) and (pointer: fine) {
  .ct-cop-explorer .results-actions .view-switch button:not(.is-active):hover {
    background: rgb(198 226 224 / 55%);
  }
}
.ct-cop-explorer .mode-switch {
  padding: 3px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: transparent;
}
.ct-cop-explorer .mode-switch::before {
  inset: 3px auto 3px 3px;
  width: calc((100% - 6px) / 2);
  border-radius: 16px;
}
.ct-cop-explorer .mode-option span {
  border-radius: 16px;
  color: var(--ink);
}
.ct-cop-explorer .mode-option input:checked + span {
  color: #fff;
}
@media (min-width: 821px) {
  .ct-cop-explorer .results-actions > .panel-toggle {
    border: 2px solid var(--ink);
    border-radius: 20px;
    color: var(--ink);
    background: transparent;
  }
}

/* Fields follow the site's search inputs. Buttons follow its Courier Prime buttons. */
.ct-cop-explorer .filter-bar input,
.ct-cop-explorer .filter-bar select {
  height: 44px;
  border-radius: 5px;
  background: #fff;
}
.ct-cop-explorer .search-input-wrap svg {
  top: 11px;
}
.ct-cop-explorer .filter-bar #ct-cop-clear-filters,
.ct-cop-explorer .empty-state button {
  height: 44px;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: 25px;
  color: var(--ink);
  background: var(--warm-white);
  font-family: var(--button-font);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
@media (hover: hover) and (pointer: fine) {
  .ct-cop-explorer .filter-bar #ct-cop-clear-filters:hover,
  .ct-cop-explorer .empty-state button:hover {
    border-color: var(--ink);
    background: rgb(198 226 224 / 55%);
  }
}
.ct-cop-explorer .filter-bar #ct-cop-clear-filters:active,
.ct-cop-explorer .filter-bar #ct-cop-clear-filters:focus-visible,
.ct-cop-explorer .empty-state button:active {
  border-color: var(--ink);
  background: rgb(198 226 224 / 55%);
}
@media (min-width: 375px) and (max-width: 820px) {
  .ct-cop-explorer .filter-bar #ct-cop-clear-filters {
    padding-inline: 14px;
    font-size: 16px;
  }
}
.ct-cop-explorer #ct-cop-view-results {
  border-radius: 25px;
  font-family: var(--button-font);
  font-size: 18px;
}
.ct-cop-explorer .letter-index button {
  border: 2px solid var(--ink);
  border-radius: 20px;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
}
.ct-cop-explorer .letter-index button.is-active {
  border-color: var(--teal-dark);
}

/* Conference headings match the /cop/ page's year heading. */
.ct-cop-explorer .conference-heading {
  margin: 24px 0 4px;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.1;
  text-align: center;
}

/* Cards take the /cop/ page's teal outline. A shadow marks hover. */
.ct-cop-explorer .result-card {
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
  .ct-cop-explorer .result-card:hover {
    box-shadow: 0 1px 10px rgb(0 0 0 / 18%);
  }
}
.ct-cop-explorer .abc-card {
  border-left: 5px solid #f4c44e;
}
.ct-cop-explorer .result-card h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.15;
}
.ct-cop-explorer .result-summary,
.ct-cop-explorer .result-summary p {
  color: var(--ink);
}
.ct-cop-explorer .detail-layer p {
  color: var(--ink);
}
.ct-cop-explorer .article-image-link {
  border-radius: 0;
}

/* Topic labels read as the site's "Category | Category" line. */
.ct-cop-explorer .result-meta {
  gap: 0;
  margin-bottom: 10px;
}
.ct-cop-explorer .result-meta span,
.ct-cop-explorer .result-meta span:not(:first-child) {
  padding: 0;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.7;
}
.ct-cop-explorer .result-meta span:first-child {
  color: var(--teal-dark);
  font-weight: 700;
}
/* Trailing separators keep a wrapped line from starting with "|". */
.ct-cop-explorer .result-meta span:not(:last-child)::after {
  content: "|";
  margin: 0 7px;
  color: var(--muted);
  font-weight: 500;
}
.ct-cop-explorer .search-highlight {
  background: #fff48f;
}

@media (max-width: 560px) {
  .ct-cop-explorer .conference-heading {
    font-size: 24px;
  }
  .ct-cop-explorer .result-card h3 {
    font-size: 20px;
  }
}

/* Article cards follow the site's article grids: flat, image flush at the top,
 * categories on the last line. */
.ct-cop-explorer #ct-cop-article-results {
  gap: 30px;
}
.ct-cop-explorer .article-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
  .ct-cop-explorer .article-card:hover {
    box-shadow: none;
    translate: none;
  }
}
.ct-cop-explorer .article-card .article-image-link {
  margin-bottom: 20px;
}
.ct-cop-explorer .article-card h3 {
  margin-bottom: 5px;
  line-height: 1;
}
.ct-cop-explorer .article-card .result-summary {
  margin-bottom: 8px;
}
.ct-cop-explorer .article-card .result-meta {
  margin: 0;
}
.ct-cop-explorer .article-card .result-meta span,
.ct-cop-explorer .article-card .result-meta span:first-child {
  color: var(--ink);
  font-weight: 500;
}

/* Fold the mode switch away on tabs that only have one text level. */
.ct-cop-explorer .results-actions {
  --actions-gap: 14px;
}
@media (min-width: 821px) and (max-width: 1100px) {
  .ct-cop-explorer .results-actions {
    --actions-gap: 10px;
  }
}
.ct-cop-explorer .results-actions .detail-control {
  max-height: 64px;
  margin-left: 0;
  /* Clip only while folding. The clip margin keeps focus rings and borders whole. */
  overflow: hidden;
  overflow: clip;
  overflow-clip-margin: 8px;
}
.ct-cop-explorer .results-actions .detail-control.can-animate {
  transition:
    max-width 280ms ease,
    max-height 280ms ease,
    margin 280ms ease,
    opacity 200ms ease,
    visibility 0s;
}
.ct-cop-explorer .results-actions .detail-control.is-hidden {
  max-width: 0;
  margin-left: calc(-1 * var(--actions-gap));
  opacity: 0;
  visibility: hidden;
}
.ct-cop-explorer .results-actions .detail-control.can-animate.is-hidden {
  transition:
    max-width 280ms ease,
    max-height 280ms ease,
    margin 280ms ease,
    opacity 160ms ease,
    visibility 0s 280ms;
}
@media (max-width: 820px) {
  /* An empty flex row keeps its gap, so the switch row carries its own space. */
  .ct-cop-explorer .results-actions {
    row-gap: 0;
  }
  .ct-cop-explorer .results-actions .detail-control {
    margin-top: var(--actions-gap);
  }
  .ct-cop-explorer .results-actions .detail-control.is-hidden {
    max-width: none;
    max-height: 0;
    margin: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ct-cop-explorer .results-actions .detail-control.can-animate {
    transition: none;
  }
}

/* Card text uses the site's body font. */
.ct-cop-explorer .result-summary,
.ct-cop-explorer .result-summary p {
  font-family: inherit;
  font-size: 17px;
  line-height: 1.6;
}

/* Publication summaries use Courier Prime, like /articles/ and the home page.
 * The line height stays at 1.5 because the site's 1.0 is too tight. */
.ct-cop-explorer .article-card .result-summary,
.ct-cop-explorer .article-card .result-summary p {
  font-family: var(--button-font);
  font-size: 16px;
  line-height: 1.5;
}

/* The fold needs a maximum width to animate from. */
.ct-cop-explorer .results-actions .detail-control {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 380px;
}
.ct-cop-explorer .conference-heading {
  scroll-margin-top: var(--controls-offset, 16px);
}

/* Match counts sit inside the tabs while a search or filter is active. */
@media (min-width: 821px) {
  .ct-cop-explorer .results-actions .view-switch button {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
.ct-cop-explorer .view-switch .tab-count {
  display: inline-block;
  min-width: 2ch;
  width: max-content;
  flex-shrink: 0;
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgb(63 84 84 / 12%);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  vertical-align: 1px;
}
.ct-cop-explorer .view-switch button.is-active .tab-count {
  background: rgb(0 0 0 / 25%);
}
@media (min-width: 1101px) {
  .ct-cop-explorer .results-actions > .panel-toggle {
    flex-basis: 140px;
  }
}
@media (min-width: 821px) and (max-width: 1300px) {
  .ct-cop-explorer .results-actions .view-switch button {
    padding-inline: 10px;
  }
}
@media (max-width: 1300px) {
  .ct-cop-explorer .view-switch .tab-count {
    min-width: 0;
    margin-left: 4px;
    padding: 0;
    background: transparent;
  }
}

/* One card can open its detailed text without switching the whole page. */
.ct-cop-explorer .card-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  margin: 0 0 -10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}
.ct-cop-explorer .card-more:hover {
  color: #065b60;
}
.ct-cop-explorer .card-more svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}
.ct-cop-explorer .card-more[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Tablets: the mode switch takes a row of its own. */
@media (min-width: 821px) and (max-width: 1100px) {
  .ct-cop-explorer .results-actions {
    flex-wrap: wrap;
    row-gap: 0;
  }
  .ct-cop-explorer .results-actions .detail-control {
    order: 3;
    flex: 0 0 100%;
    max-width: none;
    margin: var(--actions-gap) 0 0;
  }
  .ct-cop-explorer .results-actions .detail-control.is-hidden {
    max-width: none;
    max-height: 0;
    margin: 0;
  }
}

/* Phones: a shorter pinned bar, and text fades out under the Filters button. */
@media (max-width: 820px) {
  .ct-cop-explorer .results-actions {
    --actions-gap: 10px;
  }
  .ct-cop-explorer .results-actions .view-switch,
  .ct-cop-explorer .results-actions .view-switch button,
  .ct-cop-explorer .results-actions .mode-switch {
    height: 44px;
    min-height: 44px;
  }
  .ct-cop-explorer .results-actions .detail-control {
    max-width: none;
  }
  .ct-cop-explorer .results-actions .mode-switch {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
  .ct-cop-explorer .filter-shell::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: calc(80px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgb(246 244 241 / 92%) 30%, rgb(246 244 241 / 0%));
    pointer-events: none;
  }
}
@media (max-width: 560px) {
  .ct-cop-explorer .results-actions .view-switch button {
    position: relative;
    padding-inline: 8px;
    font-size: 14px;
  }
  /* Narrow tabs carry the count as a corner badge, so the label keeps its width. */
  .ct-cop-explorer .view-switch .tab-count {
    position: absolute;
    top: -7px;
    right: -5px;
    min-width: 2ch;
    max-width: none;
    box-sizing: content-box;
    height: 20px;
    margin: 0;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
  }
  .ct-cop-explorer .view-switch button.is-active .tab-count {
    background: var(--ink);
  }
}

/* Small phones: tighter tabs. */
@media (max-width: 360px) {
  .ct-cop-explorer .results-actions .view-switch {
    gap: 6px;
  }
  .ct-cop-explorer .results-actions .view-switch button {
    padding-inline: 4px;
    font-size: 13px;
  }
}
@media (max-width: 820px) {
  .ct-cop-explorer .results-actions .detail-control > * {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* The empty-state button grows with a wrapped label. */
.ct-cop-explorer .empty-state button {
  height: auto;
  padding: 10px 18px;
  line-height: 1.25;
}

/* The open tray stays clear of a fixed site header or WordPress toolbar.
 * 160px covers the tray's close row, footer and bottom padding. */
@media (max-width: 820px) {
  .ct-cop-explorer #ct-cop-panel-content,
  .ct-cop-explorer .explore-panel.is-animating-tray #ct-cop-panel-content {
    max-height: min(
      calc(var(--tray-available-height, 100dvh) * 0.78 - 120px),
      calc(var(--tray-available-height, 100dvh) - var(--ct-cop-sticky-top, 0px) - 160px - env(safe-area-inset-bottom)),
      580px
    );
  }
}

/* The full-width phone row keeps Divi's own side padding on the text above the explorer. */
@media (max-width: 820px) {
  .et_pb_row:has(.ct-cop-explorer) > .et_pb_column > .et_pb_module:not(:has(.ct-cop-explorer)) {
    padding-right: 16px;
    padding-left: 16px;
  }
}

/* Centre the Divi introduction under its heading and cap its width. The controls
 * sit 28px below it, the same gap as between the controls and the results. */
.et_pb_row:has(.ct-cop-explorer) .et_pb_text:has(h1) p {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
@media (min-width: 821px) {
  .ct-cop-explorer .results-section {
    padding-top: 28px;
  }
}

/* The publication type filter takes its own row. */
.ct-cop-explorer .publication-field {
  grid-column: 1 / -1;
}
@media (min-width: 1101px) {
  .ct-cop-explorer .filter-bar.has-publication-filter {
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  }
  .ct-cop-explorer .filter-bar.has-publication-filter .search-field {
    grid-column: auto;
  }
  .ct-cop-explorer .filter-bar.has-publication-filter .publication-field {
    grid-column: 1 / span 2;
    grid-row: 2;
    max-width: 440px;
    width: 100%;
  }
  .ct-cop-explorer .filter-bar.has-publication-filter #ct-cop-clear-filters {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
  }
}

/* A summary can be one long URL, so let it wrap. */
.ct-cop-explorer .article-card .result-summary {
  overflow-wrap: anywhere;
}

/* On phones the tray and its Filters button float over the cards. Like the site's
 * outlined pills they use an opaque cream fill and a 2px ink edge instead of a
 * shadow, which keeps them distinct from the 1px teal card borders behind. */
@media (max-width: 820px) {
  .ct-cop-explorer .explore-panel {
    border: 2px solid var(--ink);
    border-radius: 8px;
    background: var(--warm-white);
    box-shadow: none;
    backdrop-filter: none;
  }
  .ct-cop-explorer .explore-panel.is-collapsed {
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .ct-cop-explorer .explore-panel.is-collapsed .panel-toggle {
    margin: 0;
    padding: 10px 16px;
    border: 2px solid var(--ink);
    border-radius: 25px;
    color: var(--ink);
    background: var(--warm-white);
  }
  .ct-cop-explorer .panel-toggle[aria-expanded="true"] {
    border-radius: 50%;
    color: var(--ink);
  }
  .ct-cop-explorer .panel-toggle:hover,
  .ct-cop-explorer .explore-panel.is-collapsed .panel-toggle:hover {
    background: rgb(198 226 224 / 55%);
  }
}

/* A bar taller than a third of the screen scrolls with the page. script.js sets the class. */
.ct-cop-explorer.has-tall-controls .explore-controls {
  position: static;
}

/* In the phone tray on Publications, Topic takes a full row and the type shares a row with Clear filters. */
@media (min-width: 375px) and (max-width: 820px) {
  .ct-cop-explorer .filter-bar.has-publication-filter label[for="ct-cop-topic-filter"] {
    grid-column: 1 / -1;
  }
  .ct-cop-explorer .filter-bar.has-publication-filter .publication-field {
    grid-column: 1;
  }
}

/* When a visitor's text spacing makes the phone tabs too wide, the tab row scrolls
 * sideways and the page does not. The padding keeps the corner count badges inside it. */
@media (max-width: 560px) {
  .ct-cop-explorer .results-actions .view-switch {
    flex: 0 0 calc(100% + 12px);
    width: calc(100% + 12px);
    height: 52px;
    min-height: 52px;
    margin: -8px -6px 0;
    padding: 8px 6px 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
}
