/* ācta resources: the forms rack and the filed tool forms.
   The index is one bond sheet that racks the blank forms, one ruled row per
   tool. A tool page is a printed form on a bond sheet, filed under every
   tool's folder tab (guide.css loads first on tool pages). Loads after
   marketing.css. */

/* ---------- Page ---------- */

.rs-page {
  width: var(--wrap);
  margin-inline: auto;
  padding: clamp(48px, 6vw, 88px) 0 clamp(72px, 8vw, 120px);
}

.rs-title {
  font-size: clamp(2.25rem, 1.3rem + 2.9vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.rs-lede {
  margin-top: 14px;
  max-width: 60ch;
  font-size: 1.1875rem;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- Index: the forms rack ---------- */

.rs-rack {
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(20px, 3vw, 40px);
  background: var(--bond);
  border: 1px solid var(--sheet-edge);
  border-radius: 2px;
  box-shadow: 0 2px 0 rgba(90, 70, 20, 0.08), 0 40px 80px -40px rgba(60, 45, 10, 0.5);
}

.rs-rack__head,
.rs-rack__row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  column-gap: 24px;
}
.rs-rack__head {
  padding-bottom: 8px;
  border-bottom: 3px double var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.rs-rack__row {
  position: relative;
  align-items: center;
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--bond-rule);
  transition: background-color 160ms var(--ease-out);
}
.rs-rack__row:hover { background: color-mix(in srgb, var(--manila) 16%, var(--bond)); }

.rs-rack__no {
  align-self: baseline;
  padding-left: 4px;
  font-family: var(--font-type);
  font-size: 0.875rem;
  color: var(--stamp);
  font-variant-numeric: tabular-nums;
}
.rs-rack__main { align-self: baseline; }

.rs-rack__title {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.016em;
  color: var(--ink);
  text-decoration: none;
  text-wrap: balance;
}
/* The whole row opens the tool. */
.rs-rack__title::after { content: ''; position: absolute; inset: 0; }
.rs-rack__title:focus-visible { outline: 0; }
.rs-rack__title:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 3px; }
.rs-rack__row:hover .rs-rack__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.rs-rack__sum {
  margin-top: 6px;
  max-width: 62ch;
  font-family: var(--font-doc);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* The button face of the row link. It is not a second link. */
.rs-rack__open {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  font-size: 0.9375rem;
  font-weight: 650;
  white-space: nowrap;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.rs-rack__row:hover .rs-rack__open { background: var(--ink); color: var(--bond); }

.rs-more { margin-top: 28px; }
.rs-more .rec-btn,
.rs-back { gap: 10px; }

/* ---------- Tool page ---------- */

.rs-back { min-height: 40px; padding: 0 14px; }
.rs-tool-title {
  margin-top: 24px;
  max-width: 22ch;
  font-size: clamp(2rem, 1.35rem + 1.9vw, 2.875rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

/* Room for the folder tabs on the sheet's top edge. */
.rs-filed { margin-top: clamp(40px, 4vw, 56px); padding-top: 42px; }
.rs-sheet { border-top-left-radius: 0; }

/* The disclosure that stands in for the tabs on narrow screens. */
.rs-contents { display: none; }
.rs-contents__toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  background: var(--bond);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.rs-contents__toggle::-webkit-details-marker { display: none; }
.rs-contents__where {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: var(--ink-2);
}
.rs-contents__chev { transition: transform 180ms var(--ease-out); }
.rs-contents[open] .rs-contents__chev { transform: rotate(180deg); }
.rs-contents__list {
  margin-top: 8px;
  padding: 8px 16px;
  background: var(--bond);
  border: 1px solid var(--sheet-edge);
  border-radius: 2px;
}
.rs-contents__list a {
  position: relative;
  display: block;
  padding: 11px 0 11px 16px;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--ink);
  text-decoration: none;
}
.rs-contents__list li + li a { border-top: 1px solid var(--bond-rule); }
.rs-contents__list a:hover { text-decoration: underline; }
.rs-contents__list a[aria-current='page'] { font-weight: 700; }
.rs-contents__list a[aria-current='page']::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 1.15em;
  width: 7px;
  height: 7px;
  background: var(--ink);
}

/* ---------- The printed form ---------- */

/* A tool's form sits straight on the sheet. Each fieldset is a form part:
   a caption column with the part's numeral and name, the fields at right. */
.rs-form { border-top: 3px double var(--ink); }

.rs-part {
  display: flow-root;
  margin: 0;
  padding: 26px 0 28px 256px;
  border: 0;
  border-bottom: 1px solid var(--bond-rule);
  min-width: 0;
}
.rs-part__legend {
  float: left;
  width: 224px;
  margin-left: -256px;
  padding: 0;
  font-size: 1.1875rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.rs-part__no {
  margin-right: 4px;
  font-family: var(--font-type);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.rs-part__body { max-width: 720px; }

.rs-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
  gap: 16px 20px;
  align-items: start;
}
.rs-grid--2 { --cols: 2; }
.rs-grid--3 { --cols: 3; }
.rs-grid + .rs-grid { margin-top: 16px; }
.rs-grid > .rec-field,
.rs-part__body > .rec-field { margin-bottom: 0; }
.rs-span-all { grid-column: 1 / -1; }

.rs-hint {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* Choices: radios and checkboxes in a ruled list. */
.rs-choices { display: grid; gap: 2px; }
.rs-choice {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  font-size: 1rem;
  line-height: 1.4;
  cursor: pointer;
}
.rs-choice input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--green);
}
.rs-choice input:disabled + span { color: var(--ink-3); }
.rs-choice input:disabled { cursor: not-allowed; }

.rec-input:disabled,
.rec-select:disabled { background: color-mix(in srgb, var(--bond-rule) 35%, #fff); color: var(--ink-3); cursor: not-allowed; }
textarea.rec-input { min-height: 104px; padding: 12px 14px; line-height: 1.5; resize: vertical; }

.rs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 28px;
}
.rs-actions .rec-btn { gap: 10px; }
.rec-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.rec-btn[aria-busy='true'] { cursor: progress; }

/* Notices inside the form: a list of the items to fix. */
.rs-errors { margin-top: 20px; margin-bottom: 0; }
.rs-errors ul { margin-top: 4px; padding-left: 0; list-style: none; font-weight: 500; }
.rs-errors li { position: relative; padding-left: 16px; }
.rs-errors li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: currentColor;
}
.rs-fail { margin-top: 10px; font-size: 0.875rem; font-weight: 600; color: var(--red); }

/* A summary item links to its field. */
.rs-errors a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.rs-errors a:hover { text-decoration-thickness: 2px; }

/* One field's error, under its label. Recording red is for input errors only
   (6.3:1 on bond). marketing.css already marks an invalid .rec-input. */
.rs-field-error {
  margin: 2px 0;
  font-family: var(--font-forms);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--red);
}
.rs-ap-group > .rs-field-error,
.rs-rc-question > .rs-field-error { margin: 0 0 8px; }
.rec-select[aria-invalid='true'] { border-color: var(--red); }

/* ---------- Result ---------- */

/* The result is filed on the same sheet, under a double rule. */
.rs-out { margin-top: 36px; scroll-margin-top: 112px; }
.rs-result {
  padding-top: 28px;
  border-top: 3px double var(--ink);
}
.rs-result > * + * { margin-top: 28px; }

.rs-result__title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.016em;
}

/* Status: words and a square, never color alone. Filled acknowledged green
   for met and carried, an open ink square for not met and failed. */
.rs-status-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.rs-status { padding: 20px 24px 22px 0; }
.rs-status + .rs-status { padding-left: 24px; border-left: 1px solid var(--bond-rule); }
.rs-status__head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3125rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.rs-mark {
  flex: none;
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
}
.rs-mark--done { background: var(--ack); border-color: var(--ack); }
.rs-mark--open { background: transparent; }
.rs-mark--due { background: transparent; border-color: var(--due); border-style: dashed; }
.rs-status__lead { margin-top: 8px; font-size: 0.9375rem; color: var(--ink-2); }
.rs-status__lead b { color: var(--ink); font-variant-numeric: tabular-nums; }
.rs-status__lines { margin-top: 8px; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }
.rs-status__lines li { position: relative; padding-left: 16px; }
.rs-status__lines li + li { margin-top: 4px; }
.rs-status__lines li::before {
  content: '';
  position: absolute;
  left: 1px;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--ink-2);
}

