/* The Title IX module's sheet (packs/title_ix): the workspace's matter cards, the matter page's header facts, phase stepper, sections, people and timeline, and the deadline phrase.
   Calm and spacious: one column on a phone with the stage and the next thing to do above the fold, the full path from a wider screen. T3 and T4 add their rules in their
   marked blocks at the end.

   Tokens only and logical properties only, so it reads on both surfaces, in light and in dark, and mirrors in a right-to-left language. Nothing pinned, no vh, and every
   word may wrap (WCAG 1.4.10). */

/* --- F --- */
.tix-deadline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-2);
  min-inline-size: 0;
}

.tix-header {
  display: grid;
  gap: var(--space-3);
  min-inline-size: 0;
}

.tix-matter,
.tix-workspace,
.tix-portal {
  gap: var(--space-5);
}

.tix-header__facts {
  padding-block-end: var(--space-2);
}

.tix-header__facts,
.tix-stepper__facts {
  display: grid;
  gap: var(--space-2) var(--space-5);
  margin: 0;
  min-inline-size: 0;
}

.tix-header__facts > div,
.tix-stepper__facts > div {
  display: grid;
  gap: var(--space-1);
  min-inline-size: 0;
}

.tix-header__facts dt,
.tix-stepper__facts dt,
.tix-stepper__eyebrow {
  margin: 0;
  color: var(--fg2);
  font-size: var(--text-xs);
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tix-header__facts dd,
.tix-stepper__facts dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-2);
  margin: 0;
  overflow-wrap: anywhere;
}

@media (min-width: 40rem) {
  .tix-header__facts {
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  }
}

.tix-stepper {
  display: grid;
  gap: var(--space-3);
  min-inline-size: 0;
}

.tix-stepper__count {
  margin: 0;
  color: var(--fg2);
  font-size: var(--text-sm);
}

/* On a phone the path is the count above; from a wider screen it is drawn whole. */
.tix-stepper__path {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 48rem) {
  .tix-stepper__count {
    display: none;
  }

  .tix-stepper__path {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
  }
}

.tix-stepper__step {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding-block: var(--space-1);
  padding-inline: var(--space-2) var(--space-3);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  color: var(--fg2);
  font-size: var(--text-sm);
  min-inline-size: 0;
}

.tix-stepper__step[data-state="done"] {
  color: var(--fg1);
  border-color: var(--rule-soft);
}

.tix-stepper__step[data-state="now"] {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 650;
}

.tix-stepper__mark {
  inline-size: 0.625rem;
  block-size: 0.625rem;
  border: 2px solid currentcolor;
  border-radius: 50%;
  flex: none;
}

.tix-stepper__step[data-state="done"] .tix-stepper__mark {
  background: currentcolor;
}

.tix-stepper__now {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 1px solid var(--rule);
  border-inline-start: 4px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  min-inline-size: 0;
}

.tix-stepper__stage {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  overflow-wrap: anywhere;
}

.tix-stepper__brief {
  margin: 0;
  color: var(--fg1);
  line-height: 1.5;
  max-inline-size: 70ch;
  overflow-wrap: anywhere;
}

.tix-stepper__facts {
  margin-block-start: var(--space-2);
}

@media (min-width: 40rem) {
  .tix-stepper__facts {
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  }
}

.tix-section {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--surface);
  min-inline-size: 0;
}

.tix-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-3);
  min-inline-size: 0;
}

.tix-section__title {
  margin: 0;
  font-size: var(--text-lg);
  overflow-wrap: anywhere;
}

.tix-section__lede {
  margin: 0;
  color: var(--fg2);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}

.tix-section__body {
  min-inline-size: 0;
}

.tix-people,
.tix-cards,
.tix-items {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
  min-inline-size: 0;
}

.tix-people__person {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-inline-size: 0;
}

.tix-people__text {
  display: grid;
  min-inline-size: 0;
}

.tix-people__name,
.tix-people__advisor {
  overflow-wrap: anywhere;
}

