.arc--telling {
    max-width: 1600px;
}

.tl-bar {
    position: sticky;
    top: 70px;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 22px;
    padding: 10px 16px;
    background: rgba(18, 18, 19, 0.94);
    border: 1px solid var(--doc-line);
    backdrop-filter: blur(4px);
}

.tl-bar__back {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--doc-muted) !important;
}

.tl-bar__back:hover {
    color: var(--doc-accent) !important;
}

.tl-bar__sep {
    width: 1px;
    height: 22px;
    background: var(--doc-line);
}

.tl-bar__title {
    min-width: 0;
    overflow: hidden;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #fff;
}

.tl-bar__meta {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--doc-muted);
}

.tl-bar__actions {
    position: relative;
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.tl-bar__progress {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: #c22a35;
    transform-origin: left;
    transform: scaleX(var(--read, 0));
}

.tl-toc {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 5;
    width: min(340px, 86vw);
    max-height: 60vh;
    overflow-y: auto;
    padding: 8px;
    background: #18181a;
    border: 1px solid var(--doc-line);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.tl-toc a {
    display: block;
    padding: 7px 10px;
    font-size: 0.86rem;
    color: var(--doc-text) !important;
}

.tl-toc a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.tl-toc a[data-level="3"] {
    padding-left: 24px;
}

.tl-toc a[data-level="4"] {
    padding-left: 38px;
    font-size: 0.8rem;
}

.tl-titlehead {
    margin: 0 auto 20px;
    max-width: var(--tl-stage, 1240px);
}

.tl-titlehead__kicker {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--doc-muted);
}

.tl-titlehead__title {
    margin: 6px 0 10px;
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
    font-weight: 800;
    line-height: 1.14;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.55);
    text-wrap: balance;
}

.tl-stage {
    margin: 0 auto;
    max-width: var(--tl-stage, 1240px);
}

.tl-stage--narrow {
    --tl-stage: 860px;
}

.tl-stage--wide {
    --tl-stage: 1240px;
}

.tl-stage--full {
    --tl-stage: 1600px;
}

.tl-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    max-width: var(--tl-stage, 1240px);
    margin: 22px auto 0;
    align-items: start;
}

.tl-reviews {
    max-width: var(--tl-stage, 1240px);
    margin: 22px auto 0;
}

.tl {
    --tl-bg: #fff;
    --tl-text: #333;
    --tl-muted: #6b6b6b;
    --tl-head: #1a1a1a;
    --tl-accent: #901;
    --tl-link: #b01;
    --tl-line: #c9c9c9;
    --tl-box: #f4f4f4;
    --tl-box-line: #999;
    --tl-font: Verdana, Geneva, Tahoma, sans-serif;
    --tl-head-font: var(--tl-font);
    --tl-mono: 'Courier Prime', 'Courier New', monospace;
    --tl-hand: 'Caveat', cursive;
    --tl-base: 15px;
    --tl-scale: 1;

    position: relative;
    padding: 44px clamp(18px, 5vw, 70px) 48px;
    background: var(--tl-bg);
    color: var(--tl-text);
    font-family: var(--tl-font);
    font-size: calc(var(--tl-base) * var(--tl-scale));
    line-height: 1.75;
    overflow-wrap: break-word;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.55);
}

.tl::after {
    content: "";
    display: table;
    clear: both;
}

.tl[data-size="s"] {
    --tl-scale: 0.9;
}

.tl[data-size="l"] {
    --tl-scale: 1.15;
}

.tl[data-size="xl"] {
    --tl-scale: 1.3;
}

.tl-theme-foundation {
    border-top: 6px solid #901;
}

.tl-theme-document {
    --tl-bg: #f1ede4;
    --tl-text: #1d1b18;
    --tl-muted: #6d675d;
    --tl-head: #14110d;
    --tl-accent: #7d0817;
    --tl-link: #7d0817;
    --tl-line: #cfc7b6;
    --tl-box: #e8e2d4;
    --tl-box-line: #b9b2a3;
    --tl-font: 'PT Serif', Georgia, serif;
    --tl-base: 16.5px;
    border-top: 8px solid #7d0817;
}

.tl-theme-night {
    --tl-bg: #1b1b1d;
    --tl-text: #d2d2d2;
    --tl-muted: #8f9599;
    --tl-head: #f0f0f0;
    --tl-accent: #d0566a;
    --tl-link: #e07a8a;
    --tl-line: #3c3c41;
    --tl-box: #242428;
    --tl-box-line: #55555c;
    border-top: 6px solid #9a0712;
}

