#page.case-list.case-list-detail .works-heading {
    display: block;
}

#page.case-list .works-intro {
    margin: 14px 0 0;
    color: #3d3941;
    font-size: 16px;
    line-height: 1.75;
}

.works-filter-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 16px;
}

#page .works-button,
#works-filter-dialog .works-button,
.works-filter-inline summary {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 18px;
    border: 1px solid #554a84;
    border-radius: 10px;
    background: #554a84;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    cursor: pointer;
}

#page .works-button--secondary,
#works-filter-dialog .works-button--secondary {
    background: #fff;
    color: #554a84;
}

#page .works-button:hover,
#works-filter-dialog .works-button:hover,
.works-filter-inline summary:hover {
    background: #43395f;
    color: #fff;
}

.works-filter-controls [hidden], .works-filter-inline[hidden],
#page img[data-works-photo][hidden], #page .works-missing-photo[hidden] {
    display: none !important;
}

.works-current-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    color: #3d3941;
    font-size: 15px;
    line-height: 1.5;
}

.works-current-filter a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 2px;
    color: #554a84;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.works-filter-inline {
    margin-top: 12px;
}

.works-dialog-open {
    overflow: hidden;
}

#works-filter-dialog:not([open]) {
    display: none;
}

#works-filter-dialog {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    width: min(700px, calc(100% - 28px));
    max-height: min(84vh, 740px);
    max-height: min(84dvh, 740px);
    margin: auto;
    padding: clamp(16px, 4vw, 32px);
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid #d8d1e5;
    border-radius: 18px;
    background: #fff;
    color: #29232f;
    box-shadow: 0 18px 60px rgba(32, 23, 45, .24);
}

#works-filter-dialog::backdrop {
    background: rgba(32, 23, 45, .58);
}

.works-dialog-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e0ec;
}

.works-dialog-heading h2 {
    margin: 0;
    font-size: clamp(18px, 4vw, 26px);
    font-weight: 700;
    line-height: 1.4;
}

.works-dialog-heading button {
    white-space: nowrap;
}

#works-filter-options h3 {
    margin: 18px 0 8px;
    color: #3d3941;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.55;
}

.works-filter-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.works-filter-options a {
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 44px;
    padding: 8px 11px;
    border: 1px solid #d8d1e5;
    border-radius: 8px;
    background: #faf8fc;
    color: #554a84;
    font-size: 15px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.works-filter-options a:hover, .works-filter-options a[aria-current="page"] {
    border-color: #554a84;
    background: #ede8f6;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#page .works-button:focus-visible, .works-filter-inline summary:focus-visible,
.works-current-filter a:focus-visible, .works-filter-options a:focus-visible,
#works-filter-dialog button:focus-visible, #page.case-list .works-card-link:focus-visible {
    outline: 3px solid #246bce;
    outline-offset: 3px;
}

#page.case-list.case-list-detail .main-content {
    margin-top: clamp(24px, 4vw, 50px);
}

#page.case-list .article-main .text .title {
    flex: initial;
    overflow-wrap: anywhere;
}

#page.case-list .works-card-link {
    display: flex;
    flex: 1;
    flex-direction: column;
    color: inherit;
}

#page.case-list .works-card-link:hover {
    opacity: 1;
}

.works-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: auto;
    padding: 8px;
    border-radius: 8px;
    background: #554a84;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.works-card-cta::after {
    margin-left: 8px;
    content: '›';
}

.works-card-link:hover .works-card-cta {
    background: #43395f;
}

#page.case-list .article-main .text {
    gap: 10px;
}

.works-card-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 4px;
    padding: 0;
    list-style: none;
}

.works-card-labels li {
    padding: 4px 8px;
    border-radius: 8px;
    background: #f0edf6;
    color: #484052;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.works-missing-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    padding: 10px;
    background: #f6f7f6;
    color: #514d55;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

#page.case-list .thumb .works-missing-photo {
    position: absolute;
    inset: 0;
}

#page.case-detail .main-content .article-main {
    min-width: 0;
    overflow-wrap: anywhere;
}

#page.case-detail .article-main :is(figure, .wp-caption, img, iframe, video, table, pre) {
    max-width: 100%;
}

#page.case-detail .article-main pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.works-next-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 36px 0;
    padding: clamp(14px, 4vw, 24px);
    border: 1px solid #e4ddeb;
    border-radius: 14px;
    background: #faf8fc;
}

#page .works-next-actions .works-button {
    white-space: normal;
}

@media (max-width: 480px) {
    .works-next-actions .works-button {
        width: 100%;
    }
}