.tix-people__advisor {
  font-size: var(--text-sm);
}

.tix-people__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-block-start: var(--space-1);
}

.tix-people__end {
  display: contents;
}

.tix-people__role,
.tix-card__role,
.tix-items__when {
  color: var(--fg2);
  font-size: var(--text-sm);
}

.tix-card {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  min-inline-size: 0;
}

.tix-card[data-overdue="true"] {
  border-inline-start: 4px solid var(--bad);
}

.tix-card__link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-3);
  min-block-size: var(--target-min);
  color: var(--fg1);
  text-decoration: none;
  min-inline-size: 0;
}

.tix-card__link:hover .tix-card__type,
.tix-card__link:focus-visible .tix-card__type {
  text-decoration: underline;
}

.tix-card__type {
  font-weight: 650;
  overflow-wrap: anywhere;
}

.tix-card__people,
.tix-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  min-inline-size: 0;
}

.tix-card__person {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.tix-card__meta {
  color: var(--fg2);
  font-size: var(--text-sm);
}

.tix-items__item {
  display: grid;
  gap: var(--space-1);
  padding-block-end: var(--space-3);
  border-block-end: 1px solid var(--rule-soft);
  min-inline-size: 0;
}

.tix-items__kind {
  margin: 0;
  font-weight: 650;
}

.tix-items__when,
.tix-items__respond {
  margin: 0;
}

.tix-items__message {
  margin: 0;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
/* --- end F --- */

/* --- T3 --- */
/* The people deciding, the hearing, My assignments and the seat page. */
.tix-seats,
.tix-assignments__list,
.tix-allegations,
.tix-appeals {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
  min-inline-size: 0;
}

.tix-seats__seat,
.tix-assignment,
.tix-allegation {
  display: grid;
  gap: var(--space-2);
  padding-block-end: var(--space-4);
  border-block-end: 1px solid var(--rule-soft);
  min-inline-size: 0;
}

.tix-seats__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-3);
}

.tix-seats__name,
.tix-assignment__type,
.tix-allegation__title {
  margin: 0;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.tix-allegation__title {
  font-size: var(--text-md);
}

.tix-seats__role,
.tix-assignment__role,
.tix-seats__conflict,
.tix-objection__who,
.tix-hearing__earliest,
.tix-panel__hint {
  margin: 0;
  color: var(--fg2);
  font-size: var(--text-sm);
}

.tix-seats__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
}

.tix-seats--ended .tix-seats__seat {
  color: var(--fg2);
}

.tix-objection,
.tix-finding {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3);
  border-inline-start: 3px solid var(--rule);
  background: var(--surface-sunken);
  border-radius: var(--radius-sm);
  min-inline-size: 0;
}

.tix-objection p,
.tix-finding p,
.tix-allegation__account,
.tix-allegation__definition {
  margin: 0;
}

/* What the policy section prohibits, under its name: quieter than the account, still body size. */
.tix-allegation__definition,
.tix-facts__definition {
  color: var(--fg2);
  line-height: 1.5;
}

.tix-facts__definition {
  margin: var(--space-1) 0 0;
}

.tix-objection__text,
.tix-finding__rationale,
.tix-allegation__account,
.tix-letter {
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.tix-letter {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--surface-sunken);
  color: var(--fg1);
}

.tix-panel__subhead {
  margin: var(--space-3) 0 0;
  font-size: var(--text-md);
}

.tix-panel__empty {
  margin: 0;
  color: var(--fg2);
}

.tix-panel__share {
  display: grid;
  gap: var(--space-3);
  min-inline-size: 0;
}

.tix-assignment__link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
  min-block-size: var(--target-min);
  color: var(--fg1);
  text-decoration: none;
}

.tix-assignment__reference {
  color: var(--fg2);
  font-size: var(--text-sm);
  font-weight: 400;
}

.tix-assignment__link:hover .tix-assignment__type,
.tix-assignment__link:focus-visible .tix-assignment__type {
  text-decoration: underline;
}

