/* A conduct case's own work (ConductChargesComponent, ConductHearingsComponent, ConductSanctionsComponent, ConductCasesComponent in app/components; the sheets in app/views/conduct_*;
   docs/data_model/13-operational-domains.md section 16.1, "As built (D2)"). Built on the case-work sections of 62-case-work.css (`.case-work`, `.case-work-list`, `.case-work-entry`, the meta
   lines and a text read on request), so what is here is only what is new: the finding under a charge, its history, the people at a hearing, the groups of fields a kind of sanction takes, how a charge's code line and a hearing's people sit in the case page's one-row entry
   (68-case-page-layout.css), and the width of the sheet that adds a person to a hearing.

   Numbered 63, the number the simulation build reserved for this card. Tokens only and logical properties only (test/styles/tokens_test.rb, test/styles/components_test.rb), so it reads on
   the console in light and in dark and mirrors in a right-to-left language. It declares no token and decides no mode. Nothing sets a height, and everything that holds words may shrink and
   breaks a long word, so a language 40% longer never widens the page (WCAG 1.4.10). */

/* The add-charge choice is one select in a panel as wide as the case's facts: held to the width of a form field, not the panel's. */
.conduct-charges .tform > .field {
  max-inline-size: 30rem;
}

.conduct-incident-siblings {
  min-inline-size: 0;
  padding-block: 0.75rem;
  border-block-end: 1px solid var(--rule);
}
.conduct-incident-siblings__cases {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.conduct-incident-siblings__cases > li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-inline-size: 0;
  max-inline-size: 100%;
}
.conduct-incident-siblings__cases a {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--target-min);
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

/* A charge's code line is a sentence of its own, a line to itself: the case page's entry puts a dot after each quiet part so that parts which fit on a line are told apart, and a sentence that fills
   the line left its dot hanging at the end of it. */
.case-work.conduct-charges .case-work-entry > .conduct-charge-code.case-work-meta {
  flex: 1 1 100%;
}
.case-work.conduct-charges .case-work-entry > .conduct-charge-code.case-work-meta::after {
  content: none;
}

/* The finding in force under a charge: set in from the charge, as a team's reason is. */
.conduct-finding {
  display: grid;
  gap: 0.25rem;
  min-inline-size: 0;
  padding-inline-start: 0.75rem;
  border-inline-start: 2px solid var(--rule-strong);
}
.conduct-finding strong {
  font-weight: 650;
}

/* Earlier findings: closed until asked for, said in words ("One earlier finding"). The summary is a target at least 24 CSS px high (WCAG 2.5.8). */
.conduct-history {
  min-inline-size: 0;
}
.conduct-history > summary {
  min-block-size: 1.5rem;
  padding-block: 0.2rem;
  color: var(--fg2);
  font-size: var(--text-sm);
  cursor: pointer;
  overflow-wrap: anywhere;
}
.conduct-history-list,
.conduct-people {
  display: grid;
  gap: 0.5rem;
  min-inline-size: 0;
  margin: 0;
  margin-block-start: 0.25rem;
  padding: 0;
  list-style: none;
}
.conduct-person {
  display: grid;
  gap: 0.15rem;
  min-inline-size: 0;
}

/* An amount stays together, and wraps as a whole on a narrow screen. */
.conduct-amount {
  min-inline-size: 0;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

/* The sheet that adds a person to a hearing: the Directory search above its form fills the sheet's width, so the two cards' right edges line up (the search's cap of 44rem is for a search that stands alone). */
.conduct-participant-sheet .person-search {
  max-inline-size: none;
}

/* The fields one kind of sanction takes: a group with its legend, no box of its own. */
.conduct-kind-fields {
  display: grid;
  gap: var(--density-gap);
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.conduct-kind-fields > legend {
  padding: 0;
  margin-block-end: 0.25rem;
}


/* A hearing is more than one line, so its parts take a line each. The case page's entry is one wrapping row (68-case-page-layout.css), which suits a name, a few facts and a button and left a hearing's
   label, people and buttons running on after its facts: the people go under the label that names them, each with the end of their role at the end of their line, and the way to add one at the end of the
   entry's last. */
.conduct-hearings .case-work-entry > :is(.case-work-subheading, .conduct-people) {
  flex: 1 1 100%;
}
.conduct-hearings .conduct-people > .conduct-person {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-3);
}
.conduct-hearings .conduct-people > .conduct-person > .case-work-line {
  flex: 0 1 auto;
  justify-content: flex-start;
}
.conduct-hearings .conduct-people > .conduct-person > .case-work-inline-form {
  margin-inline-start: auto;
}

/* --- conduct:f1 --- */
/* The deadlines of a case (ConductDeadlinesComponent) are entries of the case page's own list (68-case-page-layout.css); a deadline's due day sits on one line with its label, and the extensions that moved it
   go under it, a line each, apart from the entry's facts. */
.conduct-deadlines .case-work-entry > :is(.case-work-subheading, .conduct-extensions, .conduct-deadline-due) {
  flex: 1 1 100%;
}
.conduct-deadlines .conduct-deadline-due {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-3);
  margin-block: 0;
}
.conduct-deadlines .conduct-deadline-label {
  color: var(--fg2);
  font-size: var(--text-sm);
}
.conduct-deadlines .conduct-extensions {
  display: grid;
  gap: var(--space-1);
  margin-block: 0;
  padding-inline-start: 0;
  list-style: none;
}
/* The sentence under a case on the "needs attention" list (ConductNeedsAttentionComponent) is the plain rule, a line of words that wraps. */
.conduct-needs-attention .conduct-attention-sentence {
  margin-block: 0;
  overflow-wrap: anywhere;
}
/* A case with more than one rule says each on its own line. */
.conduct-needs-attention .conduct-attention-sentences {
  display: grid;
  gap: var(--space-1);
  margin-block: 0;
  padding-inline-start: var(--space-4);
}
/* --- end conduct:f1 --- */

