/* Transparenz: the directory, her log, the decisions, who does what. The one accent is the open decisions' count. */
.tp { --tp-gutter: 40px; padding-top: 36px; }
.tp .page-head { margin-bottom: 18px; }
.tp .lead { text-wrap: pretty; }
.tp-open { align-self: flex-start; padding: 6px 10px 6px 12px; margin-top: 8px; cursor: pointer; transition: opacity var(--duration-quick); }
.tp-open:hover { opacity: .86; }
.tp-open .i { width: 13px; height: 13px; }

/* The jump, always in reach while the page scrolls. */
.tp-nav {
  position: sticky; top: 0; z-index: 5; margin: 0 calc(var(--tp-gutter) * -1); padding: 10px var(--tp-gutter);
  background: var(--surface-raised); border-bottom: 1.5px solid var(--line-soft);
}
.tp-nav .seg button { padding: 5px 14px; font-size: 13px; transition: background var(--duration-quick); }
.tp-nav .seg button:hover:not([aria-pressed="true"]) { background: var(--surface-sunken); }

.tp-sec { padding-top: 44px; scroll-margin-top: 48px; }
.tp-sec + .tp-sec { margin-top: 48px; border-top: 1.5px solid var(--line-soft); }
.tp-sec:last-child { min-height: calc(100vh - 64px); } /* a jump to the last section lands on its heading on any screen */
.tp-head { margin-bottom: 18px; display: flex; flex-direction: column; gap: 4px; }
.tp-head-row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; }
.tp-head-row > div:first-child { flex: 1 1 320px; display: flex; flex-direction: column; gap: 4px; }
.tp-sub-head { margin-top: 40px; }
.tp-skeleton { padding: 10px 0; }
.tp-sub { margin: 28px 0 10px; }
.tp-under { margin-top: 10px; }

