/* [tech_landscape] market-map infographic — rendered by TechLandscape.php.
   Board is a 1:1 container; everything inside is sized in container-query
   units (cqw) so it scales proportionally like an image. The board splits
   into N pie sectors: each wedge is a full-board div clipped to its slice
   (clip-path polygon inline), carrying its own SVG (slice path + curved
   label) and absolutely positioned logo chips — all geometry computed per
   render in TechLandscape.php and emitted inline; this file only carries
   the static styling. */

.tl-board {
    position: relative;
    width: 100%;
    margin-inline: auto;
    aspect-ratio: 1 / 1;
    container-type: inline-size;
    overflow: hidden;
}

/* Pie sectors. Each wedge carries its sector color + slice clip-path inline;
   the faint tint, slice stroke and chip hover accents derive from the color
   via currentColor. transform-origin = board center, so hover scaling grows
   a wedge outward over the gutters. */
.tl-wedge {
    position: absolute;
    inset: 0;
    transform-origin: 50% 50%;
}
.tl-wedge svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}
.tl-wedge .tl-slice {
    fill: #fff;
    fill: color-mix(in srgb, var(--tl-c, currentColor) 4%, #fff);
    stroke: currentColor;
    stroke-width: 6px; /* viewBox units, scales with the board */
    stroke-linejoin: round;
}

.tl-shadow {
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 0.222cqw 1.556cqw rgb(43 43 43 / 0.08);
    pointer-events: none;
}

.tl-board:not(.tl-board-interactive) .tl-wedge .tl-slice {
    filter: drop-shadow(0 2px 14px rgb(43 43 43 / 0.08));
}
/* Curved sector labels: fill/font-size/letter-spacing come inline.
   Uppercase evens out glyph heights on the curve; one uniform size per
   board is computed in PHP. */
.tl-wedge text {
    font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

/* Hover focus for the STATIC sectors mode: the hovered sector grows, the
   others shrink and grey out. Landscape mode never uses this path — it
   animates whole containers instead (see below), because per-wedge
   transform+filter on 6 wedges x ~9 chips cannot hold 60fps. */
@media (hover: hover) {
    .tl-board:not(.tl-board-interactive) .tl-wedge {
        transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
                    filter 300ms cubic-bezier(0.22, 1, 0.36, 1),
                    opacity 300ms cubic-bezier(0.22, 1, 0.36, 1);
    }
    .tl-board:not(.tl-board-interactive) .tl-wedge:hover {
        transform: scale(1.06);
    }
    .tl-board:not(.tl-board-interactive):has(.tl-wedge:hover) .tl-wedge:not(:hover) {
        transform: scale(0.94);
        filter: grayscale(1);
        opacity: 0.45;
    }
}

.tl-board-interactive .tl-wedge {
    cursor: pointer;
}

.tl-board-interactive .tl-wedge .tl-slice {
    transition: fill 220ms cubic-bezier(0.25, 1, 0.5, 1);
}

@media (hover: hover) {
    .tl-board-interactive:not([data-focus]) .tl-wedge:hover .tl-slice {
        fill: color-mix(in srgb, var(--tl-c, currentColor) 10%, #fff);
    }
}

.tl-board-interactive:not([data-focus]) .tl-wedge:active .tl-slice {
    fill: color-mix(in srgb, var(--tl-c, currentColor) 15%, #fff);
}

.tl-board-interactive .tl-wedge:focus-visible {
    outline: none;
}

.tl-board-interactive .tl-wedge:focus-visible .tl-slice,
.tl-board-interactive.tl-has-wedge-focus .tl-disc.is-open .tl-slice {
    stroke-width: 12px;
}

/* The focus transition animates exactly two elements: the pie wrapper fades
   (opacity only, so its large SVG layer is never re-rasterised for a scale
   change) and the incoming disc scales in. will-change promotes each to its
   own compositor layer. It does NOT keep their tiles alive: Chrome drops
   the tiles of a layer at opacity 0, so the pie re-rasters on close and the
   disc rasters from scratch on open. */
.tl-main,
.tl-disc {
    position: absolute;
    inset: 0;
}

.tl-board-interactive .tl-main {
    will-change: opacity;
    transition: opacity 250ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tl-disc {
    will-change: opacity;
}

.tl-board-interactive[data-focus] .tl-main {
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms linear 360ms;
}

.tl-board-interactive[data-focus] .tl-main .tl-chip {
    transition: none;
}

@property --tl-sweep {
    syntax: "<angle>";
    inherits: false;
    initial-value: 360deg;
}

.tl-disc {
    --tl-sweep: var(--tl-span, 360deg);
    z-index: 5;
    opacity: 0;
    -webkit-mask-image: conic-gradient(from calc(var(--tl-from, 0deg) - (var(--tl-sweep) - var(--tl-span, 360deg)) / 2), #000 var(--tl-sweep), transparent calc(var(--tl-sweep) + 0.6deg));
    mask-image: conic-gradient(from calc(var(--tl-from, 0deg) - (var(--tl-sweep) - var(--tl-span, 360deg)) / 2), #000 var(--tl-sweep), transparent calc(var(--tl-sweep) + 0.6deg));
    pointer-events: none;
    transition: --tl-sweep 420ms cubic-bezier(0.65, 0, 0.35, 1),
                opacity 160ms linear 300ms;
}

.tl-disc.is-open {
    --tl-sweep: 360deg;
    opacity: 1;
    transition: --tl-sweep 560ms cubic-bezier(0.25, 1, 0.5, 1),
                opacity 120ms linear;
}

.tl-disc svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Closed discs stay painted (opacity 0 + inert) so their layer is ready
   before the transition starts. Only the circle itself, its chips, badge
   and close button are hit-testable, so the square corners around the
   open disc fall through to the board and count as "outside". */
.tl-disc.is-open .tl-slice,
.tl-disc.is-open .tl-chip,
.tl-disc.is-open .tl-disc-badge,
.tl-disc.is-open .tl-disc-close {
    pointer-events: auto;
}

.tl-disc-close {
    position: absolute;
    left: 58%;
    top: 44.2%;
    z-index: 6;
    width: 3.2cqw;
    height: 3.2cqw;
    margin: 0;
    padding: 0;
    border: 0.3cqw solid #fff;
    border-radius: 50%;
    background: rgb(209 10 10 / 0.85);
    color: #fff;
    font-family: inherit;
    font-size: 2cqw;
    font-weight: 700;
    line-height: 1;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.tl-disc-close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: max(100%, 24px);
    height: max(100%, 24px);
    transform: translate(-50%, -50%);
}

.tl-disc-close:hover,
.tl-disc-close:focus-visible {
    background: rgb(209 10 10);
}

.tl-disc .tl-slice {
    fill: color-mix(in srgb, var(--tl-c, currentColor) 4%, #fff);
    stroke: currentColor;
    stroke-width: 6px;
    stroke-linejoin: round;
}

.tl-disc-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    display: grid;
    place-content: center;
    width: 21%;
    aspect-ratio: 1;
    padding: 1cqw;
    border: 0.8cqw solid #fff;
    border-radius: 50%;
    background: currentColor;
    text-align: center;
}

.tl-disc-badge span {
    display: block;
    color: #fff;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.015em;
    text-transform: uppercase;
    hyphens: none;
    overflow-wrap: normal;
}

.tl-heading {
    margin: 0 auto 1.1rem;
    max-width: 48ch;
    text-align: center;
    font-size: clamp(1.75rem, 2.8vw, 2.5rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.015em;
    text-wrap: balance;
}
.tl-text {
    margin: 0 0 2.25rem;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: #3a3a3a;
    text-wrap: pretty;
}
.tl-text > * {
    max-width: 66ch;
    margin: 0 0 0.9em;
}
.tl-text > :last-child {
    margin-bottom: 0;
}
.tl-text-above {
    text-align: center;
}
.tl-text-above > * {
    max-width: 90ch;
    margin-inline: auto;
}
.tl-text-above > p:first-child {
    max-width: 80ch;
    margin-bottom: 1.1em;
    font-size: clamp(1.125rem, 1.45vw, 1.3125rem);
    line-height: 1.45;
    color: #1d1d1f;
}
.tl-text-above > p:first-child strong {
    font-weight: 700;
}
.tl-text-below {
    margin: 2.5rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
    font-size: 0.975rem;
    color: #4a4a4a;
}
.tl-text-below strong {
    color: #1d1d1f;
}
.tl-text-below > * {
    max-width: none;
}

.tl-layout {
    --tl-aside: calc(clamp(15rem, 26%, 22rem) + clamp(1rem, 2.5vw, 2.5rem));
    position: relative;
    padding-right: var(--tl-aside);
}

.tl-fs-btn {
    position: absolute;
    top: 1.5cqw;
    right: 1.5cqw;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    background: #fff;
    color: #2b2b2b;
    box-shadow: 0 1px 3px rgb(43 43 43 / 0.08);
    cursor: pointer;
    transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}

.tl-fs-btn:hover {
    border-color: #b8b8b8;
    box-shadow: 0 2px 8px rgb(43 43 43 / 0.12);
}

.tl-fs-btn:focus-visible {
    outline: 2px solid #2b2b2b;
    outline-offset: 2px;
}

.tl-fs-btn svg {
    width: 20px;
    height: 20px;
}

.tl-fs-btn .tl-fs-close,
.tl-fs-btn[aria-pressed="true"] .tl-fs-open {
    display: none;
}

.tl-fs-btn[aria-pressed="true"] .tl-fs-close {
    display: block;
}

.tl-layout:fullscreen,
.tl-layout.tl-fs-fallback {
    box-sizing: border-box;
    display: flex;
    align-items: safe center;
    padding: 1.5rem calc(var(--tl-aside) + 1.5rem) 1.5rem 1.5rem;
    background: #fff;
    overflow: auto;
}

.tl-layout.tl-fs-fallback {
    position: fixed;
    inset: 0;
    z-index: 100000;
    width: auto;
    max-width: none;
    margin: 0 !important;
}

.tl-layout:fullscreen .tl-board,
.tl-layout.tl-fs-fallback .tl-board {
    flex: 0 0 auto;
    width: min(100%, calc(100vh - 3rem));
    width: min(100%, calc(100dvh - 3rem));
}

.tl-layout:fullscreen .tl-list,
.tl-layout.tl-fs-fallback .tl-list {
    top: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
}

html.tl-fs-lock,
body.tl-fs-lock {
    overflow: hidden;
}

.tl-layout .tl-board {
    width: 100%;
}

.tl-list {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: clamp(15rem, 26%, 22rem);
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}


.tl-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex: 0 0 auto;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid #ececec;
    color: #6b6b6b;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tl-list-head-count {
    color: #2b2b2b;
    letter-spacing: 0;
}

.tl-list-scroll {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding: 0 0.5rem 0.5rem;
}

.tl-list-group {
    cursor: pointer;
    transition: opacity 220ms ease;
    will-change: opacity;
}

.tl-list-group,
.tl-wedge,
.tl-list-items,
.tl-list-title {
    margin: 0 !important;
    padding: 0 !important;
}

.tl-list-item {
    margin: 0 !important;
}

.tl-list-group + .tl-list-group {
    border-top: 1px solid #f0f0f0;
}

.tl-list-summary {
    position: sticky;
    top: 0;
    z-index: 1;
    display: block;
    padding: 0.65rem 0.4rem 0.45rem;
    background: #fff;
    cursor: pointer;
    list-style: none;
}

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

.tl-list-summary::marker {
    content: "";
}

.tl-list-summary:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
    border-radius: 6px;
}

.tl-layout[data-focus] .tl-list-group:not(.is-active) {
    opacity: 0.32;
}

.tl-list-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: currentColor;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tl-list-group.is-active .tl-list-title,
.tl-list-group:hover .tl-list-title {
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.tl-list-count {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    background: color-mix(in srgb, currentColor 12%, transparent);
    color: currentColor;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0;
}

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

.tl-list-item a,
.tl-list-plain {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.3rem 0.4rem;
    border-radius: 6px;
    color: #2b2b2b;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3;
}

.tl-list-item span:not([class]),
.tl-list-plain span:not([class]) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.tl-list-item a {
    transition: background-color 200ms cubic-bezier(0.25, 1, 0.5, 1);
}

.tl-list-item a:hover,
.tl-list-item a:focus-visible {
    background-color: rgb(43 43 43 / 0.06);
}

.tl-list-item a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}

.tl-list-item img,
.tl-list-nologo {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 48px;
    height: 32px;
    padding: 3px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    object-fit: contain;
}

.tl-list-nologo {
    display: grid;
    place-content: center;
    color: currentColor;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 900px) {
    .tl-layout {
        --tl-aside: 0px;
        padding-right: 0;
    }

    .tl-layout[data-focus] .tl-list-group:not(.is-active) {
        display: none;
    }

    .tl-layout[data-focus] .tl-list-group + .tl-list-group {
        border-top: 0;
    }

    .tl-layout[data-focus] .tl-list-head {
        cursor: pointer;
    }

    .tl-layout:fullscreen,
    .tl-layout.tl-fs-fallback {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }

    .tl-layout:fullscreen .tl-board,
    .tl-layout.tl-fs-fallback .tl-board {
        width: min(100%, calc(100vh - 2rem));
        width: min(100%, calc(100dvh - 2rem));
    }

    .tl-layout:fullscreen .tl-list,
    .tl-layout.tl-fs-fallback .tl-list {
        flex: none;
    }
    .tl-list {
        position: static;
        width: auto;
        margin-top: 1.25rem;
    }
    .tl-layout {
        flex-direction: column;
    }

    .tl-list {
        flex: 1 1 auto;
        width: 100%;
        position: static;
        max-height: none;
    }

    .tl-list-scroll {
        overflow: visible;
        padding-bottom: 0.25rem;
    }

    .tl-list-summary {
        position: static;
        padding: 0.85rem 0.4rem;
    }

    .tl-list-title::after {
        content: "";
        flex: 0 0 auto;
        width: 0.4rem;
        height: 0.4rem;
        margin: -0.2rem 0.25rem 0;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
    }

    .tl-list-details[open] .tl-list-title::after {
        margin: 0.1rem 0.25rem 0;
        transform: rotate(-135deg);
    }
}

/* Logo chips — position/size come inline (left/top/width/height, % of the
   board); hover/focus accents inherit the sector color (currentColor
   cascades from the wedge's inline color) */
.tl-chip {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0.4cqw 0.55cqw;
    border: 0.12cqw solid #e2e2e2;
    border-radius: 0.5cqw;
    background: #fff;
    line-height: 0;
    text-decoration: none;
    box-shadow: 0 0 0 rgb(43 43 43 / 0);
    transition: transform 280ms cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 280ms cubic-bezier(0.25, 1, 0.5, 1),
                border-color 280ms cubic-bezier(0.25, 1, 0.5, 1);
}
.tl-chip:hover {
    transform: translateY(-0.18cqw);
    border-color: color-mix(in srgb, var(--tl-c, currentColor) 40%, #fff);
    box-shadow: 0 0.45cqw 1.1cqw rgb(43 43 43 / 0.12);
}
.tl-chip:focus-visible {
    outline: max(2px, 0.3cqw) solid currentColor;
    outline-offset: max(1px, 0.2cqw);
    border-color: color-mix(in srgb, currentColor 45%, #fff);
}
.tl-chip-name {
    container-type: size;
    line-height: 1.15;
}
.tl-chip-name span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 28cqh;
    font-weight: 600;
    line-height: 1.15;
    color: #2b2b2b;
    text-align: center;
    overflow-wrap: anywhere;
}
.tl-chip img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Center badge */
.tl-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20.4%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #00a18f;
    border: 0.8cqw solid #fff;
    display: grid;
    place-content: center;
    text-align: center;
    color: #fff;
    z-index: 4;
    padding: 1cqw;
    box-shadow: 0 0.7cqw 2.2cqw rgb(0 161 143 / 0.32);
}
.tl-badge span {
    font-size: 1.9cqw;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.015em;
}
.tl-badge strong {
    font-size: 3.4cqw;
    line-height: 1.1;
}

/* Company detail modal (native <dialog>, opened by tech-landscape.js) */
.tl-dialog {
    border: 0;
    border-radius: 18px;
    padding: 0;
    background: #fff;
    max-width: 540px;
    width: calc(100vw - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    text-align: left;
    color: #1d1d1f;
    box-shadow: 0 30px 80px rgb(0 0 0 / 0.32);
}
.tl-dialog::backdrop {
    background: rgb(20 24 23 / 0.55);
}
.tl-dialog[open] {
    animation: tl-dialog-in 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes tl-dialog-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}
.tl-dialog-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.85);
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.12);
    font-size: 22px;
    line-height: 1;
    color: #555;
    cursor: pointer;
}
.tl-dialog-close:hover {
    background: #fff;
    color: #111;
}
.tl-dialog-head {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 64px 24px 28px;
    background: color-mix(in srgb, var(--tl-accent, #111) 8%, #fff);
}
.tl-dialog-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    width: 112px;
    height: 76px;
    padding: 10px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.06),
                0 0 0 1px color-mix(in srgb, var(--tl-accent, #111) 22%, #fff);
}
.tl-dialog-logo[hidden] {
    display: none;
}
.tl-dialog-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.tl-dialog-title {
    min-width: 0;
}
.tl-dialog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 0;
    margin: 0 0 6px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tl-accent, #111);
}
.tl-dialog-meta[hidden],
.tl-dialog-tag[hidden] {
    display: none;
}
.tl-dialog-address {
    margin: 6px 0 0;
    font-size: 13.5px;
    line-height: 1.4;
    color: #6b6b6b;
}
.tl-dialog-address[hidden] {
    display: none;
}
.tl-dialog-head h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin: 0;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}
.tl-dialog-body {
    padding: 22px 28px 26px;
}
.tl-dialog-body[hidden] {
    display: none;
}
.tl-dialog-claim {
    margin: 0;
    padding: 14px 28px 18px;
    text-align: right;
    font-size: 12px;
}
.tl-dialog-claim[hidden] {
    display: none;
}
.tl-dialog-claim a {
    color: #9a9a9a;
    text-decoration: none;
}
.tl-dialog-claim a:hover,
.tl-dialog-claim a:focus-visible {
    color: #5c5c5c;
    text-decoration: underline;
}
.tl-dialog-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: #3d3d3d;
}
.tl-dialog-text[hidden] {
    display: none;
}
.tl-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.tl-dialog-text:not([hidden]) ~ .tl-dialog-actions {
    margin-top: 22px;
}

.tl-dialog.is-expanded .tl-dialog-head h3,
.tl-dialog.is-expanded .tl-dialog-text {
    -webkit-line-clamp: unset;
}

.tl-dialog-more {
    margin: 8px 0 0;
    padding: 4px 0;
    border: 0;
    background: none;
    color: #1d1d1f;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.tl-dialog-more[hidden] {
    display: none;
}
.tl-dialog-actions[hidden] {
    display: none;
}
.tl-dialog-link {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}
.tl-dialog-link:hover {
    background: #333;
    color: #fff;
}
.tl-dialog-links {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.tl-dialog-mail,
.tl-dialog-tel,
.tl-dialog-site {
    position: relative;
    display: inline-grid;
    place-items: center;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    border: 1px solid #e2e2e2;
    border-radius: 50%;
    background-color: #fff;
    color: #1d1d1f;
    text-decoration: none;
    transition: border-color 200ms cubic-bezier(0.25, 1, 0.5, 1),
                color 200ms cubic-bezier(0.25, 1, 0.5, 1),
                background-color 200ms cubic-bezier(0.25, 1, 0.5, 1);
}
.tl-dialog-mail span,
.tl-dialog-tel span,
.tl-dialog-site span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.tl-dialog-icon {
    width: 20px;
    height: 20px;
}
.tl-dialog-mail:hover,
.tl-dialog-tel:hover,
.tl-dialog-site:hover {
    border-color: var(--tl-accent, #1d1d1f);
    background-color: color-mix(in srgb, var(--tl-accent, #1d1d1f) 8%, #fff);
    color: var(--tl-accent, #1d1d1f);
}
.tl-dialog-link[hidden],
.tl-dialog-mail[hidden],
.tl-dialog-tel[hidden],
.tl-dialog-site[hidden] {
    display: none;
}
.tl-dialog-link:focus-visible,
.tl-dialog-mail:focus-visible,
.tl-dialog-tel:focus-visible,
.tl-dialog-site:focus-visible,
.tl-dialog-close:focus-visible {
    outline: 2px solid #00a18f;
    outline-offset: 2px;
}
@media (max-width: 600px) {
    .tl-dialog-head {
        gap: 14px;
        padding: 22px 56px 18px 20px;
    }
    .tl-dialog-logo {
        width: 84px;
        height: 58px;
        padding: 7px;
    }
    .tl-dialog-head h3 {
        font-size: 20px;
    }
    .tl-dialog-body {
        padding: 18px 20px 22px;
    }
}

.tl-cta-dialog {
    width: min(760px, calc(100vw - 32px));
    height: min(calc(100dvh - 32px), var(--tl-cta-h, 900px));
    padding: 0;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgb(0 0 0 / 0.28);
}
.tl-cta-dialog::backdrop {
    background: rgb(20 24 23 / 0.55);
}
.tl-cta-dialog[open] {
    animation: tl-dialog-in 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.tl-cta-dialog iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
.tl-cta-dialog-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgb(0 0 0 / 0.15);
    font-size: 24px;
    line-height: 1;
    color: #444;
    cursor: pointer;
}
.tl-cta-dialog-close:hover {
    color: #111;
}
.tl-cta-dialog-close:focus-visible {
    outline: 2px solid #00a18f;
    outline-offset: 2px;
}

/* Entrance: plays once when the board scrolls into view (JS adds .tl-intro
   for the duration). Every keyframe ends in the element's resting state, so
   without JS or the class the board is simply visible. */
@keyframes tl-assemble {
    from { opacity: 0; transform: scale(0.9); }
}
@keyframes tl-rise {
    from { opacity: 0; transform: translateY(14px); }
}
@keyframes tl-badge-in {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.82); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes tl-fade {
    from { opacity: 0; }
}

.tl-intro .tl-shadow {
    animation: tl-assemble 700ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.tl-intro .tl-wedge {
    animation: tl-assemble 700ms cubic-bezier(0.16, 1, 0.3, 1) calc(var(--tl-i, 0) * 60ms) backwards;
}
.tl-intro .tl-badge {
    animation: tl-badge-in 520ms cubic-bezier(0.16, 1, 0.3, 1) 380ms backwards;
}
.tl-intro .tl-list {
    animation: tl-rise 600ms cubic-bezier(0.16, 1, 0.3, 1) 260ms backwards;
}
.tl-intro .tl-list-group {
    animation: tl-rise 480ms cubic-bezier(0.16, 1, 0.3, 1) calc(380ms + var(--tl-i, 0) * 45ms) backwards;
}
.tl-cta.tl-intro {
    animation: tl-rise 600ms cubic-bezier(0.16, 1, 0.3, 1) 560ms backwards;
}

.tl-disc.is-open .tl-disc-badge {
    animation: tl-badge-in 380ms cubic-bezier(0.16, 1, 0.3, 1) 60ms backwards;
}
.tl-disc.is-open .tl-disc-close {
    animation: tl-fade 240ms cubic-bezier(0.16, 1, 0.3, 1) 220ms backwards;
}

.tl-dialog[open]::backdrop {
    animation: tl-fade 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
    .tl-intro .tl-shadow,
    .tl-intro .tl-wedge,
    .tl-intro .tl-badge,
    .tl-intro .tl-list,
    .tl-intro .tl-list-group,
    .tl-cta.tl-intro,
    .tl-disc.is-open .tl-disc-badge,
    .tl-disc.is-open .tl-disc-close,
    .tl-dialog[open]::backdrop {
        animation: none;
    }
    .tl-board-interactive .tl-wedge .tl-slice {
        transition: none;
    }
    .tl-chip,
    .tl-list-group,
    .tl-board:not(.tl-board-interactive) .tl-wedge,
    .tl-board-interactive .tl-main,
    .tl-disc,
    .tl-disc.is-open {
        transition: none;
    }
    .tl-disc,
    .tl-disc.is-open {
        -webkit-mask-image: none;
        mask-image: none;
    }
    .tl-chip:hover {
        transform: none;
    }
    .tl-dialog[open] {
        animation: none;
    }
}

/* ==================================================================
   "Eintrag anfragen" call to action below the board
   ================================================================== */

.tl-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin: 1.5rem 0 32px;
    padding: 1.4rem 1.6rem;
    border: 1px solid color-mix(in srgb, var(--tl-accent, #7739b5) 30%, #e5e5e5);
    border-radius: 10px;
    background: color-mix(in srgb, var(--tl-accent, #7739b5) 6%, #fff);
    text-align: left;
}

.tl-cta-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    max-width: 62ch;
    margin: 0;
    color: #1f1f1f;
    font-size: 1.1875rem;
    font-weight: 600;
    line-height: 1.35;
    text-wrap: balance;
}

.tl-cta-btn {
    flex: 0 0 auto;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    background: #111;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.tl-cta-btn:hover,
.tl-cta-btn:focus {
    background: #333;
    color: #fff;
}

.tl-cta-btn:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .tl-cta {
        flex-direction: column;
        align-items: flex-start;
    }
    .tl-cta-text {
        -webkit-line-clamp: unset;
    }
}


.tl-text-above.is-clamped {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 1.5em), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 1.5em), transparent);
}

.tl-more-toggle {
    display: block;
    margin: -1.5rem auto 2.25rem;
    padding: 0.25rem 0.5rem;
    border: 0;
    background: none;
    color: #1d1d1f;
    font: inherit;
    font-size: 0.975rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.tl-more-toggle[hidden] {
    display: none;
}
