/* Shared by case studies and Q&A; column lists and the sidebar use style.css. */
#container.article-page > .inner {
    align-items: flex-start;
}

.article-lead {
    margin: 30px 0;
    font-size: 1.5rem;
    line-height: 1.9;
}

.article-result-count {
    color: #757e8f;
    font-size: 1.3rem;
}

#container.article-page #column .article-list .title {
    margin: 10px 0 0;
    padding: 0;
    border: 0;
    background: none;
}

#container.article-page #column .article-list .title::before {
    display: none;
}

#container.article-page #column .article-list .text {
    min-width: 0;
}

#container.article-page #column .article-list .tags {
    flex-wrap: wrap;
    gap: 5px;
}

#container.article-page #column .article-list .article-list__career {
    margin: 10px 0 0;
    color: #282f38;
    font-size: 1.3rem;
    line-height: 1.6;
}

.article-income {
    color: #cf2e9d;
    font-weight: 700;
}

.article-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 14px 0;
}

.article-page .article-hashtags a.hashtag {
    display: inline-block;
    margin: 0;
    padding: 6px 8px;
    border-radius: 100px;
    color: #5a8ecc;
    background: #e5ebf3;
    font-size: 1.1rem;
    line-height: 1.4;
    text-decoration: none;
}
.article-page .article-hashtags a.hashtag:hover {
    background: #d5e1f0;
}

.article-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dedede;
    color: #bbb;
}

.article-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.article-avatar svg {
    width: 85%;
    height: 85%;
    fill: currentColor;
}

.article-profile {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin: 30px 0;
}

.article-profile .article-avatar {
    width: 150px;
    height: 150px;
    flex: 0 0 150px;
    margin: 0;
}

.article-profile__content {
    flex: 1;
    min-width: 0;
}

#container.article-page #column .article-profile__heading {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0 0 16px;
    padding: 12px 16px;
    border: 0;
    background: #eef0f5;
    font-size: 1.5rem;
    line-height: 1.6;
}
.article-profile__heading::before {
    display: none;
}

.article-profile__intro {
    white-space: pre-line;
    line-height: 1.9;
}

.article-profile__comparison {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.article-profile__career {
    padding: 14px;
    border: 1px solid #dedede;
}

.article-profile__career--after {
    border-color: #5a8ecc;
}

#container.article-page #column .article-profile__career h3 {
    margin: 0 0 12px;
    padding: 8px;
    border: 0;
    background: #eef0f5;
    font-size: 1.4rem;
    text-align: center;
}

#container.article-page #column .article-profile__career--after h3 {
    background: #5a8ecc;
    color: #fff;
}

.article-profile__career dl {
    margin: 0;
}

.article-profile__career dl > div {
    display: flex;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #dedede;
    font-size: 1.3rem;
    line-height: 1.6;
}

.article-profile__career dl > div:last-child {
    border: 0;
}

.article-profile__career dt {
    flex: 0 0 4em;
    white-space: nowrap;
}

.article-profile__career dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.article-agent {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    margin: 36px 0;
    padding: 28px;
    background: #eef0f5;
}

.article-agent > figure {
    flex: 0 0 160px;
    margin: 0;
}

.article-agent > figure img {
    width: 100%;
    height: auto;
}

.article-agent__content {
    flex: 1;
    min-width: 0;
}

#container.article-page #column .article-agent h2 {
    display: inline-block;
    margin: 0 0 16px;
    padding: 6px 12px;
    background: #5a8ecc;
    color: #fff;
    border: 0;
    font-size: 1.5rem;
}

.article-agent h2::before {
    display: none;
}

.article-agent__name {
    font-size: 1.8rem;
    font-weight: 700;
}

.article-agent__name span {
    color: #757e8f;
    font-size: 1.3rem;
    font-weight: 400;
}

.article-agent__profile {
    font-size: 1.4rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.article-agent__profile p,
.article-agent__profile li {
    line-height: 1.9;
}

.article-agent__profile ul,
.article-agent__profile ol {
    margin: .75em 0;
    padding-left: 1.5em;
}

.article-agent__profile ul li {
    list-style: disc;
}

.article-agent__profile ol li {
    list-style: decimal;
}

.article-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.article-badges span {
    padding: 4px 6px;
    background: #8eafda;
    color: #fff;
    font-size: 1.1rem;
}

.article-actions {
    display: flex;
    justify-content: center;
    margin: 36px 0;
}

.article-actions__button {
    display: inline-block;
    padding: 18px 32px;
    background: #5a8ecc;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}

.article-actions__button:hover {
    background: #476e9d;
}

.case-page__back, .taxqa-detail__back {
    margin: 36px 0;
    font-size: 1.4rem;
}

.case-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 120px;
    align-items: end;
    gap: 20px 10px;
    margin: 0 0 30px;
    padding: 24px 28px 20px;
    background: #fff;
    box-shadow: 0 3px 17px rgba(219, 225, 240, 1);
}

.case-filter,
.case-filter * {
    box-sizing: border-box;
}

.case-filter__field {
    min-width: 0;
}

.case-filter__field > label,
.case-filter__label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.4rem;
    font-weight: 600;
}