.tix-assignment__facts,
.tix-hearing__facts,
.tix-allegation__facts {
  display: grid;
  gap: var(--space-2) var(--space-5);
  margin: 0;
  min-inline-size: 0;
}

.tix-assignment__facts > div,
.tix-hearing__facts > div,
.tix-allegation__facts > div {
  display: grid;
  gap: var(--space-1);
  min-inline-size: 0;
}

.tix-assignment__facts dt,
.tix-hearing__facts dt,
.tix-allegation__facts dt {
  color: var(--fg2);
  font-size: var(--text-xs);
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tix-assignment__facts dd,
.tix-hearing__facts dd,
.tix-allegation__facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (min-width: 40rem) {
  .tix-assignment__facts,
  .tix-hearing__facts,
  .tix-allegation__facts {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  }
}
/* The seat page: its intros at body size and full contrast (they carry the rules), the jump bar, the duties and the sanction kinds. */
.tix-seat .tix-section__lede {
  color: var(--fg1);
  font-size: var(--text-md);
}

.tix-jump__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tix-jump__link {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--target-min);
}

.tix-duties,
.tix-rule__list,
.tix-files {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding-inline-start: var(--space-5);
  min-inline-size: 0;
}

.tix-duties li,
.tix-rule__list li,
.tix-files li {
  list-style: disc;
  overflow-wrap: anywhere;
}

.tix-seat .tix-people + .tix-panel__hint {
  margin-block-start: var(--space-3);
}

#tix-sexual-history p {
  margin: 0 0 var(--space-2);
}

#tix-sexual-history .tix-rule__list {
  margin-block-end: var(--space-2);
}

.tix-conflict-form {
  margin-block-start: var(--space-4);
}

.tix-kinds {
  display: grid;
  gap: var(--space-3);
  margin: 0;
}

.tix-kinds dt {
  font-weight: 650;
}

.tix-kinds dd {
  margin: 0;
  color: var(--fg2);
}
/* --- end T3 --- */

/* --- T4 --- */
/* The party portal and the appellate officer's pages: what is yours to do first, each item a card of its own with its response form; the path as a short list that
   wraps on a phone; rights and resources as plain lists. */
.tix-portal__quiet {
  margin: 0;
  color: var(--fg2);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.tix-todo,
.tix-portal-path,
.tix-rights {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

.tix-todo,
.tix-portal-path {
  list-style: none;
}

.tix-todo__item {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--rule);
  border-inline-start: 4px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  min-inline-size: 0;
}

/* From a wider screen the item's one button keeps its own width; on a phone it spans the card, an easy target. */
@media (min-width: 40rem) {
  .tix-todo__item > a {
    justify-self: start;
  }
}

.tix-todo__what {
  margin: 0;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.tix-todo__due,
.tix-todo__note {
  margin: 0;
  overflow-wrap: anywhere;
}

.tix-todo__note {
  color: var(--fg2);
  font-size: var(--text-sm);
}

.tix-portal-path__count,
.tix-portal-path__next {
  margin: 0;
  color: var(--fg2);
  font-size: var(--text-sm);
}

.tix-portal-path__now {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-inline-start: 4px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  min-inline-size: 0;
}

.tix-portal-path {
  gap: var(--space-1);
}

.tix-portal-path__step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--fg2);
  font-size: var(--text-sm);
  min-inline-size: 0;
}

.tix-portal-path__step[data-state="done"] {
  color: var(--fg1);
}

.tix-portal-path__step[data-state="done"] .tix-stepper__mark {
  background: currentcolor;
}

.tix-portal-path__step[data-state="now"] {
  color: var(--accent-text);
  font-weight: 650;
}

.tix-rights {
  gap: var(--space-2);
  padding-inline-start: var(--space-5);
  line-height: 1.5;
  list-style: disc;
}

.tix-rights li {
  display: list-item;
  overflow-wrap: anywhere;
}

