.ndx-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 40px auto 80px;
  color: #172033;
}
.ndx-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
  padding: 28px;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  background: linear-gradient(135deg, #f6f9ff, #eef7f3);
}
.ndx-page-header h1,
.ndx-detail h1 {
  margin: 0.2rem 0 0.6rem;
  line-height: 1.35;
}
.ndx-kicker {
  margin: 0;
  color: #126b55;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.ndx-section {
  margin: 34px 0;
}
.ndx-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.ndx-card {
  padding: 20px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 35, 60, 0.06);
}
.ndx-card-draft {
  border-style: dashed;
  background: #fffdf5;
}
.ndx-card h3 {
  margin: 0.6rem 0;
  font-size: 1.08rem;
}
.ndx-card a,
.ndx-breadcrumb a {
  color: #145f91;
}
.ndx-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #5d6878;
  font-size: 0.82rem;
}
.ndx-tags {
  color: #126b55;
  font-size: 0.88rem;
}
.ndx-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid #8c9aad;
  border-radius: 9px;
  background: #fff;
  color: #172033;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.ndx-button:hover,
.ndx-button:focus-visible {
  border-color: #126b55;
  box-shadow: 0 0 0 3px rgba(18, 107, 85, 0.14);
}
.ndx-button-primary {
  border-color: #126b55;
  background: #126b55;
  color: #fff;
}
.ndx-button-danger {
  border-color: #b42318;
  color: #b42318;
}
.ndx-button-link {
  border-color: transparent;
}
.ndx-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #5d6878;
}
.ndx-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 28px;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  background: #fff;
}
.ndx-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ndx-field-wide {
  grid-column: 1/-1;
}
.ndx-field label {
  font-weight: 700;
}
.ndx-field input,
.ndx-field textarea,
.ndx-field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #9ba8b8;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  font: inherit;
}
.ndx-field textarea {
  resize: vertical;
}
.ndx-field input:focus,
.ndx-field textarea:focus,
.ndx-field select:focus {
  outline: 3px solid rgba(20, 95, 145, 0.18);
  border-color: #145f91;
}
.ndx-required {
  margin-left: 6px;
  color: #b42318;
  font-size: 0.78rem;
}
.ndx-count {
  float: right;
  color: #5d6878;
  font-size: 0.82rem;
  font-weight: 400;
}
.ndx-help {
  margin: 0.15rem 0 0;
  color: #5d6878;
  font-size: 0.84rem;
}
.ndx-registrant {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  background: #f5f8fc;
}
.ndx-registrant div {
  display: grid;
  gap: 2px;
}
.ndx-registrant span,
.ndx-registrant small {
  color: #5d6878;
}
.ndx-avatar {
  display: block;
  border-radius: 50%;
  object-fit: cover;
}
.ndx-details {
  padding: 16px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
}
.ndx-details summary {
  font-weight: 700;
  cursor: pointer;
}
.ndx-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.ndx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.ndx-inline-form {
  display: inline-flex;
  margin: 0;
}
.ndx-alert {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 10px;
}
.ndx-alert-error {
  border: 1px solid #f0a5a0;
  background: #fff1f0;
  color: #8f1b13;
}
.ndx-alert-success {
  border: 1px solid #88c9b7;
  background: #edf9f4;
  color: #0f5c47;
}
.ndx-empty {
  padding: 32px;
  border: 1px dashed #aab5c3;
  border-radius: 12px;
  text-align: center;
  color: #5d6878;
}
.ndx-pagination {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}
.ndx-pagination a {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  border: 1px solid #c8d1dc;
  border-radius: 8px;
  text-decoration: none;
}
.ndx-pagination .is-current {
  border-color: #126b55;
  background: #126b55;
  color: #fff;
}
.ndx-detail {
  padding: 30px;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  background: #fff;
}
.ndx-detail-header {
  padding-bottom: 24px;
  border-bottom: 1px solid #e3e9f0;
}
.ndx-status {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #145f91;
  font-size: 0.78rem;
  font-weight: 700;
}
.ndx-status-draft {
  background: #fff5d7;
  color: #765300;
}
.ndx-status-trash {
  background: #f2f3f5;
  color: #535d69;
}
.ndx-author {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}
.ndx-author div {
  display: grid;
  gap: 2px;
}
.ndx-author span {
  color: #5d6878;
  font-size: 0.84rem;
}
.ndx-detail-section {
  padding: 24px 0;
  border-bottom: 1px solid #e3e9f0;
}
.ndx-detail-section:last-child {
  border-bottom: 0;
}
.ndx-source-panel {
  padding: 22px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #f7f9fc;
}
.ndx-url {
  overflow-wrap: anywhere;
  color: #445064;
  font-size: 0.88rem;
}
.ndx-definition {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}
.ndx-definition div {
  padding: 12px;
  border-radius: 8px;
  background: #fff;
}
.ndx-definition dt {
  color: #5d6878;
  font-size: 0.78rem;
}
.ndx-definition dd {
  margin: 3px 0 0;
  font-weight: 700;
}
.ndx-owner-actions {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #fbfcfe;
}
@media (max-width: 800px) {
  .ndx-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ndx-page-header {
    align-items: flex-start;
  }
  .ndx-form {
    grid-template-columns: 1fr;
  }
  .ndx-field,
  .ndx-field-wide,
  .ndx-registrant {
    grid-column: 1;
  }
  .ndx-details-grid,
  .ndx-definition {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .ndx-wrap {
    width: min(100% - 20px, 1120px);
    margin-top: 20px;
  }
  .ndx-page-header {
    display: grid;
    padding: 20px;
  }
  .ndx-page-header .ndx-button {
    width: 100%;
  }
  .ndx-grid {
    grid-template-columns: 1fr;
  }
  .ndx-form,
  .ndx-detail {
    padding: 18px;
  }
  .ndx-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .ndx-actions .ndx-button,
  .ndx-inline-form,
  .ndx-inline-form .ndx-button {
    width: 100%;
  }
  .ndx-card-meta {
    display: grid;
    gap: 2px;
  }
}
.ndx-fetch-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.ndx-fetch-row span {
  color: #5d6878;
  font-size: 0.82rem;
}
.ndx-image-choice {
  padding: 18px;
  border: 1px solid #b9c9dc;
  border-radius: 12px;
  background: #f7faff;
}
.ndx-image-choice h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.ndx-image-choice label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 700;
}
.ndx-image-choice input[type="checkbox"] {
  width: auto;
  min-height: 0;
  margin-top: 4px;
}
.ndx-media-section {
  padding-top: 0;
}
.ndx-media-image,
.ndx-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ndx-media-section > .ndx-media-image,
.ndx-video-shell,
.ndx-media-placeholder {
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #dce7f5, #edf5ef);
}
.ndx-media-placeholder,
.ndx-card-placeholder {
  display: grid;
  place-items: center;
  color: #536174;
  font-weight: 700;
}
.ndx-video-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.ndx-video-load {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.ndx-video-load:focus-visible {
  outline: 4px solid #145f91;
  outline-offset: 3px;
}
.ndx-video-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(15, 34, 48, 0.88);
  color: #fff;
  font-weight: 700;
}
.ndx-card {
  overflow: hidden;
}
.ndx-card-media {
  display: block;
  aspect-ratio: 16/9;
  margin: -20px -20px 16px;
  background: linear-gradient(135deg, #dce7f5, #edf5ef);
  text-decoration: none;
}
.ndx-card-placeholder {
  height: 100%;
}
@media (max-width: 560px) {
  .ndx-fetch-row {
    align-items: stretch;
  }
  .ndx-fetch-row .ndx-button {
    width: 100%;
  }
}
/* Task08 authentication */
.ndx-auth-shell {
  max-width: 760px;
}
.ndx-auth-panel {
  display: grid;
  gap: 1.25rem;
}
.ndx-auth-method {
  padding: 1rem;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  background: #fff;
}
.ndx-auth-method h2 {
  margin-top: 0;
}
.ndx-auth-form {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}
.ndx-auth-form input {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
}
.ndx-auth-form input[readonly] {
  background: #f4f6f8;
  color: #344054;
}
.ndx-auth-notice {
  margin: 0;
  font-weight: 700;
}
.ndx-auth-step-title {
  margin: 1.25rem 0 0;
  font-size: 1rem;
}
.ndx-auth-followup-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
}
.ndx-auth-inline-form {
  margin: 0;
}
.ndx-auth-change-link {
  color: #145f91;
  font-weight: 700;
}
.ndx-muted {
  color: #667085;
}
/* Task10 internal DX cases */
.ndx-status-pending {
  background: #f1e8ff;
  color: #6941c6;
}
.ndx-status-overdue {
  background: #fee4e2;
  color: #b42318;
}
.ndx-case-card {
  border-top: 4px solid #126b55;
}
.ndx-case-preview-banner {
  border: 1px solid #8db8d6;
  background: #eff8ff;
  color: #145f91;
}
.ndx-case-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}
.ndx-case-sections .ndx-detail-section {
  min-width: 0;
}
.ndx-case-template-field textarea {
  min-height: 160px;
}
.ndx-related-picker {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
}
.ndx-related-picker legend {
  padding: 0 6px;
  font-weight: 700;
}
.ndx-related-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.ndx-related-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border: 1px solid #dbe3ef;
  border-radius: 9px;
  background: #f9fbfd;
  font-weight: 600;
}
.ndx-related-option input {
  width: auto;
  min-height: 0;
  margin-top: 4px;
}
.ndx-related-links {
  display: grid;
  gap: 8px;
  padding-left: 1.25rem;
}
.ndx-review-list {
  display: grid;
  gap: 14px;
}
.ndx-review-card {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(320px, 3fr) auto;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #fff;
}
.ndx-review-card h3 {
  margin: 0.55rem 0 0;
}
.ndx-review-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.ndx-review-meta div {
  min-width: 0;
}
.ndx-review-meta dt {
  color: #5d6878;
  font-size: 0.78rem;
}
.ndx-review-meta dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}
.ndx-case-approval-form,
.ndx-case-return-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #dbe3ef;
}
.ndx-case-approval-form fieldset,
.ndx-case-return-form fieldset {
  display: grid;
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.ndx-case-approval-form legend,
.ndx-case-return-form legend {
  margin-bottom: 10px;
  font-weight: 700;
}
.ndx-case-approval-form label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.ndx-case-approval-form input {
  width: auto;
  min-height: 0;
  margin-top: 3px;
}
.ndx-case-return-form label {
  font-weight: 700;
}
.ndx-case-return-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #9ba8b8;
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}
@media (max-width: 800px) {
  .ndx-case-sections,
  .ndx-related-options {
    grid-template-columns: 1fr;
  }
  .ndx-review-card {
    grid-template-columns: 1fr;
  }
  .ndx-review-meta {
    grid-template-columns: 1fr 1fr;
  }
  .ndx-review-card > .ndx-button {
    justify-self: start;
  }
}
@media (max-width: 560px) {
  .ndx-review-meta {
    grid-template-columns: 1fr;
  }
  .ndx-review-card > .ndx-button {
    width: 100%;
  }
}
.ndx-search-page {
  width: min(1440px, calc(100% - 48px));
}
.ndx-search-form {
  display: grid;
  grid-template-columns: 2fr repeat(5, minmax(150px, 1fr));
  gap: 16px;
  padding: 24px;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  background: #fff;
}
.ndx-search-keyword {
  grid-column: span 2;
}
.ndx-search-date-note {
  grid-column: 1/-1;
}
.ndx-search-actions {
  grid-column: 1/-1;
}
.ndx-search-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}
.ndx-search-summary h2,
.ndx-search-summary p {
  margin: 0;
}
.ndx-search-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.ndx-search-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ndx-search-card h3 {
  line-height: 1.5;
}
.ndx-search-excerpt {
  margin: 0.4rem 0 1rem;
  color: #445064;
  font-size: 0.9rem;
  line-height: 1.75;
}
.ndx-search-terms {
  margin: 0.25rem 0;
  color: #5d6878;
  font-size: 0.8rem;
  line-height: 1.5;
}
.ndx-search-card .ndx-card-meta {
  align-items: center;
}
.ndx-search-card .ndx-status {
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .ndx-search-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ndx-search-keyword {
    grid-column: 1/-1;
  }
  .ndx-search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .ndx-search-page {
    width: min(100% - 20px, 1440px);
  }
  .ndx-search-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .ndx-search-keyword,
  .ndx-search-date-note,
  .ndx-search-actions {
    grid-column: 1;
  }
  .ndx-search-grid {
    grid-template-columns: 1fr;
  }
  .ndx-search-summary {
    align-items: flex-start;
  }
  .ndx-pagination {
    flex-wrap: wrap;
  }
}
/* Task12 front page cards */
.ndx-home-list {
  width: min(1440px, calc(100vw - 48px));
  min-width: 0;
  margin: 0 0 36px 50%;
  transform: translateX(-50%);
}
.ndx-home-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.ndx-home-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 35, 60, 0.06);
}
.ndx-home-card__media {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, #dce7f5, #edf5ef);
  text-decoration: none;
}
.ndx-home-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.ndx-image-fit--contain {
  background: #edf1f5;
}
.ndx-image-fit--contain .ndx-home-card__image {
  object-fit: contain;
}
.ndx-home-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #536174;
  font-weight: 700;
}
.ndx-home-card__body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}
.ndx-home-card__type {
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #145f91;
  font-size: 0.78rem;
  font-weight: 700;
}
.ndx-home-card__title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.ndx-home-card__title a {
  color: #172033;
  text-decoration: none;
}
.ndx-home-card__title a:hover,
.ndx-home-card__title a:focus-visible {
  text-decoration: underline;
}
.ndx-home-card__meta {
  display: grid;
  gap: 7px;
  margin: 0;
  color: #5d6878;
  font-size: 0.82rem;
}
.ndx-home-card__meta div {
  display: grid;
  grid-template-columns: 5.5em minmax(0, 1fr);
  gap: 8px;
}
.ndx-home-card__meta dt {
  font-weight: 700;
}
.ndx-home-card__meta dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.ndx-home-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
  margin: 12px 0;
  color: #126b55;
  font-size: 0.82rem;
}
.ndx-home-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: auto;
  padding-top: 16px;
}
.ndx-home-card__detail,
.ndx-home-card__source {
  font-size: 0.9rem;
  font-weight: 700;
}
.ndx-home-card__source {
  color: #145f91;
}
.ndx-home-empty {
  margin: 0;
}
.ndx-home-more {
  text-align: right;
}
@media (max-width: 1100px) {
  .ndx-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .ndx-home-list {
    width: min(1440px, calc(100vw - 20px));
  }
  .ndx-home-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ndx-home-card__body {
    padding: 16px;
  }
}

