/* YPIA Core v0.11.15 — Compact Information Density & Content Cleanup
 * UI-only progressive enhancement. Removes routine/redundant explanatory copy while
 * preserving warnings, errors, dynamic state, helper/error text, data and actions.
 */

/* Global hierarchy: page category + title + action are sufficient in routine screens. */
.core-ui-v01115 .page-heading-copy > p:not(.eyebrow) {
  display: none !important;
}

.core-ui-v01115 .page-heading-compact,
.core-ui-v01115 .page-heading {
  margin-bottom: 18px;
  gap: 12px;
}

.core-ui-v01115 .page-heading h1 {
  margin-bottom: 0;
}

.core-ui-v01115 .page-heading .eyebrow {
  margin-bottom: 4px;
}

/* The brand is already visible in the sidebar. Keep the topbar focused on the current task. */
.core-ui-v01115 .topbar-title > span,
.core-ui-v01115 .workspace-badge {
  display: none !important;
}

/* Routine card/search explanations duplicate the visible title, control labels or count. */
.core-ui-v01115 .table-card-head > div > p,
.core-ui-v01115 .query-panel-head > div > p,
.core-ui-v01115 .task-editor-head > div > p,
.core-ui-v01115 .master-list-head > div > p,
.core-ui-v01115 .subject-editor-title-row > div > p,
.core-ui-v01115 .dashboard-secondary .section-head > div > p,
.core-ui-v01115 .profile-identity-card .section-head > div > p,
.core-ui-v01115 .profile-timeline-card .section-head > div > p,
.core-ui-v01115 .profile-events-card .section-head > div > p,
.core-ui-v01115 .account-directory .section-head > div > p,
.core-ui-v01115 .integration-list-card .section-head > div > p {
  display: none !important;
}

/* Search context is obvious from the field/heading; remove the extra kicker line. */
.core-ui-v01115 .query-panel-head .query-kicker {
  display: none !important;
}

/* Static teaching copy that repeats the form structure is removed; labels remain. */
.core-ui-v01115 .subject-form-guide {
  display: none !important;
}

/* Dashboard hero stays decision-first: title + actionable cards, without a second explanation. */
.core-ui-v01115 .task-hero > div > p:not(.eyebrow):not(.hero-kicker) {
  display: none !important;
}

/* Login: brand statement + form only. Error messages remain untouched. */
.core-ui-v01115 .login-card > p,
.core-ui-v01115 .login-visual > div > p:not(.eyebrow) {
  display: none !important;
}

/* Compact common headers after secondary copy is removed. */
.core-ui-v01115 .table-card-head,
.core-ui-v01115 .query-panel-head,
.core-ui-v01115 .task-editor-head,
.core-ui-v01115 .section-head {
  gap: 10px;
}

.core-ui-v01115 .table-card-head h2,
.core-ui-v01115 .query-panel-head h2,
.core-ui-v01115 .task-editor-head h2,
.core-ui-v01115 .section-head h2,
.core-ui-v01115 .section-head h3 {
  margin-bottom: 0;
}

/* Preserve information that is operationally important. */
.core-ui-v01115 .alert,
.core-ui-v01115 .notice,
.core-ui-v01115 .help,
.core-ui-v01115 .form-error,
.core-ui-v01115 .field-error,
.core-ui-v01115 .incident-reason,
.core-ui-v01115 .incident-evidence,
.core-ui-v01115 .request-error-message,
.core-ui-v01115 .task-callout-card p,
.core-ui-v01115 .issue-item p,
.core-ui-v01115 .detail-item p,
.core-ui-v01115 .pagination-shell p,
.core-ui-v01115 .empty-state p {
  display: revert;
}

@media (max-width: 900px) {
  .core-ui-v01115 .page-heading-compact,
  .core-ui-v01115 .page-heading {
    margin-bottom: 14px;
    gap: 10px;
  }

  .core-ui-v01115 .page-heading .eyebrow {
    font-size: 11px;
    letter-spacing: .08em;
  }

  .core-ui-v01115 .page-heading h1 {
    line-height: 1.15;
  }

  .core-ui-v01115 .topbar-title strong {
    line-height: 1.15;
  }
}