/* Caption inside the instrument. */
.rs-caption {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Text the visitor takes into their own record: serif, on an inset panel. */
.rs-doc {
  margin-top: 8px;
  padding: 18px 22px 20px;
  background: color-mix(in srgb, var(--manila) 12%, var(--bond));
  border: 1px solid var(--sheet-edge);
  border-radius: 2px;
  font-family: var(--font-doc);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  overflow-wrap: break-word;
}
.rs-doc-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; }
.rs-doc-actions .rec-btn { gap: 8px; }

/* ---------- Gate ---------- */

/* A routing slip laid on the sheet under the form. */
.rs-gate {
  max-width: 560px;
  margin-top: 40px;
  scroll-margin-top: 112px;
}
.rs-gate .rec-slip__clip { left: auto; right: 28px; }
/* The locked result: a blurred block of result lines, so the visitor sees
   that the result sits behind the form. */
.rs-gate__ghost {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  padding: 16px 18px 18px;
  border: 1px solid var(--bond-rule);
  border-radius: 2px;
  filter: blur(3px);
  opacity: 0.75;
  user-select: none;
  pointer-events: none;
}
.rs-gate__ghost span {
  height: 10px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--ink) 22%, var(--bond));
}
.rs-gate__ghost span:nth-child(1) { width: 58%; height: 18px; margin-bottom: 4px; background: color-mix(in srgb, var(--ink) 40%, var(--bond)); }
.rs-gate__ghost span:nth-child(2) { width: 100%; }
.rs-gate__ghost span:nth-child(3) { width: 92%; }
.rs-gate__ghost span:nth-child(4) { width: 76%; }
.rs-gate__title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.rs-gate__text { margin-top: 6px; margin-bottom: 20px; font-size: 0.9375rem; color: var(--ink-2); }
.rs-gate__text strong { color: var(--ink); }
.rs-gate .rec-slip__note strong { color: var(--ink); }