.ndx-engagement-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.ndx-reaction.is-selected,
.ndx-home-card-activity .is-selected {
  border-color: #038eee;
  background: #eef8ff;
  color: #0269aa;
}
.ndx-engagement-count {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
}
.ndx-comments {
  margin-top: 24px;
}
.ndx-comment-list,
.ndx-comment-replies {
  display: grid;
  gap: 14px;
  list-style: none;
  padding: 0;
}
.ndx-comment-replies {
  margin: 14px 0 0 24px;
}
.ndx-comment {
  padding: 16px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #fff;
}
.ndx-comment-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: #5d6878;
}
.ndx-comment-form {
  margin-top: 12px;
}
.ndx-comment-form form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.ndx-comment-form label,
.ndx-comment-form textarea {
  display: block;
  width: 100%;
}
.ndx-comment-form textarea {
  min-height: 100px;
  padding: 10px;
  border: 1px solid #9ba8b8;
  border-radius: 8px;
}
.ndx-home-card-activity {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ndx-home-card-activity span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #f4f6f8;
  font-size: 0.78rem;
}
@media (max-width: 599px) {
  .ndx-comment-replies {
    margin-left: 12px;
  }
  .ndx-engagement-actions {
    align-items: stretch;
  }
  .ndx-engagement-actions > * {
    width: 100%;
  }
  .ndx-engagement-actions .ndx-button {
    width: 100%;
  }
}
/* Task27: approved DX information clip detail wireframe */
.ndx-detail-main { min-width: 0; }
.ndx-detail-main .ndx-breadcrumb { display: flex; min-width: 0; gap: 8px; align-items: center; margin: 0 0 18px; color: #56616d; font-size: 12px; }
.ndx-detail-main .ndx-breadcrumb > a,
.ndx-detail-main .ndx-breadcrumb > span:not([aria-current="page"]) { flex: 0 0 auto; white-space: nowrap; }
.ndx-detail-main .ndx-breadcrumb [aria-current="page"] { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ndx-clip-detail { overflow: hidden; padding: 0; border: 1px solid #b8b8b8; border-radius: 8px; background: #fff; }
.ndx-clip-detail .ndx-detail-media-block { position: relative; }
.ndx-clip-detail .ndx-detail-media-source { display: block; width: 100%; height: 100%; overflow: hidden; color: inherit; text-decoration: none; }
.ndx-clip-detail .ndx-detail-media-source:focus-visible,
.ndx-clip-detail .ndx-detail-title-source:focus-visible { outline: 3px solid #038eee; outline-offset: 3px; }
.ndx-clip-detail .ndx-detail-media-source > .ndx-media-image,
.ndx-clip-detail .ndx-detail-media-source > .ndx-media-placeholder { width: 100%; height: 100%; }
.ndx-clip-detail .ndx-media-section > .ndx-detail-media-source { aspect-ratio: 16/9; }
.ndx-clip-detail .ndx-video-shell { position: relative; }
.ndx-clip-detail .ndx-video-shell > .ndx-video-load { position: absolute; z-index: 2; top: 50%; left: 50%; width: auto; height: auto; transform: translate(-50%, -50%); }
.ndx-clip-detail .ndx-video-shell > .ndx-video-load .ndx-video-label { position: static; display: block; transform: none; white-space: nowrap; }
.ndx-clip-detail .ndx-media-section { margin: 0; padding: 0; border: 0; }
.ndx-clip-detail .ndx-media-section > .ndx-media-image,
.ndx-clip-detail .ndx-video-shell,
.ndx-clip-detail .ndx-media-placeholder { width: 100%; border-radius: 0; }
.ndx-clip-detail .ndx-detail-type { display: inline-flex; width: 64px; min-height: 23px; align-items: center; justify-content: center; margin: 18px 20px 0; padding: 4px 8px; border-radius: 6px; color: #fff; font-size: 11px; font-weight: 700; line-height: 15px; }
.ndx-clip-detail .ndx-card-type-article { background: #5968d8; }
.ndx-clip-detail .ndx-card-type-video { background: #e64133; }
.ndx-clip-detail .ndx-card-type-document { background: #159d68; }
.ndx-clip-detail .ndx-card-type-other { background: #d97706; }
.ndx-clip-detail .ndx-card-type-case { background: #038eee; }
.ndx-clip-detail .ndx-detail-header { padding: 0 2em; border-bottom: 0; }
.ndx-clip-detail .ndx-status { margin-top: 12px; }
.ndx-clip-detail .ndx-detail-taxonomy-row { position: relative; z-index: 3; display: flex; min-width: 0; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: -34px 0 11px; padding-left: 82px; }
.ndx-case-detail .ndx-case-detail-taxonomy-row { justify-content: flex-start; margin-top: 18px; padding-left: 0; }
.ndx-case-detail .ndx-case-detail-taxonomy-row ul.ndx-detail-tags { margin-left: auto; }
.ndx-case-detail .ndx-case-detail-taxonomy-row .ndx-detail-type { position: static; width: auto; min-width: 88px; flex: 0 0 auto; margin: 0; white-space: nowrap; }
.ndx-clip-detail .ndx-detail-categories { display: flex; min-width: 0; align-items: center; gap: 5px; color: #038eee; font-size: 14px; font-weight: 700; }
.ndx-clip-detail .ndx-detail-categories a { display: inline-flex; min-height: 44px; align-items: center; gap: 5px; color: inherit; text-decoration: none; }
.ndx-clip-detail .ndx-detail-categories a:hover { text-decoration: underline; }
.ndx-clip-detail .ndx-detail-categories a:focus-visible,
.ndx-clip-detail .ndx-detail-tags a:focus-visible,
.ndx-clip-detail .ndx-detail-source:focus-visible,
.ndx-clip-detail .ndx-detail-comment-count:focus-visible,
.ndx-clip-detail .ndx-detail-reaction:focus-visible,
.ndx-clip-detail .ndx-detail-comment-form summary:focus-visible { outline: 3px solid #038eee; outline-offset: 2px; }
.ndx-clip-detail .ndx-detail-categories svg,
.ndx-clip-detail .ndx-detail-meta svg,
.ndx-clip-detail .ndx-detail-reactions svg,
.ndx-clip-detail .ndx-detail-comments h2 svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentcolor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ndx-clip-detail ul.ndx-detail-tags { display: flex; min-width: 0; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ndx-clip-detail ul.ndx-detail-tags > li { flex: 0 0 auto; margin: 0; padding: 3px 5px; border: 1px solid #b8b8b8; border-radius: 6px; background: #e6f4fe; color: #038eee; font-size: 10px; line-height: 15px; white-space: nowrap; list-style: none; }
.ndx-clip-detail ul.ndx-detail-tags > li::before,
.ndx-clip-detail ul.ndx-detail-tags > li::marker { display: none; content: ""; }
.ndx-clip-detail ul.ndx-detail-tags > li > a { display: block; margin: -3px -5px; padding: 3px 5px; border-radius: 5px; color: inherit; text-decoration: none; transition: background-color .14s ease; }
.ndx-clip-detail ul.ndx-detail-tags > li > a:hover { background: #cceafb; }
.ndx-clip-detail h1 { margin: 18px 0 0; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.5; }
.ndx-clip-detail .ndx-detail-title-source { color: inherit; text-decoration: none; }
.ndx-clip-detail .ndx-detail-title-source:hover { color: #038eee; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ndx-clip-detail .ndx-detail-meta { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 18px; color: #56616d; font-size: 12px; }
.ndx-clip-detail .ndx-detail-dates,
.ndx-clip-detail .ndx-detail-source,
.ndx-clip-detail .ndx-detail-registrant,
.ndx-clip-detail .ndx-detail-reactions { display: inline-flex; min-height: 44px; align-items: center; }
.ndx-clip-detail .ndx-detail-dates { flex-wrap: wrap; gap: 5px 8px; }
.ndx-clip-detail .ndx-detail-source { gap: 5px; color: #292929; text-decoration: none; }
.ndx-clip-detail .ndx-detail-source:hover { text-decoration: underline; }
.ndx-clip-detail .ndx-detail-registrant { gap: 8px; }
.ndx-clip-detail .ndx-detail-registrant img,
.ndx-clip-detail .ndx-detail-avatar { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 50%; background: #616161; color: #fff; font-size: 10px; font-weight: 700; object-fit: cover; }
.ndx-clip-detail .ndx-detail-registrant > span:last-child { display: grid; gap: 1px; }
.ndx-clip-detail .ndx-detail-registrant small { color: #56616d; font-size: 10px; font-weight: 400; }
.ndx-clip-detail .ndx-detail-meta-actions { display: inline-flex; min-height: 44px; align-items: center; gap: 12px; margin-left: auto; }
.ndx-clip-detail .ndx-detail-reactions { gap: 2px; margin-left: 0; }
.ndx-clip-detail .ndx-detail-reaction-form { margin: 0; }
.ndx-clip-detail .ndx-detail-reaction,
.ndx-clip-detail .ndx-detail-comment-count { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; gap: 4px; padding: 4px 6px; border: 0; border-radius: 6px; background: transparent; color: #56616d; font: inherit; font-size: 12px; text-decoration: none; cursor: pointer; }
.ndx-clip-detail .ndx-detail-reaction:hover,
.ndx-clip-detail .ndx-detail-comment-count:hover { background: #e6f4fe; color: #038eee; }
.ndx-clip-detail .ndx-detail-reaction[aria-pressed="true"] { color: #038eee; }
.ndx-clip-detail .ndx-detail-reaction-form:nth-child(1) .ndx-detail-reaction[aria-pressed="true"] { color: #e34f86; }
.ndx-clip-detail .ndx-detail-reaction-form:nth-child(2) .ndx-detail-reaction[aria-pressed="true"] { color: #d99a00; }
.ndx-clip-detail .ndx-detail-comment-count[data-viewer-commented="true"] { color: #038eee; }
.ndx-clip-detail .ndx-detail-reaction[aria-pressed="true"] svg,
.ndx-clip-detail .ndx-detail-comment-count[data-viewer-commented="true"] svg { fill: currentcolor; }
.ndx-clip-detail .ndx-detail-source-details { margin-top: 12px; color: #56616d; font-size: 12px; }
.ndx-clip-detail .ndx-detail-source-details summary { width: fit-content; min-height: 44px; padding: 12px 0; color: #1565c0; cursor: pointer; }
.ndx-clip-detail .ndx-detail-source-details dl { display: grid; gap: 8px; margin: 0; padding: 14px; border: 1px solid #dbe3ef; border-radius: 4px; background: #fafafa; }
.ndx-clip-detail .ndx-detail-source-details dl div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; }
.ndx-clip-detail .ndx-detail-source-details dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.ndx-clip-detail .ndx-detail-copy,
.ndx-clip-detail .ndx-detail-comments,
.ndx-clip-detail .ndx-case-review-comments,
.ndx-clip-detail .ndx-owner-actions { margin: 0 20px; padding: 36px 0; border: 0; border-radius: 0; background: #fff; }
.ndx-clip-detail .ndx-owner-actions .ndx-actions { justify-content: center; }
.ndx-clip-detail .ndx-owner-actions .ndx-help { margin: .5em 0 0; text-align: center; }
.ndx-clip-detail .ndx-detail-copy > h2,
.ndx-clip-detail .ndx-detail-comments h2,
.ndx-clip-detail .ndx-case-review-comments h2,
.ndx-clip-detail .ndx-case-owner-actions h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; font-size: 20px; letter-spacing: 0.12em; }
.ndx-clip-detail .ndx-detail-copy > h2 img { display: block; width: 20px; height: 20px; }
.ndx-clip-detail .ndx-detail-copy > p { margin: 0 0 18px; font-size: 16px; line-height: 1.8; }
.ndx-clip-detail .ndx-detail-copy > .wp-block-list { margin: 0 0 22px; padding-left: 1.55em; }
.ndx-clip-detail .ndx-detail-copy > .wp-block-list > li { margin: 8px 0; padding-left: 2px; line-height: 1.8; }
.ndx-clip-detail .ndx-detail-copy > .wp-block-list > li::marker { color: currentcolor; }
.ndx-clip-detail .ndx-detail-comments h2 svg { width: 20px; height: 20px; }
.ndx-clip-detail .ndx-detail-comments > .ndx-empty { margin: 0; padding: 0; border: 0; background: transparent; }
.ndx-clip-detail .ndx-comment-list,
.ndx-clip-detail .ndx-comment-replies { gap: 12px; margin: 0; }
.ndx-clip-detail .ndx-comment { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 12px 0; border: 0; border-radius: 0; }
.ndx-clip-detail .ndx-comment-avatar img,
.ndx-clip-detail .ndx-comment-avatar span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #d9d9d9; color: #595959; font-size: 12px; font-weight: 700; object-fit: cover; }
.ndx-clip-detail .ndx-comment-content { min-width: 0; }
.ndx-clip-detail .ndx-comment-meta { justify-content: flex-start; gap: 8px; margin: 0 0 4px; font-size: 12px; }
.ndx-clip-detail .ndx-comment-text { margin: 0; font-size: 14px; line-height: 1.65; }
.ndx-clip-detail .ndx-comment-replies { grid-column: 1 / -1; margin: 0 0 0 48px; padding: 8px 12px; border: 1px dashed #b8b8b8; border-radius: 4px; background: transparent; }
.ndx-clip-detail .ndx-detail-comment-form { margin-top: 8px; }
.ndx-clip-detail .ndx-detail-comment-form > summary { width: fit-content; min-height: 44px; padding: 12px 0; color: #1565c0; font-size: 12px; cursor: pointer; }
.ndx-clip-detail .ndx-detail-comments > .ndx-detail-comment-form { margin-top: 22px; }
.ndx-clip-detail .ndx-detail-comments > .ndx-detail-comment-form > summary { color: #374151; font-size: 16px; }
.ndx-clip-detail .ndx-detail-comment-form form { gap: 8px; margin-top: 4px; }
.ndx-clip-detail .ndx-detail-comment-form textarea { min-height: 118px; padding: 13px 15px; border: 1px solid #9ca3af; border-radius: 4px; background: #fafafa; resize: vertical; }
.ndx-clip-detail .ndx-detail-comment-form textarea:focus-visible { outline: 3px solid #038eee; outline-offset: 2px; border-color: #038eee; }
.ndx-clip-detail .ndx-comment-counter { justify-self: end; color: #6b7280; font-size: 11px; }
.ndx-clip-detail .ndx-detail-comment-form .ndx-button-primary { width: 100%; min-height: 44px; border-radius: 4px; background: #038eee; color: #fff; }
.ndx-clip-detail [data-ndx-detail-form][aria-busy="true"] { opacity: 0.72; }
.ndx-clip-detail [data-ndx-detail-form] button:disabled { cursor: wait; }
@media (min-width: 960px) {
  .ndx-clip-detail .ndx-detail-copy,
  .ndx-clip-detail .ndx-detail-comments,
  .ndx-clip-detail .ndx-case-review-comments,
  .ndx-clip-detail .ndx-owner-actions { margin: 0 2rem; }
  .ndx-clip-detail .ndx-detail-header { padding: 0 2em; }
}
@media (max-width: 959px) {
  .ndx-clip-detail .ndx-detail-meta { align-items: flex-start; }
  .ndx-clip-detail .ndx-detail-meta-actions { width: 100%; justify-content: flex-end; margin-left: 0; }
  .ndx-clip-detail .ndx-detail-reactions { width: auto; }
}
@media (max-width: 599px) {
  .ndx-clip-detail .ndx-detail-type { position: absolute; z-index: 2; top: 12px; left: 12px; margin: 0; }
  .ndx-clip-detail .ndx-detail-header { padding: 18px 14px 20px; }
  .ndx-clip-detail .ndx-detail-taxonomy-row { display: grid; margin: 0; padding: 0; }
  .ndx-case-detail .ndx-case-detail-taxonomy-row ul.ndx-detail-tags { margin-left: 0; }
  .ndx-clip-detail h1 { margin-top: 14px; font-size: 20px; }
  .ndx-clip-detail .ndx-detail-meta { display: grid; grid-template-columns: 1fr; gap: 4px; }
  .ndx-clip-detail .ndx-detail-reactions { justify-content: flex-start; }
  .ndx-clip-detail .ndx-detail-source-details dl div { grid-template-columns: 1fr; gap: 2px; }
  .ndx-clip-detail .ndx-detail-copy,
  .ndx-clip-detail .ndx-detail-comments,
  .ndx-clip-detail .ndx-owner-actions { margin: 0 14px; padding: 28px 0; }
  .ndx-clip-detail .ndx-detail-copy > p { font-size: 15px; }
  .ndx-clip-detail .ndx-comment { grid-template-columns: 32px minmax(0, 1fr); gap: 9px; }
  .ndx-clip-detail .ndx-comment-avatar img,
  .ndx-clip-detail .ndx-comment-avatar span { width: 32px; height: 32px; }
  .ndx-clip-detail .ndx-comment-replies { margin-left: 18px; padding: 6px 8px; }
}
.ndx-sidebar-latest{margin:0 0 1.5rem;color:#292929}

.ndx-sidebar-latest__tabs{display:flex;align-items:center;gap:8px;margin:0 0 16px;padding:0;background:transparent}
.ndx-sidebar-latest__tab{height:36px;min-height:36px;padding:0;border:0;border-radius:18px;background:#f0f0f0;color:#292929;font-size:12px;font-weight:400;line-height:36px;white-space:nowrap;cursor:pointer}
.ndx-sidebar-latest__tab[data-ndx-sidebar-tab="all"]{width:64px}
.ndx-sidebar-latest__tab[data-ndx-sidebar-tab="ndx_clip"]{width:124px}
.ndx-sidebar-latest__tab[data-ndx-sidebar-tab="ndx_case"]{width:112px}
.ndx-sidebar-latest__tab[aria-selected="true"]{background:#292929;color:#fff;font-weight:700;box-shadow:none}
.ndx-sidebar-latest__tab:hover{background:#dedede}
.ndx-sidebar-latest__tab[aria-selected="true"]:hover{background:#171717}
.ndx-sidebar-latest__tab:focus-visible{outline:3px solid #038eee;outline-offset:2px}
.ndx-sidebar-latest__panel[hidden]{display:none}
.ndx-sidebar-latest__list{display:grid;gap:12px;margin:0;padding:0;list-style:none}
.ndx-sidebar-latest__item{margin:0;padding:0}
.ndx-sidebar-latest__link{display:grid;min-height:79px;grid-template-columns:112px minmax(0,1fr);align-items:center;gap:12px;color:#292929;text-decoration:none}
.ndx-sidebar-latest__link:hover .ndx-sidebar-latest__title{text-decoration:underline;text-underline-offset:2px}
.ndx-sidebar-latest__link:focus-visible{border-radius:4px;outline:3px solid #038eee;outline-offset:3px}
.ndx-sidebar-latest__thumbnail{display:block;width:112px;height:68px;border-radius:0;background:#e9eef1;object-fit:cover}
.ndx-sidebar-latest__thumbnail--empty{display:grid;place-items:center;background:linear-gradient(135deg,#dff4fb,#b7e4f3);color:#2789a9;font-size:16px;font-weight:800}
.ndx-sidebar-latest__body{display:flex;min-width:0;flex-direction:column;gap:5px}
.ndx-sidebar-latest__title{display:-webkit-box;overflow:hidden;font-size:14px;font-weight:700;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.ndx-sidebar-latest__meta{display:flex;align-items:center;color:#767676;font-size:11px;line-height:1.4;white-space:nowrap}
.ndx-sidebar-latest__empty{margin:0;padding:16px;border-radius:6px;background:#f6f7f7;color:#666;font-size:13px;line-height:1.6}
.ndx-sidebar-latest__count-note{margin:16px 0 0;color:#767676;font-size:11px;line-height:1.4}
@media (max-width:380px){.ndx-sidebar-latest__tabs{gap:6px}.ndx-sidebar-latest__tab[data-ndx-sidebar-tab="ndx_clip"]{width:118px}.ndx-sidebar-latest__tab[data-ndx-sidebar-tab="ndx_case"]{width:106px}}
/* Task30: manual clip blocks and protected related files */
.ndx-block-content {
  overflow-wrap: anywhere;
}
.ndx-block-content .wp-block-columns,
.ndx-block-content .swell-block-columns {
  max-width: 100%;
}
.ndx-block-content .alignwide,
.ndx-block-content .alignfull {
  width: auto;
  max-width: 100%;
  margin-right: 0;
  margin-left: 0;
}
.ndx-related-downloads ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ndx-related-downloads li {
  margin: 0;
  padding: 0;
}
.ndx-related-downloads a {
  display: flex;
  min-height: 48px;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border: 1px solid #b8c6d6;
  border-radius: 8px;
  background: #f8fafc;
  color: #1565c0;
  text-decoration: none;
}
.ndx-related-downloads a:hover {
  border-color: #038eee;
  background: #eef8ff;
}
.ndx-related-downloads a:focus-visible {
  outline: 3px solid #038eee;
  outline-offset: 2px;
}
.ndx-related-downloads a span {
  overflow-wrap: anywhere;
}
.ndx-related-downloads a small {
  flex: 0 0 auto;
  color: #5d6878;
}
@media (max-width: 599px) {
  .ndx-block-content .wp-block-columns,
  .ndx-block-content .swell-block-columns {
    display: grid;
    grid-template-columns: 1fr !important;
  }
  .ndx-related-downloads a {
    display: grid;
  }
}

/* Task37: internal DX case production-style detail */
.ndx-case-detail .ndx-case-sections{display:grid;grid-template-columns:1fr;gap:0}.ndx-case-detail .ndx-case-legacy-section{min-width:0;padding:0}.ndx-case-detail .ndx-case-block-content>:first-child,.ndx-case-detail .ndx-case-legacy-section:first-child>:first-child{margin-top:0}.ndx-case-detail .ndx-case-related-list{margin-top:20px}.ndx-case-detail .ndx-case-review-comments{padding:36px 0;border:0;border-radius:0;background:#fff}.ndx-case-detail .ndx-case-owner-actions h2{margin:0 0 20px;font-size:20px;letter-spacing:.12em}.ndx-case-detail .ndx-case-approval-form,.ndx-case-detail .ndx-case-return-form{margin-top:20px}
.ndx-case-detail .ndx-case-legacy-section h2{display:flex;align-items:center;gap:8px;margin:0 0 20px;font-size:20px;letter-spacing:.12em}
.ndx-case-detail .ndx-case-legacy-section p{margin:0 0 18px;font-size:16px;line-height:1.8}
.ndx-editor-content{min-width:0}
.post_content h2 { margin: 2em 0; }
.post_content :where(h2:not(.has-text-color):not(.is-style-section_ttl)) { color: var(--color_htag); }
.post_content :where(h2.is-style-section_ttl:not(.has-text-color)) { color: var(--ndx-color-sec-htag, var(--color_htag)); }
/* Task37: private case review comments aligned with detail sections */
.ndx-case-review-comments{box-sizing:border-box;margin:0 2rem!important;padding:36px 0;border:0;border-bottom:1px solid #e3e9f0;border-radius:0;background:#fff}
.ndx-case-review-comments h2{margin:0 0 20px;font-size:20px;letter-spacing:.12em}
.ndx-case-review-comments>.ndx-help,.ndx-case-review-comments>.ndx-muted{margin:0 0 12px}
.ndx-case-review-comments .ndx-comment-list{display:grid;gap:12px;margin:0;padding:0;list-style:none}
.ndx-case-review-comments .ndx-comment{display:block;padding:12px 0;border:0;border-radius:0}
.ndx-case-review-comments .ndx-comment-replies{display:grid;gap:8px;margin:8px 0 0 24px;padding:8px 12px;border:1px dashed #b8b8b8;border-radius:4px}
.ndx-case-review-comments .ndx-comment-form{margin-top:18px}
.ndx-case-review-comments .ndx-comment-form>summary{width:fit-content;min-height:44px;padding:12px 0;color:#374151;cursor:pointer}
.ndx-case-review-comments .ndx-comment-form form{display:grid;gap:8px;margin-top:4px}
.ndx-case-review-comments .ndx-comment-form textarea{box-sizing:border-box;width:100%;min-height:118px;padding:13px 15px;border:1px solid #9ca3af;border-radius:4px;background:#fafafa;resize:vertical}
.ndx-case-review-comments .ndx-comment-form textarea:focus-visible{outline:3px solid #038eee;outline-offset:2px;border-color:#038eee}
.ndx-case-review-comments .ndx-comment-form .ndx-button{width:100%;min-height:44px;border-radius:4px;background:#038eee;color:#fff}
@media (max-width:599px){.ndx-case-review-comments{margin:0 14px!important;padding:28px 0}}