.tl-theme-site {
    --tl-bg: rgba(18, 18, 19, 0.82);
    --tl-text: #dcdcdc;
    --tl-muted: #8f9599;
    --tl-head: #f2f2f2;
    --tl-accent: #d4a76a;
    --tl-link: #d4a76a;
    --tl-line: rgba(120, 120, 124, 0.28);
    --tl-box: rgba(0, 0, 0, 0.3);
    --tl-box-line: rgba(120, 120, 124, 0.4);
    --tl-font: 'Manrope', 'Segoe UI', sans-serif;
    --tl-head-font: 'Share Tech Mono', monospace;
    --tl-base: 16px;
    border: 1px solid var(--tl-line);
    backdrop-filter: blur(3px);
}

.tl-theme-terminal {
    --tl-bg: #0b0f0b;
    --tl-text: #a6d9a0;
    --tl-muted: #5f8a5a;
    --tl-head: #d8f5d2;
    --tl-accent: #e3c341;
    --tl-link: #e3c341;
    --tl-line: #1f3a22;
    --tl-box: #101a11;
    --tl-box-line: #2e5a32;
    --tl-font: 'Share Tech Mono', 'Courier New', monospace;
    --tl-base: 16px;
    border: 1px solid #1f3a22;
    text-shadow: 0 0 6px rgba(120, 220, 120, 0.18);
}

.tl-theme-diary {
    --tl-bg: #f4efe1;
    --tl-text: #2a2a35;
    --tl-muted: #6b6a74;
    --tl-head: #1f2e5a;
    --tl-accent: #2f4b8a;
    --tl-link: #2f4b8a;
    --tl-line: #c8c2b0;
    --tl-box: #ebe4d1;
    --tl-box-line: #b9b09a;
    --tl-font: 'PT Serif', Georgia, serif;
    --tl-head-font: 'Caveat', cursive;
    --tl-base: 16.5px;
    background-image: repeating-linear-gradient(0deg, transparent 0 calc(1.75em - 1px), rgba(60, 90, 150, 0.16) calc(1.75em - 1px) 1.75em);
    background-position: 0 44px;
}

.tl-theme-letter {
    --tl-bg: #fbfaf7;
    --tl-text: #2b2925;
    --tl-muted: #7a7466;
    --tl-head: #2b2925;
    --tl-accent: #8a6d3b;
    --tl-link: #8a6d3b;
    --tl-line: #ddd6c6;
    --tl-box: #f3efe5;
    --tl-box-line: #cdbf9f;
    --tl-font: 'PT Serif', Georgia, serif;
    --tl-base: 17px;
    border-left: 8px double #cdbf9f;
}

.tl-font-wiki {
    --tl-font: Verdana, Geneva, Tahoma, sans-serif;
}

.tl-font-serif {
    --tl-font: 'PT Serif', Georgia, serif;
}

.tl-font-sans {
    --tl-font: 'Manrope', 'Segoe UI', sans-serif;
}

.tl-font-type {
    --tl-font: 'Courier Prime', 'Courier New', monospace;
}

.tl-font-mono {
    --tl-font: 'Share Tech Mono', monospace;
}

.tl .bb-font-sans { font-family: 'Manrope', 'Segoe UI', sans-serif; }
.tl .bb-font-serif { font-family: 'PT Serif', Georgia, serif; }
.tl .bb-font-mono { font-family: 'Share Tech Mono', monospace; }
.tl .bb-font-type { font-family: 'Courier Prime', 'Courier New', monospace; }
.tl .bb-font-hand { font-family: 'Caveat', cursive; font-size: 1.3em; line-height: 1.2; }
.tl .bb-font-wiki { font-family: Verdana, Geneva, Tahoma, sans-serif; }