.case-filter__control {
    position: relative;
    min-width: 0;
}

.case-filter__control::after {
    position: absolute;
    top: 50%;
    right: 15px;
    width: 10px;
    height: 7px;
    background: #5ea2ef;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    content: "";
    pointer-events: none;
    transform: translateY(-50%);
}

.case-filter select,
.case-filter__category-button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 52px;
    padding: 15px 36px 15px 20px;
    border: 0;
    border-radius: 0;
    appearance: none;
    background: #eef0f5;
    color: #282f38;
    font: inherit;
    font-size: 1.5rem;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
}

.case-filter__category-button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.case-filter__category-button:disabled {
    color: #777;
    cursor: default;
}

.case-filter__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 20px;
    border: 0;
    border-radius: 3px;
    background: #0b4ea2;
    color: #fff;
    font: inherit;
    font-size: 1.6rem;
    font-weight: 700;
    cursor: pointer;
}

.case-filter__submit:hover {
    background: #00255c;
}

.case-filter__footer {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #dedede;
}

.case-filter__hint {
    margin: 0;
    color: #555e69;
    font-size: 1.2rem;
    line-height: 1.6;
}

.case-filter__footer a {
    flex-shrink: 0;
    color: #282f38;
    font-size: 1.3rem;
}

.case-filter__dialog {
    position: fixed;
    inset: 0;
    width: min(92vw, 920px);
    max-width: none;
    max-height: min(84dvh, 760px);
    margin: auto;
    padding: 0;
    overflow-y: auto;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #282f38;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
}

.case-filter__dialog::backdrop {
    background: rgba(16, 24, 32, .55);
}

body:has(.case-filter__dialog[open]) {
    overflow: hidden;
}

.case-filter__dialog-header,
.case-filter__dialog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
}

.case-filter__dialog-header {
    border-bottom: 1px solid #e6edf4;
}

.case-filter__dialog-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.5;
}

.case-filter__dialog-close,
.case-filter__dialog-footer button {
    border: 0;
    background: #edf5fb;
    color: #0b4ea2;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.case-filter__dialog-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    font-size: 2rem;
}

.case-filter__dialog-body {
    padding: 20px;
}

.case-filter__dialog-body > p {
    margin: 0 0 16px;
    color: #4e5d79;
    font-size: 1.4rem;
    line-height: 1.6;
}

.case-filter__category-clear {
    display: block;
    margin: 0 0 12px auto;
    padding: 4px 0;
    background: transparent;
    color: #0b4ea2;
    font: inherit;
    font-size: 1.3rem;
    text-decoration: underline;
}

.case-filter__category-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

.case-filter__category-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 8px 0;
    border-bottom: 1px solid #e6edf4;
    font-size: 1.4rem;
    line-height: 1.5;
    cursor: pointer;
}

.case-filter__category-list input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    appearance: auto;
    accent-color: #0b4ea2;
    cursor: pointer;
}

.case-filter__category-list span {
    line-height: 1.5;
}

.case-filter__dialog-footer {
    justify-content: flex-end;
    border-top: 1px solid #e6edf4;
}

.case-filter__dialog-footer button {
    padding: 10px 24px;
    border-radius: 6px;
}

.case-filter :is(button, select, input, a):focus-visible {
    outline: 2px solid #0b4ea2;
    outline-offset: 3px;
}

@media (max-width: 820px) {
    .case-filter {
        grid-template-columns: minmax(0, 1fr);
        padding: 20px;
    }

    .case-filter__footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .case-filter__footer a {
        align-self: flex-end;
    }

    .case-filter__category-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-profile {
        gap: 16px;
    }

    .article-profile .article-avatar {
        width: 90px;
        height: 90px;
        flex-basis: 90px;
    }

    .article-profile__comparison {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-agent {
        flex-direction: column;
        padding: 20px;
    }

    .article-agent > figure {
        flex: auto;
        width: 130px;
    }

}
@media (max-width: 480px) {
    .article-profile {
        flex-direction: column;
    }

    .article-profile__content {
        width: 100%;
    }

}

#container.article-page #column .article-profile__heading::before,
#container.article-page #column .article-agent h2::before,
#container.article-page #column .case-filter__dialog h2::before {
    display: none;
}

#container.article-page #column .case-filter__dialog h2 {
    margin: 0;
    padding: 0;
    background: none;
    font-size: 2rem;
}
