/* The trust page (/trust) and the page for IT teams (/it). Owner: 3-11. Logical properties only, so both read
   right to left too. Colours come from the theme variables (style.css, dark.css), so both themes hold; the few
   fixed tints have their dark values at the end. */
.tr h3 { font-size: 16px; margin-block: 22px 8px; }
.tr code, .tr .tr-menu { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 13px;
  unicode-bidi: isolate; direction: ltr; }
.tr code { background: var(--shade); border-radius: 6px; padding-block: 1px; padding-inline: 6px; color: var(--ink); }

/* what it keeps: a tick or a cross before each line */
.tr-keep { list-style: none; padding-inline-start: 0; }
.tr-keep li { position: relative; padding-inline-start: 30px; }
.tr-keep li::before { position: absolute; inset-inline-start: 0; inset-block-start: 2px; width: 20px; height: 20px;
  border-radius: 999px; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.tr-keep .tr-yes::before { content: "\2713"; background: var(--ok-bg); color: var(--ok); }
.tr-keep .tr-no::before { content: "\2715"; background: var(--bad-bg); color: var(--bad); }

/* how it is held: pastel cards */
.tr-cards { list-style: none; padding-inline-start: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px; }
.tr-cards li { margin: 0; padding-block: 14px; padding-inline: 16px; border-radius: 14px; background: var(--trc-1);
  border: 1px solid var(--line); font-size: 14.5px; line-height: 1.55; }
.tr-cards li:nth-child(3n+2) { background: var(--trc-2); }
.tr-cards li:nth-child(3n) { background: var(--trc-3); }
.tr-cards li + li { margin-block-start: 0; }

/* documents and policies: a row of pills */
.tr-links, .tr-chips { list-style: none; padding-inline-start: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tr-links li + li, .tr-chips li + li { margin-block-start: 0; }
.tr-links a, .tr-chips li { display: inline-block; padding-block: 6px; padding-inline: 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--page); color: var(--ink); text-decoration: none; font-size: 14px; }
.tr-links a:hover { background: var(--shade); }
.tr-links a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* facts: label and value */
.tr-facts { display: grid; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tr-facts > div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 12px; padding-block: 10px;
  padding-inline: 16px; }
.tr-facts > div + div { border-block-start: 1px solid var(--line); }
.tr-facts dt { color: var(--faint); font-size: 14px; }
.tr-facts dd { margin: 0; color: var(--ink); }

/* permissions */
.tr-scroll { overflow-x: auto; }
.tr-perms { inline-size: 100%; border-collapse: collapse; font-size: 14px; }
.tr-perms th { text-align: start; color: var(--faint); font-weight: 500; padding-block: 6px; padding-inline: 8px;
  border-block-end: 1px solid var(--line); }
.tr-perms td { vertical-align: top; padding-block: 10px; padding-inline: 8px; border-block-end: 1px solid var(--line);
  color: var(--body); line-height: 1.55; }
.tr-perms td:first-child { max-inline-size: 260px; overflow-wrap: anywhere; }
.tr-k { display: inline-block; padding-block: 2px; padding-inline: 10px; border-radius: 999px; font-size: 12.5px;
  font-weight: 500; white-space: nowrap; }
.tr-k.r { background: var(--blue-bg); color: var(--blue); }
.tr-k.w { background: var(--warn-bg); color: var(--warn); }
.tr-k.s { background: var(--shade); color: var(--body); }
.tr-vendor { margin-block-start: 18px; }

/* approve and remove: two cards side by side, numbered steps */
.tr-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.tr-card { border: 1px solid var(--line); border-radius: 16px; padding-block: 4px 12px; padding-inline: 18px;
  background: var(--page); }
.tr-steps { padding-inline-start: 20px; }
.tr-steps li { font-size: 14.5px; }
.tr-menu { display: inline-block; margin-block-start: 4px; padding-block: 1px; padding-inline: 8px; border-radius: 6px;
  background: var(--shade); color: var(--ink); font-size: 12.5px; }

/* the note to forward */
.tr-note { margin: 0; padding-block: 6px; padding-inline: 20px; border-radius: 14px; background: var(--trc-1);
  border: 1px solid var(--line); }
.tr-want { font-size: 17px; color: var(--ink); }

:root { --trc-1: #EEF5F1; --trc-2: #EEF3FA; --trc-3: #F6F3EC; }
:root[data-theme="dark"] { --trc-1: #13221B; --trc-2: #131D2A; --trc-3: #221E16; }

@media (max-width: 640px) {
  .tr-facts > div { grid-template-columns: 1fr; gap: 2px; }
}