/* --- conduct:i4 --- */
/* The intake queue (ConductIntakeComponent): the incidents that look like another one, under the facts of an entry, a quiet list that wraps. */
.conduct-intake__duplicates-title {
  margin-block: 0 var(--space-1);
  color: var(--fg2);
  font-size: var(--text-sm);
}
.conduct-intake__duplicates {
  display: grid;
  gap: var(--space-1);
  margin: 0;
  padding-inline-start: var(--space-4);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}

/* The Clery counts (ConductCleryComponent): a card for each kind of violation, side by side where there is room, one under another on a phone. A withheld count is a word, not a number. */
.conduct-clery__cells {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--space-2);
  margin: 0;
}
.conduct-clery__cell {
  display: grid;
  gap: var(--space-1);
  min-inline-size: 0;
  padding-block: var(--space-3);
  padding-inline: var(--space-4);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  overflow-wrap: anywhere;
}
.conduct-clery__cell > dt {
  color: var(--fg2);
  font-size: var(--text-sm);
}
.conduct-clery__cell > dd {
  margin: 0;
  font-size: var(--text-lg);
  font-variant-numeric: tabular-nums;
}
.conduct-clery__cell[data-withheld] > dd {
  font-size: var(--text-md);
  color: var(--fg2);
}
/* --- end conduct:i4 --- */

/* --- conduct:r2 --- */
/* ConductCertificationComponent (packs/conduct/app/components/conduct_certification_component.rb): a dean's certification request's sheet, a stack of sections (the consent, what may be said, the signed answers,
   the letter). Tokens and logical properties only; everything that holds words may shrink and wrap, so a language 40% longer never widens the page (WCAG 1.4.10). */
.conduct-certification {
  display: grid;
  gap: var(--space-6);
  min-inline-size: 0;
}
.conduct-certification__section {
  display: grid;
  gap: var(--space-3);
  min-inline-size: 0;
}
.conduct-certification__title,
.conduct-certification__subtitle {
  margin-block: 0;
}
.conduct-certification__lede,
.conduct-certification__none {
  margin-block: 0;
  color: var(--fg2);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}
.conduct-certification__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-block: 0;
  overflow-wrap: anywhere;
}
.conduct-certification__statements,
.conduct-certification__records,
.conduct-certification__said {
  display: grid;
  gap: var(--space-2);
  margin-block: 0;
  padding-inline-start: var(--space-5);
  min-inline-size: 0;
}
.conduct-certification__statement,
.conduct-certification__record,
.conduct-certification__said > li {
  overflow-wrap: anywhere;
}
.conduct-certification__field {
  display: grid;
  gap: var(--space-1);
  min-inline-size: 0;
}
.conduct-certification__input {
  box-sizing: border-box;
  inline-size: 100%;
  min-block-size: var(--target-min);
  padding-block: var(--space-2);
  padding-inline: var(--space-3);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
  color: var(--fg1);
  font: inherit;
}
.conduct-certification__letter {
  resize: vertical;
}
/* --- end conduct:r2 --- */
/* --- conduct:r3 --- */
/* Reports (ConductReportsComponent, ConductReportsController#index): one section per office, its months, hazing and equity tables. A withheld count is a word, not a number. Tables scroll inside their own
   region on a phone (a focusable region, not the page), so the page itself never scrolls sideways. */
