.cth.ctd .ctd-hero {
    padding-bottom: 64px;
}

.cth .ctd-crumb-title {
    max-width: 38ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cth .ctd-format-icon {
    display: block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.cth.ctd .ctd-title {
    font-size: 40px !important;
    line-height: 1.22 !important;
}

.cth .ctd-card {
    display: flex;
    flex-direction: column;
    max-width: 620px;
}

.cth .ctd-card__snippet {
    margin-bottom: 16px;
}

.cth .ctd-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cth .ctd-form[hidden],
.cth .ctd-done[hidden],
.cth .ctd-form__error[hidden] {
    display: none;
}

.cth .ctd-form__label {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--enh-ink);
}

.cth .ctd-form__field {
    max-width: none;
    margin: 0;
}

.cth .ctd-form__field:has([aria-invalid]) {
    border-color: #D93025;
}

.cth.ctd .ctd-form__submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
}

.cth.ctd .ctd-form__submit:disabled {
    cursor: progress;
    opacity: .75;
}

.cth .ctd-form__error {
    font-size: 14px;
    font-weight: 500;
    color: #D93025;
}

.cth .ctd-done {
    display: flex;
    gap: 18px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--enh-line);
    border-radius: var(--enh-radius);
    box-shadow: 0 18px 40px rgba(12, 37, 50, .08);
    outline: none;
    animation: ctd-rise .35s ease-out;
}

.cth .ctd-done__icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--enh-brand);
    background: var(--cth-brand-soft);
    border-radius: 50%;
}

.cth .ctd-done__copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.cth.ctd .ctd-done__title {
    font-size: 22px !important;
    line-height: 1.3 !important;
    font-weight: 800;
}

.cth .ctd-done__text {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.6;
}

.cth .ctd-art {
    position: relative;
    flex: 1 1 400px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.cth .ctd-art__frame {
    display: block;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--enh-line);
    border-radius: var(--enh-radius);
    box-shadow: 0 24px 56px rgba(12, 37, 50, .16);
    transform: rotate(1.5deg);
    transition: transform .3s ease;
}

.cth .ctd-art__frame:hover {
    transform: rotate(0deg) translateY(-4px);
}

.cth .ctd-art__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.cth .ctd-art__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    color: var(--enh-muted);
    background: var(--cth-sky);
    border-radius: 6px;
}

.cth .ctd-art__placeholder svg {
    width: 56px;
    height: 56px;
}

.cth .ctd-art__placeholder--card {
    width: 100%;
    max-width: 250px;
    height: 200px;
    aspect-ratio: auto;
    background: #fff;
}

.cth .ctd-art__chip {
    position: absolute;
    bottom: -18px;
    left: -18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px 12px 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--enh-ink);
    background: #fff;
    border: 1px solid var(--enh-line);
    border-radius: 2px;
    box-shadow: 0 12px 28px rgba(12, 37, 50, .14);
}

.cth .ctd-bar {
    background: #fff;
    border-bottom: 1px solid var(--enh-line);
}

.cth .ctd-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.cth .ctd-bar__group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.cth .ctd-bar__label {
    margin-right: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--enh-muted);
}

.cth .ctd-format {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--enh-ink);
    background: #fff;
    border: 1px solid var(--enh-line);
    border-radius: 2px;
    transition: border-color .2s ease, color .2s ease;
}

.cth .ctd-format:hover {
    color: var(--enh-brand);
    border-color: var(--enh-brand);
}

.cth .ctd-format.is-current {
    color: var(--enh-brand);
    background: var(--cth-brand-soft);
    border-color: var(--enh-brand);
}

.cth .ctd-share__link,
.cth .ctd-share__copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    color: var(--enh-ink);
    background: #fff;
    border: 1px solid var(--enh-line);
    border-radius: 2px;
    transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

.cth .ctd-share__link {
    width: 38px;
}

.cth .ctd-share__link svg {
    width: 16px;
    height: 16px;
}

.cth .ctd-share__link:hover,
.cth .ctd-share__copy:hover {
    color: var(--enh-brand);
    border-color: var(--enh-brand);
    transform: translateY(-2px);
}

.cth .ctd-share__copy {
    position: relative;
    gap: 8px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.cth .ctd-share__copy.is-copied::after {
    content: attr(data-copied);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    padding: 4px 9px;
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
    background: var(--enh-ink);
    border-radius: 6px;
    transform: translateX(-50%);
}

.cth .ctd-cards {
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.cth .ctd-more-all {
    margin-top: 36px;
}

.cth .cth-band + .ctd-promo-band {
    padding-top: 0;
}

@keyframes ctd-rise {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cth .ctd-done {
        animation: none;
    }

    .cth .ctd-art__frame,
    .cth .ctd-art__frame:hover {
        transform: none;
    }
}

@media (max-width: 991px) {
    .cth.ctd .ctd-title {
        font-size: 34px !important;
    }

    .cth .ctd-art {
        max-width: 460px;
    }
}

@media (max-width: 767px) {
    .cth.ctd .ctd-hero {
        padding-bottom: 56px;
    }

    .cth.ctd .ctd-title {
        font-size: 30px !important;
    }

    .cth .ctd-crumb-title {
        max-width: 20ch;
    }

    .cth .ctd-art__chip {
        left: 12px;
    }

    .cth .ctd-done {
        flex-direction: column;
        padding: 20px;
    }
}

@media (max-width: 479px) {
    .cth.ctd .ctd-title {
        font-size: 26px !important;
    }

    .cth .ctd-form__field {
        flex-wrap: wrap;
        padding: 6px;
    }

    .cth .ctd-form__field .enh-search__icon {
        display: none;
    }

    .cth .ctd-form__field input {
        flex-basis: 100%;
        padding: 0 10px;
    }

    .cth.ctd .ctd-form__submit {
        flex: 1 1 100%;
        justify-content: center;
    }
}
