/* One exploration workspace; record and community data have their own views. */
.debate-dashboard {
  color: #20283c;
  background: #f5f6fa;
  padding-top: var(--dx-nav-height, 96px);
}
.debate-dashboard .dx-hero {
  background: #fff;
  color: #20283c;
  padding: 1.4rem max(1.25rem, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid #e3e7ef;
}
.dx-hero .ki-crumb,
.dx-hero .ki-crumb a {
  color: #5c6b82;
  font-size: 0.78rem;
}
.dx-hero h1 {
  color: #17243b;
  font:
    700 clamp(1.5rem, 2.8vw, 2.35rem) / 1.2 Georgia,
    serif;
  max-width: 1050px;
  margin: 0.5rem 0;
}
.dx-eyebrow {
  color: #315c93;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 750;
  margin-bottom: 0.4rem;
}
.dx-intro {
  color: #59667c;
  margin: 0.6rem 0;
  font-size: 0.95rem;
}
.dx-context {
  max-width: 900px;
  color: #526078;
  font-size: 0.85rem;
  margin-top: 0.8rem;
}
.dx-context summary {
  cursor: pointer;
  color: #315c93;
}
.dx-context p {
  line-height: 1.7;
  margin: 0.5rem 0 0;
}
.dx-shell {
  max-width: 1280px;
  margin: auto;
  padding: 0 1.25rem 3rem;
}
.dx-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.9rem 0;
  position: sticky;
  top: var(--dx-nav-height, 96px);
  z-index: 25;
  background: #f5f6faf5;
  border-bottom: 1px solid #dfe4ed;
  margin-bottom: 1.3rem;
}
.dx-tabs button {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.3;
  color: #526078;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  min-height: 44px;
}
.dx-tabs [aria-selected="true"] {
  background: #172b49;
  color: #fff;
}
.dx-tabs button:focus-visible,
.dx-claim-button:focus-visible,
.dx-button:focus-visible {
  outline: 3px solid #80a7ed;
  outline-offset: 3px;
}
.dx-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 1.2rem;
}
.dx-section-heading h2 {
  font:
    700 clamp(1.3rem, 2vw, 1.7rem) / 1.3 Georgia,
    serif;
  color: #17243b;
  margin: 0.2rem 0 0.45rem;
}
.dx-section-heading p {
  color: #5b6880;
  font-size: 0.87rem;
  max-width: 780px;
  line-height: 1.6;
  margin: 0;
}
.dx-counter {
  color: #435672;
  background: #e9eef7;
  padding: 0.5rem 0.75rem;
  border-radius: 30px;
  font-size: 0.78rem;
  white-space: nowrap;
}
.dx-filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.85rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e0e5ef;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.dx-filters label,
.dx-form label {
  display: block;
  font-size: 0.76rem;
  color: #526078;
  font-weight: 650;
}
.dx-filters input,
.dx-filters select,
.dx-form input,
.dx-form select,
.dx-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid #ccd5e2;
  background: #fff;
  border-radius: 7px;
  font: inherit;
  font-size: 0.88rem;
  color: #20283c;
  min-width: 0;
  min-height: 42px;
}
.dx-form textarea {
  resize: vertical;
  min-height: 85px;
}
.dx-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.7fr);
  align-items: start;
  gap: 1rem;
}
.dx-claim-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: calc(100vh - 220px);
  overflow: auto;
  padding: 2px;
}
.dx-claim-button {
  display: block;
  text-align: left;
  width: 100%;
  background: #fff;
  border: 1px solid #dfe4ed;
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  color: #253249;
}
.dx-claim-button[aria-current="true"] {
  border-color: #396caa;
  box-shadow: inset 4px 0 #396caa;
  background: #eff4fc;
}
.dx-claim-button strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0.5rem 0;
}
.dx-tag {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  background: #eef1f6;
  color: #44546b;
  font-size: 0.7rem;
  font-weight: 650;
}
.dx-small {
  color: #65748a;
  font-size: 0.76rem;
  line-height: 1.6;
}
.dx-detail {
  background: #fff;
  border: 1px solid #dfe4ed;
  border-radius: 12px;
  padding: 1.4rem;
  min-height: 400px;
  min-width: 0;
  scroll-margin-top: calc(
    var(--dx-nav-height, 96px) + var(--dx-tabs-height, 74px) + 12px
  );
}
.dx-detail h3 {
  font:
    700 1.35rem/1.4 Georgia,
    serif;
  color: #17243b;
  margin: 0.7rem 0;
  overflow-wrap: anywhere;
}
.dx-detail h4 {
  color: #263b56;
  font-size: 0.95rem;
  margin: 1.3rem 0 0.65rem;
}
.dx-detail p {
  color: #4e5f76;
  font-size: 0.88rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  margin: 0.4rem 0;
}
.dx-note {
  padding: 0.85rem 1rem;
  border-left: 3px solid #b4c5dc;
  background: #edf2f9;
  color: #455a76;
  font-size: 0.82rem;
  line-height: 1.6;
  margin: 0.8rem 0;
}
.dx-record {
  padding: 1rem 0;
  border-top: 1px solid #e6eaf1;
}
.dx-record a {
  color: #285f9c;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
}
.dx-record blockquote {
  border-left: 2px solid #ccd7e7;
  padding-left: 0.8rem;
  font-size: 0.85rem;
  color: #4e5f76;
  margin: 0.6rem 0;
}
.dx-detail-tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  border-bottom: 1px solid #dfe4ed;
  padding-bottom: 0.55rem;
  margin-top: 1rem;
}
.dx-detail-tabs button {
  padding: 0.5rem 0.65rem;
  border: 0;
  background: #f1f4f9;
  color: #445a77;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  min-height: 40px;
}
.dx-detail-tabs button[aria-selected="true"] {
  background: #dce7f6;
  color: #173d71;
  font-weight: 700;
}
.dx-button {
  display: inline-block;
  border: 1px solid #c5d1e1;
  padding: 0.6rem 0.85rem;
  border-radius: 7px;
  background: #fff;
  color: #28578a;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.85rem;
  min-height: 42px;
}
.dx-button--primary {
  background: #214b7a;
  border-color: #214b7a;
  color: #fff;
}
.dx-breadcrumb {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.dx-breadcrumb button {
  border: 0;
  background: transparent;
  color: #315c93;
  cursor: pointer;
  font-size: 0.75rem;
  text-decoration: underline;
}
.dx-rel {
  display: block;
  text-align: left;
  width: 100%;
  padding: 0.7rem;
  margin: 0.5rem 0;
  background: #f5f7fb;
  border: 1px solid #dce3ef;
  border-radius: 7px;
  color: #233d5d;
  cursor: pointer;
  font-size: 0.85rem;
}
.dx-form {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}
.dx-status {
  min-height: 1.5rem;
  font-size: 0.85rem;
  color: #325b47;
}
.dx-trap {
  position: absolute;
  left: -9999px;
}
.dx-activity {
  padding: 0.8rem 0;
  border-bottom: 1px solid #e4e8f0;
}
.debate-dashboard [role="tabpanel"] {
  scroll-margin-top: calc(
    var(--dx-nav-height, 96px) + var(--dx-tabs-height, 74px) + 12px
  );
}
.debate-dashboard .ki-section {
  margin-bottom: 1rem;
}
.debate-dashboard .ki-shell {
  display: block;
}
.debate-dashboard .kbt-str-bar {
  display: none;
}
/* Internal editorial workspace shares the same record vocabulary. */
.dx-editor {
  max-width: 1100px;
  margin: 100px auto 3rem;
  padding: 0 1.2rem;
  color: #223550;
}
.dx-editor h1 {
  font:
    700 1.8rem Georgia,
    serif;
  margin: 0.6rem 0;
}
.dx-editor-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.6fr);
  gap: 1.2rem;
  align-items: start;
}
.dx-editor-card {
  padding: 1.2rem;
  background: #fff;
  border: 1px solid #dce3ed;
  border-radius: 10px;
  margin: 1rem 0;
}
.dx-editor-card summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.3rem 0;
}
.dx-editor select[data-editor-claim] {
  width: 100%;
  min-height: 44px;
}
@media (max-width: 760px) {
  .dx-tabs {
    top: var(--dx-nav-height, 96px);
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.5rem 0;
  }
  .dx-tabs button {
    flex: 1 0 44%;
    padding: 0.5rem 0.35rem;
    font-size: 0.76rem;
  }
  .dx-shell {
    padding: 0 0.8rem 2rem;
  }
  .dx-filters {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    padding: 0.8rem;
  }
  .dx-filters label:first-child {
    grid-column: 1/-1;
  }
  .dx-workspace,
  .dx-editor-grid {
    grid-template-columns: 1fr;
  }
  .dx-claim-list {
    max-height: 290px;
    border-bottom: 1px solid #ccd7e7;
    padding-bottom: 0.6rem;
  }
  .dx-claim-button {
    padding: 0.75rem;
  }
  .dx-detail {
    padding: 1rem;
    scroll-margin-top: calc(
      var(--dx-nav-height, 96px) + var(--dx-tabs-height, 109px) + 12px
    );
  }
  .dx-section-heading {
    align-items: start;
  }
  .dx-counter {
    font-size: 0.68rem;
    white-space: normal;
  }
  .dx-detail h3 {
    font-size: 1.18rem;
  }
  .debate-dashboard .dx-hero {
    padding: 1.2rem 0.9rem;
  }
  .dx-editor {
    margin-top: 75px;
  }
}

body:has(.dx-editor) {
  background: #f5f6fa;
  color: #223550;
}
.dx-editor-card p {
  line-height: 1.6;
  font-size: 0.87rem;
  overflow-wrap: anywhere;
}
.dx-record > a {
  display: block;
  margin-bottom: 0.4rem;
  overflow-wrap: anywhere;
}