.conduct-reports-years {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
}
.conduct-reports-years__now {
  margin: 0;
  color: var(--fg2);
  font-variant-numeric: tabular-nums;
}
.conduct-reports__part {
  display: grid;
  gap: var(--space-2);
  margin-block-start: var(--space-4);
  min-inline-size: 0;
}
.conduct-reports__part > h3,
.conduct-reports__part > h4,
.conduct-reports__part > h5,
.conduct-reports__part > h6 {
  margin: 0;
  font-size: var(--text-md);
}
.conduct-reports__scroll {
  max-inline-size: 100%;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}
.conduct-reports__scroll:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.conduct-reports__table {
  inline-size: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}
.conduct-reports__table th,
.conduct-reports__table td {
  padding-block: var(--space-2);
  padding-inline: var(--space-3);
  text-align: start;
  vertical-align: top;
  border-block-end: 1px solid var(--rule);
  overflow-wrap: anywhere;
}
.conduct-reports__table thead th {
  color: var(--fg2);
  font-weight: 600;
}
.conduct-reports__table td[data-withheld] {
  color: var(--fg2);
  font-style: italic;
}
/* --- end conduct:r3 --- */

/* --- conduct:i5 --- */
/* The Title IX panel's links (ConductTitleIxComponent, a nav of the case's actions): each is a touch target of the full height (--target-min), and the links wrap, so a language 40% longer
   never widens the page (WCAG 2.5.8 and 2.5.5, 1.4.10). Logical properties only (test/styles/tokens_test.rb). */
.conduct-title-ix__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-block: 0;
}
.conduct-title-ix__action-link {
  display: inline-block;
  min-block-size: var(--target-min);
  padding-block: var(--space-2);
  overflow-wrap: anywhere;
}
/* The Title IX panel's mark-owed button (ConductTitleIxComponent) and the Responsible Employee notice sheet. Tokens and logical properties only; targets are --target-min (44px) on touch. */
.conduct-title-ix__owed-form {
  display: inline;
  margin: 0;
}
.conduct-title-ix__action-button {
  min-block-size: var(--target-min);
  min-inline-size: var(--target-min);
  padding-inline: 0.75em;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}
.conduct-title-ix__action-button:focus-visible {
  outline: 2px solid var(--focus, currentColor);
  outline-offset: 2px;
}
.conduct-title-ix-notice-sheet .form-cancel {
  min-block-size: var(--target-min);
  display: inline-flex;
  align-items: center;
}
/* The Title IX panel (ConductTitleIxComponent): its links are the actions a person can take on the case (the Responsible Employee
   notice, a consult, an amnesty), so each is a touch target of the full height (--target-min, 44px) and never a line of text 18px tall
   that the next link sits against (WCAG 2.5.8 and 2.5.5). The links wrap, so a language 40% longer never widens the page (WCAG 1.4.10). */
.conduct-title-ix__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-block: 0;
}
.conduct-title-ix__action-link {
  display: inline-block;
  min-block-size: var(--target-min);
  padding-block: var(--space-2);
  overflow-wrap: anywhere;
}
.conduct-title-ix__owed,
.conduct-title-ix__empty {
  margin-block: var(--space-2);
  overflow-wrap: anywhere;
}
/* The one-line prompt on an incident or case page that asks for the Responsible Employee notice (ConductTitleIxNoticePromptComponent). */
.conduct-title-ix-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin-block: var(--space-2);
}
.conduct-title-ix-prompt__question {
  overflow-wrap: anywhere;
}
.conduct-title-ix-prompt__link {
  display: inline-block;
  min-block-size: var(--target-min);
  padding-block: var(--space-2);
}
/* --- end conduct:i5 --- */
/* --- conduct:i1 --- */
.conduct-shared__office {
  display: grid;
  gap: var(--space-2);
  margin-block-start: var(--space-4);
  min-inline-size: 0;
}
.conduct-shared__office > h3,
.conduct-shared__office > h4,
.conduct-shared__office > h5,
.conduct-shared__office > h6 {
  margin: 0;
  font-size: var(--text-md);
}
.conduct-shared__list {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.conduct-shared__row {
  display: grid;
  gap: var(--space-1);
  justify-items: start;
  padding-block: var(--space-2);
  padding-inline: var(--space-3);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
}
.conduct-shared__name {
  font-weight: 600;
}
.conduct-shared__label,
.conduct-shared__due {
  margin: 0;
  color: var(--fg2);
}
.conduct-shared__mark {
  min-block-size: var(--target-min);
  min-inline-size: var(--target-min);
}
.conduct-shared__mark:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.conduct-shared__empty {
  color: var(--fg2);
}
/* --- end conduct:i1 --- */
/* --- conduct:i3 --- */
/* The Registrar's notices on a case (ConductRegistrarComponent) and the printable notice (conduct_registrar_notices/show). Tokens and logical properties only; targets are 44px on touch. */
.conduct-registrar__group {
  display: grid;
  gap: var(--space-2);
  margin-block-start: var(--space-3);
}
.conduct-registrar__subheading {
  margin: 0;
  font-size: var(--text-md);
}
.conduct-registrar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-block-start: var(--space-2);
}
.conduct-registrar__view {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--target-min);
  min-inline-size: var(--target-min);
  padding-inline: var(--space-2);
}
.conduct-registrar__view:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.conduct-registrar-notice {
  display: grid;
  gap: var(--space-3);
  max-inline-size: 70ch;
}
.conduct-registrar-notice__text {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.conduct-registrar-notice a {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--target-min);
}
@media print {
  .conduct-registrar-notice {
    max-inline-size: none;
  }
  .conduct-registrar-notice .case-source,
  .conduct-registrar-notice a {
    display: none;
  }
}
/* --- end conduct:i3 --- */