/* A party's section says one thing after another: a little room between each. */
.tix-portal .tix-section__body {
  display: grid;
  gap: var(--space-3);
}

.tix-portal .tix-section__body > p {
  margin: 0;
}

/* The current step is filled and ringed, so it is told from a step to come by its shape, not by color alone. */
.tix-portal-path__step[data-state="now"] .tix-stepper__mark {
  inline-size: 0.875rem;
  block-size: 0.875rem;
  background: currentcolor;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px currentcolor;
  margin-inline: 2px;
}

.tix-portal__intro {
  display: grid;
  gap: var(--space-2);
  min-inline-size: 0;
}

.tix-portal__type {
  margin: 0;
  color: var(--fg2);
  font-size: var(--text-sm);
}

.tix-portal__jumps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: 0;
}

.tix-portal__jumps a {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--target-min);
  font-weight: 650;
}

.tix-portal__layout,
.tix-portal__main,
.tix-portal__aside,
.tix-portal__pair {
  display: grid;
  gap: var(--space-5);
  align-items: start;
  min-inline-size: 0;
}

/* From a laptop's width the help (the office, measures, advisor, rights, resources) sits beside what to do and where the matter is. */
@media (min-width: 64rem) {
  .tix-portal__layout {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
  }

  .tix-portal__pair {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.tix-quote {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3);
  border-inline-start: 3px solid var(--rule-strong);
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
  min-inline-size: 0;
}

.tix-quote__label {
  margin: 0;
  color: var(--fg2);
  font-size: var(--text-sm);
  font-weight: 650;
}

.tix-quote__text {
  margin: 0;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.tix-change {
  display: grid;
  gap: var(--space-2);
  min-inline-size: 0;
}

.tix-change > summary {
  display: flex;
  align-items: center;
  min-block-size: var(--target-min);
  color: var(--accent-text);
  font-weight: 650;
  cursor: pointer;
}

.tix-facts {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  min-inline-size: 0;
}

.tix-facts > div {
  display: grid;
  gap: 0;
  min-inline-size: 0;
}

.tix-facts dt {
  color: var(--fg2);
  font-size: var(--text-sm);
}

.tix-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.tix-facts a {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--target-min);
}

.tix-items__open {
  margin: 0;
}

.tix-items__open a {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--target-min);
  font-weight: 650;
}

/* A link on a line of its own (the record, back to the list, the message a to-do is about) is a target to hit, not a word in a sentence (WCAG 2.5.8). */
.tix-link-line a {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--target-min);
}

.tix-items__item:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.tix-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  color: var(--fg2);
  font-size: var(--text-sm);
  min-inline-size: 0;
}

.tix-card__chevron {
  inline-size: 0.5rem;
  block-size: 0.5rem;
  border-block-start: 2px solid currentcolor;
  border-inline-end: 2px solid currentcolor;
  transform: rotate(45deg);
  flex: none;
}

[dir="rtl"] .tix-card__chevron {
  transform: rotate(-135deg);
}

/* A party's card: the name and reference beside the chevron, which stays at the far edge on a phone. */
.tix-card--mine .tix-card__link {
  flex-wrap: nowrap;
}

.tix-card__heading {
  display: grid;
  gap: var(--space-1);
  flex: 1;
  min-inline-size: 0;
}

.tix-card--mine .tix-card__name {
  flex-basis: auto;
}

.tix-card__reference {
  color: var(--fg2);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}

.tix-items__document {
  margin: 0;
  line-height: 1.5;
  color: var(--fg2);
  font-size: var(--text-sm);
}

.tix-ground__name,
.tix-ground__hint {
  display: block;
}

.tix-ground__hint {
  color: var(--fg2);
  font-size: var(--text-sm);
  font-weight: 400;
}
/* --- end T4 --- */

/* The note over a form whose unsent words were kept in this tab (title-ix--unsent). */
.tix-kept__callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}

.tix-kept__callout p {
  margin: 0;
}