.tl a {
    color: var(--tl-link);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tl a.bb-link--wiki {
    text-decoration: none;
}

.tl a.bb-link--wiki:hover,
.tl a.bb-link--wiki:focus-visible {
    text-decoration: underline;
}

.tl a.bb-link--dotted {
    text-decoration: underline dotted;
    text-decoration-thickness: 1px;
}

.tl a.bb-link--plain {
    text-decoration: none;
}

.tl strong {
    color: inherit;
    font-weight: 700;
}

.tl-block {
    margin: 0 0 1.1em;
}

.tl-quote,
.tl-warning,
.tl-note,
.tl-table,
.tl-interview,
.tl-exp,
.tl-events,
.tl-o5,
.tl-term,
.tl-fold,
.tl-tabs,
.tl-cols,
.tl-mail,
.tl-access,
.tl-person,
.tl-letter,
.tl-dochead,
.tl-footnotes {
    display: flow-root;
}

.tl-block:last-child {
    margin-bottom: 0;
}

.tl p {
    margin: 0 0 0.9em;
}

.tl p:last-child {
    margin-bottom: 0;
}

.tl ul,
.tl ol {
    margin: 0 0 0.9em;
    padding-left: 1.6em;
}

.tl li {
    margin-bottom: 0.3em;
}

.tl h2,
.tl h3,
.tl h4,
.tl-h {
    font-family: var(--tl-head-font);
    color: var(--tl-head);
    line-height: 1.25;
}

.tl-h {
    margin: 1.6em 0 0.6em;
}

.tl-block.tl-h:first-child {
    margin-top: 0;
}

.tl-h2,
.tl-text h2 {
    font-size: 1.6em;
    font-weight: 700;
}

.tl-h3,
.tl-text h3 {
    font-size: 1.3em;
    font-weight: 700;
}

.tl-h4 {
    font-size: 1.1em;
    font-weight: 700;
}

.tl-theme-foundation .tl-h2,
.tl-theme-night .tl-h2 {
    padding-bottom: 0.2em;
    border-bottom: 1px solid var(--tl-line);
}

.tl-theme-site .tl-h,
.tl-theme-site .tl-text h2 {
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tl-accent);
}

.tl-theme-site .tl-h2 {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--tl-line);
    font-size: 1.15em;
}

.tl-theme-diary .tl-h {
    font-size: 2em;
    font-weight: 700;
}

.tl-theme-terminal .tl-h::before {
    content: "> ";
    color: var(--tl-accent);
}

.tl-h[data-typewriter] .tw-char {
    opacity: 0;
}

.tl-h[data-typewriter] .tw-char.is-on,
.tl-h[data-typewriter].is-typed .tw-char {
    opacity: 1;
}

.tl .bb-redact {
    letter-spacing: -0.04em;
    color: #111;
    background: #111;
    user-select: none;
}

.tl-theme-terminal .bb-redact,
.tl-theme-night .bb-redact,
.tl-theme-site .bb-redact {
    color: #000;
    background: #000;
    box-shadow: 0 0 0 1px #3c3c41;
}

.tl .bb-deleted {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.tl .bb-hl {
    padding: 0 0.15em;
    background: #f3d36b;
    color: inherit;
}

.tl-theme-night .bb-hl,
.tl-theme-site .bb-hl,
.tl-theme-terminal .bb-hl {
    background: rgba(212, 167, 106, 0.35);
}

.tl .bb-fn a {
    padding: 0 2px;
    font-size: 0.8em;
    text-decoration: none;
}

.tl .bb-img {
    max-width: 100%;
    height: auto;
}

.tl .key-term {
    padding: 0 6px;
    background: var(--tl-box);
    border: 1px solid var(--tl-box-line);
    font-family: var(--tl-mono);
    font-size: 0.94em;
}

.tl .cmd {
    padding: 1px 6px;
    background: #111;
    font-family: 'Share Tech Mono', monospace;
    color: #9fd29a;
}

.tl .document-meta {
    font-family: var(--tl-mono);
    font-size: 0.9em;
    font-style: italic;
    color: var(--tl-muted);
}

.tl .system-message {
    padding: 10px 15px;
    background: var(--tl-box);
    border: 1px solid var(--tl-box-line);
    font-family: var(--tl-mono);
    font-size: 0.92em;
}

.tl .dialogue-block {
    padding: 12px 16px;
    background: var(--tl-box);
    border-left: 3px solid var(--tl-accent);
    font-family: var(--tl-mono);
    font-size: 0.92em;
}

.tl .amended-notice,
.tl .experiment-log,
.tl .o5-appendix,
.tl .sub-ability {
    margin: 0 0 1em;
    padding: 12px 16px;
    background: var(--tl-box);
    border: 1px solid var(--tl-box-line);
}

.tl .experiment-log-header,
.tl .o5-appendix-header {
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--tl-accent);
}

.tl-quote {
    margin-left: 0;
    margin-right: 0;
    padding: 0.8em 1.2em;
    background: var(--tl-box);
    border: 1px dashed var(--tl-box-line);
}

.tl-theme-document .tl-quote,
.tl-theme-letter .tl-quote,
.tl-theme-diary .tl-quote {
    border: 0;
    border-left: 3px solid var(--tl-accent);
    font-style: italic;
}

.tl-quote__author {
    margin-top: 0.5em;
    font-size: 0.9em;
    font-style: normal;
    color: var(--tl-muted);
    text-align: right;
}

.tl-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1.4em;
}

.tl-divider span {
    display: block;
    width: 100%;
    border-top: 1px solid var(--tl-line);
}

.tl-divider--double span {
    border-top: 3px double var(--tl-box-line);
}