/* A table framed like the deck's map: ink line, sunken head, soft lines inside. */
.tp-frame { border: 1.5px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.tp-access, .tp-roles { font-size: 13.5px; line-height: 1.4; }
.tp-access thead th, .tp-roles thead th {
  padding: 11px 14px; background: var(--surface-sunken); border-bottom: 1.5px solid var(--line); color: var(--ink);
}
.tp-access thead th + th, .tp-roles thead th + th { border-left: 1px solid var(--line-soft); }
.tp-access td, .tp-access tbody th { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.tp-roles td { padding: 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.tp-access td, .tp-roles td + td { border-left: 1px solid var(--line-soft); }
.tp-access tbody tr:last-child td, .tp-access tbody tr:last-child th, .tp-roles tbody tr:last-child td { border-bottom: 0; }
.tp-access tbody th {
  font: 700 14.5px/1.25 var(--font-display); letter-spacing: -.01em; text-transform: none; color: var(--ink); white-space: normal;
}
.tp-where { width: 13%; }
.tp-reads { width: 24%; }
.tp-access .tp-never { width: 20%; }
.tp-writes { width: 21%; }
.tp-where-in { display: flex; align-items: center; gap: 9px; }
.tp-where-in > span:last-child { min-width: 0; }
.tp-lines { display: flex; flex-direction: column; gap: 6px; }
.tp-lines li { display: flex; gap: 7px; align-items: flex-start; }
.tp-lines .i { margin-top: 2px; }
.tp-never .i { color: var(--ink-muted); }
.tp-note { display: block; margin-top: 7px; font-size: 12.5px; line-height: 1.35; }
.tp-where-it-runs { margin-top: 8px; font-size: 12.5px; }

/* The same rows where the table does not fit: closed, with what she needs at a glance. */
.tp-places { display: none; }
.tp-place + .tp-place { border-top: 1px solid var(--line-soft); }
.tp-place summary { display: grid; grid-template-columns: 32px minmax(0, 1fr) 15px; align-items: center; gap: 12px; padding: 11px 14px; cursor: pointer; list-style: none; }
.tp-place summary::-webkit-details-marker { display: none; }
.tp-place-top { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; }
.tp-place-head { flex: 1 1 120px; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tp-place-name { font: 700 14.5px/1.25 var(--font-display); letter-spacing: -.01em; }
.tp-place-body { display: flex; flex-direction: column; gap: 14px; padding: 4px 14px 16px 58px; font-size: 13.5px; line-height: 1.4; }
.tp-place-body h4 { margin: 0 0 7px; font-size: 10.5px; }
.tp-place[open] .tp-chev, .tp-topic[open] .tp-chev { transform: rotate(180deg); }

.tp-locked { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 24px; font-size: 13.5px; line-height: 1.4; }
.tp-locked li { display: flex; align-items: flex-start; gap: 8px; }
.tp-locked .i { margin-top: 2px; flex: none; color: var(--ink-muted); }
.tp-folds { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 32px; margin-top: 22px; align-items: start; }
.tp-folds .why { margin-bottom: 10px; padding-bottom: 2px; }
.tp-folds .why summary .i { transition: transform var(--duration-quick) var(--ease-out); }
.tp-folds .why[open] summary .i { transform: rotate(180deg); }
.tp-defs { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tp-defs dt { font-size: 13.5px; font-weight: 700; }
.tp-defs dd { margin: 1px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-muted); }

/* Her log. */
.tp-only { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; font-size: 14px; }
.tp-day + .tp-day { margin-top: 22px; }
.tp-day > .label { padding-bottom: 6px; border-bottom: 1.5px solid var(--line); }
.tp-older { margin-top: 16px; }
.tp-run { border-bottom: 1px solid var(--line-soft); }
.tp-run summary {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 15px; align-items: center; gap: 12px; padding: 11px 2px; cursor: pointer; list-style: none;
}
.tp-run summary::-webkit-details-marker { display: none; }
.tp-run summary:hover .tp-run-title { text-decoration: underline; text-underline-offset: 2px; }
.tp-run-body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tp-run-body .tag { align-self: flex-start; } /* "Beispiel" as wide as its word, not as the row */
.tp-run-title { font-size: 14.5px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.tp-run-chips { justify-content: flex-end; }
.tp-chev { transition: transform var(--duration-quick) var(--ease-out); color: var(--ink-muted); }
.tp-run[open] .tp-chev { transform: rotate(180deg); }
.tp-detail {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px 28px; margin: 2px 0 14px 44px; padding: 16px 18px;
  background: var(--surface); border: 1.5px solid var(--line-soft); border-radius: var(--radius-md); font-size: 13.5px; line-height: 1.4;
}
.tp-detail h4 { margin: 0 0 8px; font-size: 10.5px; }
.tp-detail .small { font-size: 12.5px; }
.tp-read { display: flex; flex-direction: column; gap: 7px; }
.tp-read li { display: flex; gap: 7px; align-items: flex-start; overflow-wrap: anywhere; }
.tp-read .i { margin-top: 2px; }
.tp-steps { margin-top: 14px; }

/* The decisions. */
.tp-filter { display: flex; flex-wrap: wrap; gap: 2px; }
.tp-filter .btn[aria-pressed="true"] { border-color: var(--line); background: var(--surface-raised); }
.tp-topic { border-bottom: 1px solid var(--line-soft); }
.tp-topic:first-of-type { border-top: 1.5px solid var(--line); }
.tp-topic > summary { display: flex; align-items: center; gap: 12px; padding: 12px 2px; cursor: pointer; list-style: none; }
.tp-topic > summary::-webkit-details-marker { display: none; }
.tp-topic > summary .label { flex: 0 1 auto; color: var(--ink); }
.tp-topic > summary .tp-chev { margin-left: auto; }
.tp-topic > summary:hover .label { text-decoration: underline; text-underline-offset: 2px; }
.tp-decisions { border-top: 1px solid var(--line-soft); }
.tp-decisions li:last-child { border-bottom: 0; }
.tp-dec {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: start; padding: 13px 2px; border-bottom: 1px solid var(--line-soft);
}
.tp-dec-main { min-width: 0; }
.tp-sentence { font-size: 14.5px; line-height: 1.4; }
.tp-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; }
.tp-who .tag { font-size: 9.5px; padding: 2px 7px; }
.tp-dec-acts { display: flex; gap: 6px; }
.tp-dec-acts .btn:not(.primary) { border-color: var(--line-soft); }
.tp-dec-acts .btn:not(.primary):hover:not(:disabled) { border-color: var(--line); background: var(--surface-raised); }
.tp-differ, .tp-dec-line { grid-column: 1 / -1; }
.tp-differ { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }

/* Who does what, what runs. */
.tp-roles { font-size: 14.5px; }
.tp-roles td, .tp-roles thead th { width: 50%; white-space: normal; }
.tp-state { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; font-size: 13.5px; line-height: 1.4; }
.tp-state .label, .tp-plan .label { margin-bottom: 10px; color: var(--ink); }
.tp-group-note { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.tp-plan { margin-top: 14px; font-size: 13.5px; line-height: 1.45; }
.tp-auto-lead { margin-bottom: 8px; }
.tp-auto li { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 6px 20px; align-items: baseline; padding: 11px 2px; border-bottom: 1px solid var(--line-soft); }
.tp-auto li:first-child { border-top: 1.5px solid var(--line); }
.tp-auto-name { font-size: 14px; font-weight: 700; letter-spacing: -.005em; }

@media (max-width: 1240px) {
  .tp-wide { display: none; }
  .tp-places { display: block; }
}
@media (max-width: 1100px) {
  .tp-state { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-state [data-group="laeuft"] { grid-row: span 2; }
  .tp-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tp-detail > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 1080px) {
  .tp { --tp-gutter: 28px; padding-top: 28px; }
}
@media (max-width: 820px) {
  .tp { --tp-gutter: 16px; padding-top: 22px; }
  .tp-sec { padding-top: 32px; }
  .tp-sec + .tp-sec { margin-top: 36px; }
  .tp-run summary { grid-template-columns: 32px minmax(0, 1fr) 15px; }
  .tp-run-chips { grid-column: 2; grid-row: 2; justify-content: flex-start; }
  .tp-run .tp-chev { grid-column: 3; grid-row: 1; }
  .tp-detail { grid-template-columns: minmax(0, 1fr); margin-left: 0; }
  .tp-auto li { grid-template-columns: minmax(0, 1fr) auto; }
  .tp-auto li .small { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 680px) {
  .tp-dec { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .tp-open { margin-top: 0; }
  .tp-nav .seg { display: flex; }
  .tp-nav .seg button { flex: 1 1 auto; padding: 5px 8px; font-size: 12.5px; }
  .tp-locked, .tp-state { grid-template-columns: minmax(0, 1fr); }
  .tp-place summary { padding: 11px 12px; gap: 10px; }
  .tp-place-body { padding-left: 12px; padding-right: 12px; }
  .tp-state [data-group="laeuft"] { grid-row: auto; }
  .tp-dec-acts { flex-wrap: wrap; }
  .tp-dec-acts .btn { flex: 1 1 auto; }
  .tp-roles td { padding: 11px 10px; font-size: 13.5px; }
  .tp-roles thead th { padding: 10px; }
}
@media (max-width: 340px) {
  .tp-nav .seg button { padding: 5px; font-size: 12px; }
}
