/* Kathartic Studios product and video components. */
.kat-os-pill-list {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--kat-os-pill-gap, 8px);
    margin: 0;
    padding: 0;
}

.kat-os-pill.button {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    min-height: 0;
    margin: 0;
    padding: var(--kat-os-pill-pad-y, 7px) var(--kat-os-pill-pad-x, 12px);
    border: 0;
    border-radius: var(--kat-os-pill-radius, 999px);
    box-shadow: none;
    font-family: inherit;
    font-size: var(--kat-os-pill-font-size, 13px);
    font-weight: inherit;
    line-height: 1.25;
    letter-spacing: inherit;
    text-align: center;
    text-decoration: none !important;
    text-transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.kat-os-product-pill.button {
    background-color: var(--kat-os-product-bg, #e2d2cb);
    color: var(--kat-os-product-text, #2c2725);
}

.kat-os-product-pill.button:hover,
.kat-os-product-pill.button:focus-visible {
    background-color: var(--kat-os-product-hover-bg, #cbb9b1);
    color: var(--kat-os-product-text, #2c2725);
}

.kat-os-other-pill.button {
    background-color: var(--kat-os-other-bg, #706956);
    color: var(--kat-os-other-text, #ffffff);
}

.kat-os-other-pill.button:hover,
.kat-os-other-pill.button:focus-visible {
    background-color: var(--kat-os-other-hover-bg, #565141);
    color: var(--kat-os-other-text, #ffffff);
}

.kat-os-pill.button:hover {
    transform: translateY(-1px);
    text-decoration: none !important;
}

.kat-os-pill.button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    text-decoration: none !important;
}

.kat-os-pill.button:visited {
    text-decoration: none !important;
}

.kat-os-video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--kat-os-video-radius, 8px);
    background: #000;
}

.kat-os-video-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.kat-os-faq-list {
    margin: 0 0 32px;
    border-top: 1px solid rgba(44, 39, 37, 0.18);
}

.kat-os-faq-item {
    margin: 0;
    border-bottom: 1px solid rgba(44, 39, 37, 0.18);
}

.kat-os-faq-item summary {
    position: relative;
    display: block;
    padding: 16px 40px 16px 0;
    cursor: pointer;
    font-weight: 600;
    line-height: 1.4;
    list-style: none;
}

.kat-os-faq-item summary::-webkit-details-marker {
    display: none;
}

.kat-os-faq-item summary::after {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: translateY(-70%) rotate(45deg);
    transition: transform 160ms ease;
}

.kat-os-faq-item[open] summary::after {
    transform: translateY(-30%) rotate(225deg);
}

.kat-os-faq-item summary:hover,
.kat-os-faq-item summary:focus-visible {
    color: #706956;
}

.kat-os-faq-item summary:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.kat-os-faq-item > p {
    margin: 0;
    padding: 0 40px 16px 0;
}

.kat-os-product-projects {
    margin: 32px 0;
}

.kat-os-product-projects h2 {
    margin: 0 0 16px;
}

.kat-os-project-cards {
    display: grid;
    grid-auto-columns: minmax(220px, 78%);
    grid-auto-flow: column;
    gap: 16px;
    overflow-x: auto;
    padding: 2px 2px 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.kat-os-project-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(44, 39, 37, 0.14);
    border-radius: 8px;
    background: #fff;
    scroll-snap-align: start;
}

.kat-os-project-card a {
    display: grid;
    height: 100%;
    color: inherit;
    text-decoration: none !important;
}

.kat-os-project-card-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e2d2cb;
}

.kat-os-project-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 160ms ease;
}

.kat-os-project-card a:hover .kat-os-project-card-image,
.kat-os-project-card a:focus-visible .kat-os-project-card-image {
    transform: scale(1.03);
}

.kat-os-project-card-title,
.kat-os-project-card-cta {
    padding: 0 16px;
}

.kat-os-project-card-title {
    padding-top: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.kat-os-project-card-cta {
    padding-top: 8px;
    padding-bottom: 16px;
    color: #706956;
    font-size: 0.875em;
}

.kat-os-project-card a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}

@media (min-width: 768px) {
    .kat-os-project-cards {
        grid-auto-columns: minmax(0, 1fr);
        grid-auto-flow: row;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        overflow: visible;
    }
}