.tl-divider--fade span {
    height: 1px;
    border: 0;
    background: linear-gradient(90deg, transparent, var(--tl-box-line), transparent);
}

.tl-divider--stars span {
    width: auto;
    border: 0;
}

.tl-divider--stars span::before {
    content: "✱   ✱   ✱";
    white-space: pre;
    color: var(--tl-muted);
}

.tl-object__row {
    margin: 0 0 0.35em !important;
}

.tl-object {
    font-size: 1.04em;
}

.tl-dochead {
    padding-bottom: 1em;
    border-bottom: 1px solid var(--tl-line);
}

.tl-dochead__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.tl-dochead__org {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8em;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--tl-accent);
}

.tl-dochead__title {
    margin-top: 0.2em;
    font-family: var(--tl-head-font);
    font-size: 1.9em;
    font-weight: 700;
    line-height: 1.15;
    color: var(--tl-head);
}

.tl-dochead__stamp {
    flex: none;
    padding: 0.35em 0.8em;
    border: 3px solid var(--tl-accent);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.95em;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--tl-accent);
    transform: rotate(-5deg);
}

.tl-dochead__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px 24px;
    margin-top: 1em;
    font-size: 0.92em;
}

.tl-dochead__meta span {
    display: block;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75em;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--tl-muted);
}

.tl-stamp {
    display: flex;
    flex-direction: column;
    gap: 6px;
    --sc: #9a0712;
}

.tl-stamp--center {
    align-items: center;
}

.tl-stamp--right {
    align-items: flex-end;
}

.tl-stamp--left {
    align-items: flex-start;
}