/* ---------- Under the form ---------- */

.rs-privacy {
  margin-top: 28px;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.rs-disclaimer { max-width: 68ch; }

.rs-help { margin-top: 40px; max-width: none; }
.rs-help > [data-tool-help] { max-width: 68ch; }
.rs-help h2 {
  margin: 2.1em 0 0;
  font-family: var(--font-forms);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.016em;
  text-wrap: balance;
}
.rs-help h2:first-child { margin-top: 1.1em; }
.rs-help h3 {
  margin: 1.6em 0 0;
  font-family: var(--font-forms);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
}
.rs-help p { margin-top: 0.75em; text-wrap: pretty; }
.rs-help h3 + p { margin-top: 0.4em; }
.rs-help ol,
.rs-help ul { margin-top: 0.85em; }
.rs-help li { position: relative; margin-top: 0.45em; }
.rs-help ol { counter-reset: step; }
.rs-help ol > li { counter-increment: step; padding-left: 2.1em; }
.rs-help ol > li::before {
  content: counter(step) '.';
  position: absolute;
  left: 0;
  top: 0.12em;
  font-family: var(--font-forms);
  font-weight: 800;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.rs-help ul > li { padding-left: 1.4em; }
.rs-help ul > li::before {
  content: '';
  position: absolute;
  left: 0.2em;
  top: 0.68em;
  width: 6px;
  height: 6px;
  background: var(--ink-2);
}
.rs-help a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rs-help a:hover { text-decoration-thickness: 2px; }

/* ---------- Tool: minutes record check ---------- */

.rs-rc-progress-text {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.rs-rc-progress { margin-top: 10px; height: 8px; border: 1px solid var(--ink); background: transparent; }
.rs-rc-progress__bar { height: 100%; background: var(--ink); }

/* Every question holds the height of the tallest one, so Back and Next stay put. */
.rs-rc-question { margin: 28px 0 0; padding: 0; border: 0; min-width: 0; min-height: 14rem; }
.rs-rc-question__text {
  padding: 0;
  margin-bottom: 14px;
  font-size: 1.1875rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.rs-rc-nav { justify-content: space-between; }

.rs-rc-score { margin-top: 10px; line-height: 1; }
.rs-rc-score__num {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.rs-rc-score__of { margin-left: 2px; font-size: 1.0625rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.rs-rc-gaps { margin-top: 8px; border-top: 1px solid var(--ink); }
.rs-rc-gap { padding: 16px 0 18px; border-bottom: 1px solid var(--bond-rule); }
.rs-rc-gap__fix { margin-top: 4px; font-family: var(--font-doc); font-size: 1.0625rem; line-height: 1.5; }
.rs-rc-gap__link { display: inline-block; margin-top: 8px; font-size: 0.9375rem; font-weight: 600; color: var(--ink); text-underline-offset: 3px; }


/* ---------- Tool: board minutes generator ---------- */


/* Attendance: add row and name chips. */
.rs-mg-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.rs-mg-names { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.rs-mg-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-left: 10px;
  border: 1px solid var(--sheet-edge);
  border-radius: 2px;
  font-size: 0.9375rem;
  color: var(--ink);
}
.rs-mg-name span { overflow-wrap: anywhere; }
.rs-mg-name__x {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.rs-mg-name__x:hover { color: var(--ink); }

/* Textareas share rec-input but need their own padding and height. */
.rs-mg-text { min-height: 96px; padding: 10px 14px; line-height: 1.45; resize: vertical; }

/* Repeating agenda item: a ruled sub-block. */
.rs-mg-item { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--bond-rule); }
.rs-mg-item__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.rs-mg-item__title {
  margin-right: auto;
  font-family: var(--font-forms);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
}
.rs-mg-sub { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--bond-rule); border-radius: 2px; }
.rs-mg-sub > .rec-field:last-child,
.rs-mg-sub > .rs-grid:last-child { margin-bottom: 0; }
.rs-mg-sub > .rec-label { display: block; margin-bottom: 8px; }
.rs-mg-sub > .rec-btn { margin-top: 4px; }
.rs-mg-votes { margin-top: 0; }
.rs-mg-action { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--bond-rule); }
.rs-mg-addbtn { margin-top: 20px; }
.rs-mg-warnings { margin: 0; padding: 0; list-style: none; }
.rs-mg-warnings li { position: relative; padding-left: 16px; }
.rs-mg-warnings li::before { content: ''; position: absolute; left: 1px; top: 0.6em; width: 6px; height: 6px; background: currentColor; }

/* Generated minutes: a recorded instrument, serif, flat. */
.rs-mg-sheet { padding: 24px 26px 28px; }
.rs-mg-doc { font-family: var(--font-doc); font-size: 1rem; line-height: 1.55; color: var(--ink); }
.rs-mg-doc p { margin: 0; }
.rs-mg-doc__head { text-align: center; padding-bottom: 14px; }
.rs-mg-doc__org { font-family: var(--font-forms); font-size: 1.625rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.015em; }
.rs-mg-doc__heading { margin-top: 4px; font-size: 1.125rem; }
.rs-mg-doc .rs-mg-draft {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 12px;
  border: 1px solid var(--ink);
  font-family: var(--font-forms);
  font-size: 0.875rem;
  font-weight: 700;
}
.rs-mg-meta { margin: 0; padding-bottom: 14px; font-size: 0.9375rem; }
.rs-mg-meta > div { display: flex; gap: 8px; }
.rs-mg-meta dt { width: 3.5rem; font-weight: 700; }
.rs-mg-meta dd { margin: 0; }
.rs-mg-sec { padding: 14px 0; border-top: 1px solid var(--bond-rule); }
.rs-mg-sec h3 {
  margin: 0 0 6px;
  font-family: var(--font-forms);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rs-mg-sec p + p { margin-top: 4px; }
.rs-mg-docitem + .rs-mg-docitem { margin-top: 12px; }
.rs-mg-indent { padding-left: 16px; margin-top: 4px; }
.rs-mg-list { margin: 0; padding: 0; list-style: none; }
.rs-mg-list li { position: relative; padding-left: 18px; }
.rs-mg-list li + li { margin-top: 4px; }
.rs-mg-list li::before { content: ''; position: absolute; left: 2px; top: 0.6em; width: 6px; height: 6px; background: var(--ink); }
.rs-mg-tablewrap { overflow-x: auto; }
.rs-mg-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; text-align: left; }
.rs-mg-table th, .rs-mg-table td { padding: 5px 8px; border: 1px solid var(--bond-rule); }
.rs-mg-table th { font-family: var(--font-forms); font-weight: 700; }
.rs-mg-doc .rs-mg-sign { margin-top: 28px; }
.rs-mg-doc .rs-mg-gap { margin-top: 14px; }

@media (max-width: 600px) {
  .rs-mg-sheet { padding: 18px 16px 22px; }
}

/* Print copy sits outside .rs-doc, so keep it plain black on white. */
@media print {
  .rs-mg-doc, .rs-mg-doc * { color: #000; }
  .rs-mg-sec { border-top-color: #000; }
  .rs-mg-table th, .rs-mg-table td { border-color: #000; }
  .rs-mg-list li::before { background: #000; }
}

/* ---------- Tool: decision log ---------- */

.rs-dl-tablewrap { margin-top: 18px; overflow-x: auto; }
.rs-dl-table { font-size: 0.875rem; }
.rs-dl-table th, .rs-dl-table td { vertical-align: top; overflow-wrap: break-word; }
.rs-dl-table th { white-space: nowrap; }
.rs-mg-doc .rs-dl-summary { margin-top: 14px; }

/* On narrow screens each decision becomes one block, so the page never scrolls sideways. */
@media screen and (max-width: 900px) {
  .rs-dl-table, .rs-dl-table tbody, .rs-dl-table tr, .rs-dl-table td { display: block; width: 100%; }
  .rs-dl-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .rs-dl-table tr { margin-top: 14px; border: 1px solid var(--bond-rule); }
  .rs-dl-table td { border: 0; border-bottom: 1px solid var(--bond-rule); padding: 6px 10px; }
  .rs-dl-table td:last-child { border-bottom: 0; }
  .rs-dl-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-forms);
    font-weight: 700;
    font-size: 0.8125rem;
  }
}

@media print {
  .rs-dl-table th, .rs-dl-table td { border-color: #000; }
}

/* ---------- Tool: AI note-taker policy builder ---------- */

.rs-ap-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.rs-ap-group + .rs-ap-group,
.rs-ap-group + .rec-field,
.rec-field + .rs-ap-group,
.rs-ap-after { margin-top: 28px; }
.rs-ap-group .rs-hint { margin-top: 8px; }
.rs-ap-q {
  padding: 0;
  margin-bottom: 6px;
  font-family: var(--font-forms);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}
.rs-ap-group .rs-choice + .rs-choice { border-top: 1px solid var(--bond-rule); }

.rs-ap-fixed {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-top: 28px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.rs-ap-fixed__mark { flex: none; width: 8px; height: 8px; background: var(--ink); }

/* The generated policy: a recorded instrument in serif document type. */
.rs-ap-policy { margin-top: 0; padding: 28px 32px 32px; font-size: 1.0625rem; }
.rs-ap-policy__title {
  font-family: var(--font-forms);
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.016em;
}
.rs-ap-policy__org {
  margin-top: 4px;
  font-family: var(--font-forms);
  font-size: 1.1875rem;
  font-weight: 700;
}
.rs-ap-policy__disclaimer { margin-top: 16px; font-size: 0.9375rem; font-style: italic; color: var(--ink-2); }
.rs-ap-policy__section { margin-top: 28px; }
.rs-ap-policy__section h3 {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-forms);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
}
.rs-ap-policy__clause { margin-top: 10px; line-height: 1.6; }
.rs-ap-policy__no {
  margin-right: 6px;
  font-family: var(--font-type);
  font-size: 0.9375rem;
  color: var(--stamp);
  font-variant-numeric: tabular-nums;
}
.rs-ap-policy__list { margin-top: 10px; border-top: 1px solid var(--bond-rule); }
.rs-ap-policy__list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--bond-rule);
}
.rs-ap-policy__box { flex: none; width: 12px; height: 12px; border: 1.5px solid var(--ink); }
.rs-ap-policy__adoption { margin-top: 28px; font-weight: 700; }

@media (max-width: 640px) {
  .rs-ap-policy { padding: 18px 16px 22px; }
}

/* ---------- Responsive ---------- */

/* The five tabs need about 900px. Below the header's own break they give way
   to the disclosure above the sheet. */
@media (max-width: 1060px) {
  .rs-contents { display: block; margin-top: 28px; }
  .rs-tabs { display: none; }
  .rs-filed { margin-top: 16px; padding-top: 0; }
  .rs-sheet { border-top-left-radius: 2px; }
}

@media (max-width: 900px) {
  .rs-part { padding: 22px 0 24px; }
  .rs-part__legend { float: none; width: auto; margin: 0 0 14px; }
}

@media (max-width: 640px) {
  .rs-rack__head { display: none; }
  .rs-rc-question { min-height: 16rem; }
  /* The current tool's name wraps under the label instead of being cut. */
  .rs-contents__toggle { grid-template-columns: minmax(0, 1fr) auto; padding-block: 10px; }
  .rs-contents__label { grid-column: 1; }
  .rs-contents__where { grid-column: 1; grid-row: 2; white-space: normal; }
  .rs-contents__chev { grid-column: 2; grid-row: 1 / span 2; }
  .rs-rack__row {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 12px;
    padding: 20px 0 22px;
  }
  .rs-rack__row:first-child { border-top: 3px double var(--ink); }
  .rs-rack__open { grid-column: 2; justify-self: start; margin-top: 14px; }
  .rs-rack { padding: 4px 16px 8px; }
  .rs-grid--2,
  .rs-grid--3 { --cols: 1; }
  .rs-status-pair { grid-template-columns: minmax(0, 1fr); }
  .rs-status { padding-right: 0; }
  .rs-status + .rs-status { padding-left: 0; border-left: 0; border-top: 1px solid var(--bond-rule); }
  .rs-actions .rec-btn { flex: 1 1 100%; }
  .rs-doc { padding: 14px 16px 16px; font-size: 1.0625rem; }
  .rs-gate { margin-top: 32px; }
}


@media print {
  .rs-back, .rs-contents, .rs-gate, .rs-actions, .rs-doc-actions { display: none; }
  .rs-rack { box-shadow: none; }
}