/* --- conduct:gx5 --- */
/* Legal requests about a conduct record (CND-R4; ConductLegalComponent, ConductLegalInventoryComponent, the legal request sheets) and the hazing-law record's list of what was recorded (CND-R5). Tokens and logical
   properties only; every link and button is a 44px target (`.conduct-page-link` is a page's own link, such as the way back, WCAG 2.5.8); a table scrolls inside its own focusable region on a phone, so the page itself never scrolls sideways. */
.conduct-legal__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin: 0;
}
.conduct-legal__link,
.conduct-legal__choice,
.conduct-legal__from,
.conduct-hazing__correct,
.conduct-page-link {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--target-min);
  min-inline-size: var(--target-min);
}
.conduct-legal__link:focus-visible,
.conduct-legal__choice:focus-visible,
.conduct-legal__from:focus-visible,
.conduct-hazing__correct:focus-visible,
.conduct-page-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.conduct-legal__choices {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.conduct-legal__note {
  margin: 0;
}
.conduct-legal__scroll {
  max-inline-size: 100%;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}
.conduct-legal__scroll:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.conduct-legal__table {
  inline-size: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}
.conduct-legal__table th,
.conduct-legal__table td {
  padding-block: var(--space-2);
  padding-inline: var(--space-3);
  text-align: start;
  vertical-align: top;
  border-block-end: 1px solid var(--rule);
  overflow-wrap: anywhere;
}
.conduct-legal__table thead th {
  color: var(--fg2);
  font-weight: 600;
}
.conduct-legal-sheet {
  display: grid;
  gap: var(--space-2);
  margin-block-end: var(--space-4);
  min-inline-size: 0;
}
.conduct-legal-sheet > h2 {
  margin: 0;
  font-size: var(--text-md);
}
.conduct-legal-sheet__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
}
.conduct-hazing__records {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.conduct-hazing__record {
  display: grid;
  gap: var(--space-1);
  padding-block: var(--space-2);
  padding-inline: var(--space-3);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow-wrap: anywhere;
}
.conduct-hazing__record p {
  margin: 0;
}
.conduct-hazing__record-meta {
  color: var(--fg2);
}
.conduct-hazing__pager {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  align-items: center;
}
.conduct-hazing__lines {
  display: grid;
  gap: var(--space-3);
  margin: 0;
}
.conduct-hazing__line {
  display: grid;
  gap: var(--space-1);
}
.conduct-hazing__line > dt {
  color: var(--fg2);
  font-size: var(--text-sm);
}
.conduct-hazing__line > dd {
  margin: 0;
  min-block-size: var(--space-6);
  border-block-end: 1px solid var(--fg2);
}
/* --- end conduct:gx5 --- */

/* --- conduct:h-final --- */
/* The year links and the action links of the hazing-law and reports pages (the final review: a link is a 44px target on touch, and 24px at the least anywhere). Tokens and logical properties only. */
.conduct-hazing-years,
.conduct-reports-years {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
}
.conduct-hazing-years p,
.conduct-reports-years p {
  margin: 0;
}
.conduct-hazing-actions ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin: 0;
  padding-inline-start: 0;
  list-style: none;
}
.conduct-hazing-years a,
.conduct-hazing-actions a,
.conduct-reports-years__link {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--target-min);
  padding-inline: var(--space-2);
}
/* --- end conduct:h-final --- */