.tl-stamp--black { --sc: #1d1b18; }
.tl-stamp--blue { --sc: #23458f; }
.tl-stamp--green { --sc: #2d6b33; }

.tl-theme-night .tl-stamp--black,
.tl-theme-terminal .tl-stamp--black,
.tl-theme-site .tl-stamp--black {
    --sc: #e0e0e0;
}

.tl-stamp__main {
    padding: 0.3em 0.9em;
    border: 3px solid var(--sc);
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.25em;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--sc);
    transform: rotate(-4deg);
    opacity: 0.88;
}

.tl-stamp__sub {
    padding: 0.2em 0.6em;
    background: var(--sc);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8em;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--tl-bg);
}

.tl-warning {
    --wc: #9a0712;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    padding: 1em 1.4em;
    border: 3px double var(--wc);
    background: color-mix(in srgb, var(--wc) 7%, transparent);
    text-align: center;
}

.tl-warning.tl-tone-warning { --wc: #b2741a; }
.tl-warning.tl-tone-info { --wc: #2f5ea8; }

.tl-warning__title {
    margin-bottom: 0.4em;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.2em;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--wc);
}

.tl-note {
    --nc: var(--tl-box-line);
    padding: 0.9em 1.2em;
    background: var(--tl-box);
    border: 1px solid var(--nc);
    border-left-width: 4px;
}

.tl-note.tl-tone-info { --nc: #2f5ea8; }
.tl-note.tl-tone-warning { --nc: #b2741a; }
.tl-note.tl-tone-danger { --nc: #9a0712; }

.tl-note__title {
    margin-bottom: 0.4em;
    font-weight: 700;
    color: var(--tl-head);
}

.tl-table__scroll {
    overflow-x: auto;
}

.tl-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94em;
}

.tl-table caption {
    margin-bottom: 0.4em;
    caption-side: top;
    font-weight: 700;
    text-align: left;
    color: var(--tl-head);
}

.tl-table th,
.tl-table td {
    padding: 0.45em 0.7em;
    border: 1px solid var(--tl-box-line);
    vertical-align: top;
    text-align: left;
}

.tl-table th {
    background: var(--tl-box);
    font-weight: 700;
}

.tl-sign {
    width: max-content;
    max-width: 100%;
    margin-top: 2em;
}

.tl-sign__hand {
    font-family: var(--tl-hand);
    font-size: 2.1em;
    line-height: 1;
    color: #1f2e5a;
}

.tl-theme-night .tl-sign__hand,
.tl-theme-terminal .tl-sign__hand,
.tl-theme-site .tl-sign__hand {
    color: #9db4ff;
}

.tl-sign__line {
    width: 240px;
    max-width: 100%;
    height: 1px;
    margin: 0.2em 0 0.4em;
    background: var(--tl-text);
}

.tl-sign__name {
    font-weight: 700;
}

.tl-sign__role,
.tl-sign__date {
    font-size: 0.9em;
    font-style: italic;
    color: var(--tl-muted);
}

.tl-end {
    display: flex;
    justify-content: center;
    margin-top: 2em;
}

.tl-end span {
    padding: 0.45em 1.2em;
    border-top: 1px solid var(--tl-accent);
    border-bottom: 1px solid var(--tl-accent);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.86em;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--tl-accent);
}

.tl-interview,
.tl-exp,
.tl-events,
.tl-o5 {
    padding: 1em 1.3em;
    background: var(--tl-box);
    border: 1px solid var(--tl-box-line);
}

.tl-theme-foundation .tl-interview,
.tl-theme-foundation .tl-exp {
    border-style: dashed;
}

.tl-interview__title,
.tl-exp__title,
.tl-events__title {
    margin-bottom: 0.6em;
    font-family: var(--tl-head-font);
    font-size: 1.15em;
    font-weight: 700;
    color: var(--tl-head);
}

.tl-interview__meta p {
    margin: 0 0 0.2em;
}

.tl-interview__fore,
.tl-interview__after {
    margin: 0.6em 0;
}

.tl-interview__fore p,
.tl-interview__after p {
    display: inline;
}

.tl-interview__log {
    margin-top: 0.8em;
    padding-top: 0.8em;
    border-top: 1px solid var(--tl-line);
}

.tl-interview__line {
    margin: 0 0 0.5em !important;
}

.tl-interview__act {
    margin: 0 0 0.5em !important;
    font-style: italic;
    color: var(--tl-muted);
}

.tl-interview__mark {
    margin: 0.6em 0 !important;
    font-weight: 700;
    text-align: center;
    color: var(--tl-muted);
}

.tl-exp__entry {
    margin-top: 0.8em;
    padding-left: 1em;
    border-left: 3px solid var(--tl-accent);
}

.tl-exp__head {
    margin-bottom: 0.2em;
    font-weight: 700;
}

.tl-events ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tl-events li {
    display: grid;
    grid-template-columns: minmax(70px, max-content) minmax(0, 1fr);
    gap: 14px;
    padding: 0.35em 0;
    border-bottom: 1px dotted var(--tl-line);
}

.tl-events li:last-child {
    border-bottom: 0;
}

.tl-events__time {
    font-family: 'Share Tech Mono', monospace;
    color: var(--tl-accent);
}

.tl-term {
    --tc: #9fd29a;
    overflow: hidden;
    background: #0b0f0b;
    border: 1px solid #263a28;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.95em;
    color: var(--tc);
    text-shadow: 0 0 6px color-mix(in srgb, var(--tc) 30%, transparent);
}

.tl-term--amber { --tc: #f0b84a; }
.tl-term--white { --tc: #e6e6e6; }
.tl-term--red { --tc: #ff6b6b; }

.tl-term__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #151b15;
    border-bottom: 1px solid #263a28;
    font-size: 0.82em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6f8f6c;
}

.tl-term__bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2e3d2e;
}

.tl-term__bar span {
    margin-left: 8px;
}

.tl-term__body {
    padding: 12px 16px;
    line-height: 1.6;
}

.tl-term__line {
    white-space: pre-wrap;
}

.tl-term__cmd {
    color: #e6e6e6;
}

.tl-term__alert {
    color: #e0874a;
}

.tl-term__line[data-typewriter] .tw-char {
    opacity: 0;
}

.tl-term__line[data-typewriter] .tw-char.is-on,
.tl-term__line[data-typewriter].is-typed .tw-char {
    opacity: 1;
}

.tl-fold {
    border: 1px dashed var(--tl-box-line);
}

.tl-fold > summary {
    padding: 0.5em 1em;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    color: var(--tl-link);
    user-select: none;
}

.tl-fold > summary::-webkit-details-marker {
    display: none;
}

.tl-fold > summary:hover {
    background: var(--tl-box);
}

.tl-fold__opened,
.tl-fold[open] .tl-fold__closed {
    display: none;
}

.tl-fold[open] .tl-fold__opened {
    display: inline;
}

.tl-fold__body {
    padding: 0.4em 1.2em 1em;
    border-top: 1px dashed var(--tl-box-line);
}

.tl-tabs__nav {
    display: none;
    flex-wrap: wrap;
    gap: 2px;
    border-bottom: 1px solid var(--tl-box-line);
}

.tl-tabs.is-ready .tl-tabs__nav {
    display: flex;
}

.tl-tabs__tab {
    margin-bottom: -1px;
    padding: 0.4em 1em;
    background: var(--tl-box);
    border: 1px solid var(--tl-box-line);
    font: inherit;
    font-size: 0.92em;
    color: var(--tl-text);
    cursor: pointer;
}

.tl-tabs__tab.is-active {
    background: var(--tl-bg);
    border-bottom-color: var(--tl-bg);
    font-weight: 700;
    color: var(--tl-head);
}

.tl-tabs__pane {
    padding: 1em 1.2em;
    border: 1px solid var(--tl-box-line);
    border-top: 0;
}

.tl-tabs__pane + .tl-tabs__pane {
    margin-top: 0.8em;
}

.tl-tabs__label {
    margin-bottom: 0.4em;
    font-weight: 700;
}

.tl-tabs.is-ready .tl-tabs__label {
    display: none;
}

.tl-tabs.is-ready .tl-tabs__pane {
    display: none;
    margin-top: 0;
}

.tl-tabs.is-ready .tl-tabs__pane.is-active {
    display: block;
}

.tl-img {
    width: var(--w, 40%);
    margin-top: 0.3em;
}

.tl-img--right {
    float: right;
    margin-left: 1.6em;
}

.tl-img--left {
    float: left;
    margin-right: 1.6em;
}

.tl-img--center {
    margin-left: auto;
    margin-right: auto;
}

.tl-img--full {
    width: 100%;
    clear: both;
}

.tl-img__box img {
    display: block;
    width: 100%;
    height: auto;
}

.tl-img__empty {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    background: var(--tl-box) repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0 10px, transparent 10px 20px);
    border: 1px dashed var(--tl-box-line);
    font-size: 0.85em;
    color: var(--tl-muted);
}

.tl-img figcaption {
    margin-top: 0.4em;
    font-size: 0.86em;
    line-height: 1.45;
    text-align: center;
    color: var(--tl-muted);
}

.tl-frame--photo .tl-img__box {
    padding: 6px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
}

.tl-theme-foundation .tl-frame--photo .tl-img__box {
    background: #f4f4f4;
    border: 1px solid #999;
    box-shadow: none;
}

.tl-frame--polaroid .tl-img__box {
    padding: 10px 10px 34px;
    background: #fdfdf8;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    transform: rotate(-1.5deg);
}

.tl-frame--scan .tl-img__box {
    position: relative;
    padding: 4px;
    border: 1px solid var(--tl-box-line);
    background: var(--tl-box);
}

.tl-frame--scan img {
    filter: grayscale(1) contrast(1.15);
}

.tl-frame--scan .tl-img__box::after {
    content: "";
    position: absolute;
    inset: 4px;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.07) 0 1px, transparent 1px 3px);
    pointer-events: none;
}

.tl-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2em;
}

.tl-cols--60 {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.tl-cols--40 {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}

.tl-sticky-wrap {
    display: flex;
    justify-content: center;
    padding: 0.5em 0;
}

.tl-sticky {
    --pc: #f3d36b;
    width: min(320px, 100%);
    padding: 1em 1.2em;
    background: var(--pc);
    font-family: var(--tl-hand);
    font-size: 1.45em;
    line-height: 1.2;
    color: #2a2414;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
    text-shadow: none;
}

.tl-sticky p {
    margin-bottom: 0.3em;
}

.tl-sticky--pink { --pc: #f6b8c8; }
.tl-sticky--blue { --pc: #b9dcf5; }
.tl-sticky--green { --pc: #c7e8b0; }
.tl-sticky--white { --pc: #fbfaf5; }

.tl-tilt--left {
    transform: rotate(-2.5deg);
}

.tl-tilt--right {
    transform: rotate(2.5deg);
}

.tl-letter {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    padding: 2em 2.4em;
    background: #fbfaf5;
    color: #2b2925;
    font-family: 'PT Serif', Georgia, serif;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
    text-shadow: none;
}

.tl-theme-letter .tl-letter {
    padding: 0;
    background: none;
    box-shadow: none;
}

.tl-letter__date {
    margin-bottom: 1em;
    font-style: italic;
    text-align: right;
    color: #7a7466;
}

.tl-letter__greet {
    margin-bottom: 0.8em;
    font-style: italic;
}

.tl-letter__sign {
    margin-top: 1.4em;
    font-family: 'Caveat', cursive;
    font-size: 1.6em;
    text-align: right;
}

.tl-mail {
    background: var(--tl-bg);
    border: 1px solid var(--tl-box-line);
}

.tl-mail__head {
    padding: 0.8em 1.2em;
    background: var(--tl-box);
    border-bottom: 1px solid var(--tl-box-line);
    font-size: 0.92em;
}

.tl-mail__head span {
    display: inline-block;
    min-width: 54px;
    font-weight: 700;
    color: var(--tl-muted);
}

.tl-mail__body {
    padding: 1em 1.2em;
}

.tl-o5 {
    border: 2px solid #1d1b18;
    background: var(--tl-bg);
    padding: 0;
}

.tl-theme-night .tl-o5,
.tl-theme-terminal .tl-o5,
.tl-theme-site .tl-o5 {
    border-color: #bdbdbd;
}

.tl-o5__head {
    padding: 0.5em 1em;
    background: #1d1b18;
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    color: #f1ede4;
}

.tl-o5__body {
    padding: 1em 1.3em;
}

.tl-access {
    --ac: #9a0712;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.2em 1.4em;
    background: #0e0e10;
    border: 2px solid var(--ac);
    font-family: 'Share Tech Mono', monospace;
    text-align: center;
    color: #e6e6e6;
    text-shadow: none;
}

.tl-access--granted { --ac: #2d8a3e; }
.tl-access--warning { --ac: #c58a1f; }

.tl-access__title {
    font-size: 1.5em;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ac);
}

.tl-access__text {
    margin-top: 0.4em;
    font-size: 0.92em;
    color: #a9adb1;
}

.tl-person {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 1.4em;
    padding: 1.2em;
    background: var(--tl-box);
    border: 1px solid var(--tl-box-line);
}

.tl-person__photo img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 4px solid var(--tl-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.tl-person__photo--empty {
    display: grid;
    place-items: center;
    aspect-ratio: 3 / 4;
    border: 1px dashed var(--tl-box-line);
    font-size: 0.85em;
    color: var(--tl-muted);
}

.tl-person__name {
    margin-bottom: 0.5em;
    font-family: var(--tl-head-font);
    font-size: 1.35em;
    font-weight: 700;
    color: var(--tl-head);
}

.tl-person__info p {
    margin: 0 0 0.3em;
}

.tl-person__text {
    margin-top: 0.8em;
}

.tl-footnotes {
    clear: both;
    margin-top: 2.4em;
    padding-top: 1em;
    border-top: 1px solid var(--tl-line);
    font-size: 0.88em;
}

.tl-footnotes__title {
    margin-bottom: 0.4em;
    font-weight: 700;
    color: var(--tl-head);
}

.tl-footnotes ol {
    margin: 0;
}

.tl-footnotes__back {
    text-decoration: none !important;
}

.tl-empty {
    min-height: 1em;
}

@media (max-width: 760px) {
    .tl {
        padding: 26px 16px 30px;
    }

    .tl-img--left,
    .tl-img--right,
    .tl-img--center {
        float: none;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .tl-cols,
    .tl-cols--60,
    .tl-cols--40,
    .tl-person {
        grid-template-columns: minmax(0, 1fr);
        gap: 1em;
    }

    .tl-person__photo {
        max-width: 200px;
    }

    .tl-dochead__top {
        flex-direction: column;
    }

    .tl-bar {
        top: 60px;
    }

    .tl-bar__meta,
    .tl-bar__sep {
        display: none;
    }

    .tl-bar__actions {
        width: 100%;
        margin-left: 0;
    }

    .tl-bar__actions .arc-btn {
        flex: 1 1 auto;
    }

    .tl-letter {
        padding: 1.2em;
    }
}

.tl-kids {
    display: flow-root;
}

* + .tl-kids {
    margin-top: 1em;
}

.tl-kids > .tl-block:last-child {
    margin-bottom: 0;
}

.tl-pdd,
.tl-dochead__stamp--pdd {
    --tl-pdd: var(--tl-accent);
    --pdd-global: #2f4fbf;
    --pdd-department: #2e7d32;
    --pdd-local: #b0283e;
    --pdd-threat: #c25400;
}

.tl-theme-night .tl-pdd,
.tl-theme-site .tl-pdd,
.tl-theme-terminal .tl-pdd,
.tl-theme-night .tl-dochead__stamp--pdd,
.tl-theme-site .tl-dochead__stamp--pdd,
.tl-theme-terminal .tl-dochead__stamp--pdd {
    --pdd-global: #8fa7ff;
    --pdd-department: #7cc576;
    --pdd-local: #e07a8a;
    --pdd-threat: #ff9a6b;
}

.tl-pdd--c-red { --tl-pdd: #9a0712; }
.tl-pdd--c-black { --tl-pdd: #1d1b18; }
.tl-pdd--c-blue { --tl-pdd: #23458f; }
.tl-pdd--c-green { --tl-pdd: #2d6b33; }
.tl-pdd--c-gold { --tl-pdd: #b5832f; }
.tl-pdd--c-meaning { --tl-pdd: var(--tl-head); }

.tl-theme-night .tl-pdd--c-black,
.tl-theme-site .tl-pdd--c-black,
.tl-theme-terminal .tl-pdd--c-black {
    --tl-pdd: #e0e0e0;
}

.tl-theme-night .tl-pdd--c-red,
.tl-theme-site .tl-pdd--c-red,
.tl-theme-terminal .tl-pdd--c-red {
    --tl-pdd: #d0566a;
}

.tl-theme-night .tl-pdd--c-blue,
.tl-theme-site .tl-pdd--c-blue,
.tl-theme-terminal .tl-pdd--c-blue {
    --tl-pdd: #7d97e6;
}

.tl-theme-night .tl-pdd--c-green,
.tl-theme-site .tl-pdd--c-green,
.tl-theme-terminal .tl-pdd--c-green {
    --tl-pdd: #6fb86a;
}

.tl-theme-night .tl-pdd--c-gold,
.tl-theme-site .tl-pdd--c-gold,
.tl-theme-terminal .tl-pdd--c-gold {
    --tl-pdd: #d4a76a;
}

.tl-pdd__seg--global { color: var(--pdd-global); }
.tl-pdd__seg--department { color: var(--pdd-department); }
.tl-pdd__seg--local { color: var(--pdd-local); }
.tl-pdd__seg--threat { color: var(--pdd-threat); }

.tl-pdd--banner.tl-pdd--c-meaning {
    background: var(--tl-box);
    border: 1px solid var(--tl-box-line);
    border-left: 4px solid var(--tl-head);
    color: var(--tl-muted);
}

.tl-pdd__code {
    padding: 0;
    background: none;
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 0.06em;
    color: inherit;
    overflow-wrap: anywhere;
}

.tl-pdd__code--bad {
    text-decoration: underline wavy rgba(208, 86, 106, 0.7);
}

.tl-pdd__title {
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.tl-pdd--stamp {
    display: flex;
}

.tl-pdd--left { justify-content: flex-start; text-align: left; }
.tl-pdd--center { justify-content: center; text-align: center; }
.tl-pdd--right { justify-content: flex-end; text-align: right; }

.tl-pdd__stamp {
    display: grid;
    gap: 4px;
    padding: 0.45em 1em 0.55em;
    border: 3px double var(--tl-pdd);
    color: var(--tl-pdd);
    text-align: center;
    transform: rotate(-3deg);
    opacity: 0.9;
}

.tl-pdd__stamp .tl-pdd__title {
    font-size: 0.68em;
}

.tl-pdd__stamp .tl-pdd__code {
    font-size: 1.3em;
}

.tl-pdd--banner {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
    padding: 0.55em 1em;
    background: var(--tl-pdd);
    color: var(--tl-bg);
}

.tl-theme-site .tl-pdd--banner:not(.tl-pdd--c-meaning) {
    color: #141414;
}

.tl-pdd--banner .tl-pdd__title {
    font-size: 0.74em;
}

.tl-pdd--banner .tl-pdd__code {
    font-size: 1.05em;
    font-weight: 700;
}

.tl-pdd--line {
    padding-bottom: 0.3em;
    border-bottom: 1px solid var(--tl-line);
    font-size: 0.86em;
    color: var(--tl-muted);
}

.tl-pdd--line .tl-pdd__title {
    font-size: 0.86em;
}

.tl-pdd--line .tl-pdd__code {
    font-weight: 700;
    color: var(--tl-pdd);
}

.tl-pdd--card {
    max-width: 560px;
    border: 1px solid var(--tl-box-line);
    border-left: 4px solid var(--tl-pdd);
    background: var(--tl-box);
}

.tl-pdd__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 14px;
    padding: 0.6em 1em;
    border-bottom: 1px solid var(--tl-box-line);
}

.tl-pdd__head .tl-pdd__title {
    font-size: 0.72em;
    color: var(--tl-muted);
}

.tl-pdd__head .tl-pdd__code {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--tl-pdd);
}

.tl-pdd__rows {
    display: grid;
    gap: 0.3em;
    margin: 0;
    padding: 0.6em 1em 0.75em;
    font-size: 0.9em;
}

.tl-pdd__rows > div {
    display: grid;
    grid-template-columns: 9em minmax(0, 1fr);
    gap: 0.8em;
}

.tl-pdd__rows dt {
    color: var(--tl-muted);
}

.tl-pdd__rows dd {
    margin: 0;
}

.tl-pdd__item i {
    font-style: normal;
    color: var(--tl-muted);
}

.tl-pdd__join {
    margin: 0 0.45em;
    font-size: 0.85em;
    color: var(--tl-muted);
}

.tl-dochead__stamp--pdd {
    border-color: var(--tl-pdd);
    color: var(--tl-pdd);
    display: grid;
    gap: 2px;
    text-align: center;
    letter-spacing: 0.06em;
    text-transform: none;
}

.tl-dochead__stamp--pdd small {
    font-size: 0.62em;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
