
.hero {
    height: calc(100vh - min(60vw, 30rem));
    background-color: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.title-container {
    width: 100%;
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero h1 {
    font-size: min(6rem,10vw);
    text-align: center;
    z-index: 2;
    margin: 0 auto;
    padding-right: 1em;
    padding-bottom: 0.2em;
}

.hero p {
    font-size: min(var(--fs-h3), 6vw);
    text-align: center;
    color: var(--neutral-cool-dark);
    z-index: 2;
    margin: 0 auto;
    padding: 0 1rem;
}

.invisible {
    opacity: 0;
    max-height: 0;
    filter: blur(0.05rem);
    transform: translate(0, 1rem);
    transition: opacity .3s ease-out, filter .3s ease-out, transform .5s ease-out, max-height 1.5s ease-out;
}

.visible {
    opacity: 1;
    filter: blur(0);
    max-height: 1000px;
    transition: opacity .3s ease-out, filter .3s ease-out, transform .5s ease-out;
}

.hero-image-container {
    width: 100%;
    background-color: var(--background);
}

.hero-image-container > .hero-image-group {
    position: relative;
    width: min(80rem, 100%);
    margin: 0 auto;
}

.shadow {
    position: absolute;
    width: 100%; /* Match the product size */
    opacity: 1; /* Adjust shadow visibility */
    filter: blur(1px); /* Slight blur for realism */
    z-index: 1; /* Keep it behind the product */
    mix-blend-mode: multiply; /* Blend with the background */
}

.product {
    position: relative;
    width: 100%; /* Adjust as needed */
    z-index: 2; /* Keep it above the shadow */
}

.series {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: space-evenly;
    // padding: 0 calc((100% - 60rem) / 2);
    background-color: var(--background);
}

section {
    padding: 6rem calc((100% - 60rem) / 2);
    position: relative;
}

section#features,
section#other {
    box-shadow: 2px 2px 4px -2px var(--neutral-400);
}

.series > .block-feature_item, .series > .icon-button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    // width: 15rem;
}

.series > div > img {
    width: 10rem;
    height: 10rem;
}

.series > div > .text-group {
    display: flex;
    flex-direction: column;
    height: 5rem;
}

.series > div > .text-group > * {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.series > div h2 {
    color: var(--primary);
    font-size: var(--fs-h4);
    margin: 0;
}

.series > div h3 {
    color: var(--neutral-cool-dark);
    font-size: var(--fs-text);
    margin: 0;
}

#structure {
    flex-direction: column;
    align-items: center;
    background-color: var(--neutral-100);
}

section > .title > h2 {
    font-size: var(--fs-h1);
    color: var(--secondary);
    text-align: center;
    line-height: var(--lh-h1);
}

section > .title > h2::after {
    content: '';
    display: block;
    width: 6rem;
    height: 0.25rem;
    background-color: var(--primary);
    margin: 1rem auto 0 auto;
    border-radius: 0.125rem;
}

section > .block-description > p {
    font-size: var(--fs-h4);
    color: var(--neutral-cool-dark);
    max-width: 40rem;
    text-align: center;
    margin: 2rem auto;
    padding: 0 1rem;
}

#structure img {
    width: 100%;
    margin: auto;
    object-fit: contain;
}

#structure blockquote {
    font-size: var(--fs-text);
    color: var(--neutral-cool-dark);
    text-align: center;
}


section#other {
    background-color: var(--background);
    // padding: 0;
}


#other > div > h2 {
    color: var(--secondary);
}

.series button {
    width: 11rem;
    height: 3rem;
    background-color: var(--neutral-100);
    box-shadow: 1px 1px 1px -1px var(--neutral-400);
    border: 1px solid var(--background);
    border-radius: 2rem;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.series button:hover,
.series button.active {
    background-color: var(--primary);
    box-shadow: 0 0 0.5rem -0.1rem var(--neutral-cool-dark);
    transition: background-color .1s ease-out, box-shadow 0.2s ease-out;
}

.series button span {
    padding: 0;
    margin: 0;
    flex: 1;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--neutral-500);
    white-space: nowrap;
}


.series button:hover span,
.series button.active span {
    color: white;
    transition: color 0.2s ease-out;
}

.expand-detail {
    display: flex;
    gap: 3rem;
    flex-direction: column;
    flex-basis: 100%;
    order: 1;
    margin: 4rem auto;
    padding: 4rem;
    background-color: var(--neutral-100);
    box-shadow: 2px 2px 4px -2px var(--neutral-400);
    border-radius: 1rem;
    justify-content: center;
    max-height: 1000px;
    overflow: hidden;
    opacity: 1;
    transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.4s ease, padding 0.4s ease;
}

.expand-detail img {
    height: auto;
    object-fit: cover;
    border-radius: 1rem;
}

.expand-detail div p {
    color: var(--secondary);
    font-size: var(--fs-text);
    font-weight: var(--fw-regular);
    line-height: var(--lh-text);
    text-align: left;
}

.expand-detail div h3 {
    font-size: var(--fs-h3);
    font-weight: var(--fw-strong);
    color: var(--primary);
}

.expand-detail li {
    color: var(--secondary);
    padding-left: .3rem;
    margin-bottom: .7rem;
}

.expand-detail li::marker {
    color: var(--primary);
    content: "✓ ";
    font-size: 1.1em;
}

.folded {
    max-height: 0 !important;
    opacity: 0 !important;
    padding: 0 2rem !important;
    margin: 0 auto !important;
    border-color: transparent !important;
}

/* table */

.block-table {
    width: 100%;
    overflow-x: auto;
    background: linear-gradient(to right, white 30%, rgba(255, 255, 255, 0)),
    linear-gradient(to right, rgba(255, 255, 255, 0), white 70%) 0 100%,
    radial-gradient(
            farthest-side at 0% 50%,
            rgba(0, 0, 0, 0.2),
            rgba(0, 0, 0, 0)
    ),
    radial-gradient(
            farthest-side at 100% 50%,
            rgba(0, 0, 0, 0.2),
            rgba(0, 0, 0, 0)
    ) 0 100%;
    background-repeat: no-repeat;
    /*background-color: white;*/
    background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
    background-position: 0 0, 100%, 0 0, 100%;
    background-attachment: local, local, scroll, scroll;
}

table {
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

table > caption {
    font-size: var(--fs-text);
    font-weight: var(--fw-regular);
    color: var(--primary);
    padding: 1rem 0 0.5rem 0.1rem;
    text-align: left;
    background-color: var(--article-background);
}

tbody td {
    border-bottom: 1px dashed #00000011;
}

/*tbody tr:nth-child(even) {*/
/*    background-color: #eee;*/
/*}*/

th {
    background-color: var(--neutral-cool-dark);
    color: white;
    padding: 0.6rem;
    white-space: nowrap;
    min-width: 10rem;
}

td {
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

td:first-child {
    min-width: 8rem;
}

td:not(:first-child) {
    text-align: center;
}

td.htLeft {
    text-align: left;
}

td.htCenter {
    text-align: center;
}

td.htRight {
    text-align: right;
}

/* image group */
.block-image_group {
    background-color: var(--neutral-100);
    border-radius: 5px;
    padding: 1rem;
    margin: 4rem 0;
    border: 1px solid var(--neutral-200);
    box-shadow: 3px 3px 5px var(--neutral-200);
}

.block-image_group:has(.image-group-single),
.block-image_group:has(.image-group-grid),
.block-image_group:has(.image-group-grid-3),
.block-image_group:has(.image-group-grid-4),
.block-image_group:has(.image-group-plain_grid),
.block-image_group:has(.image-group-plain_grid-3),
.block-image_group:has(.image-group-plain_grid-4) {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.image-group-single > .image {
    padding: 0 1rem;
}

.image-group,
.image-group-grid,
.image-group-grid-3,
.image-group-grid-4,
.image-group-plain_grid,
.image-group-plain_grid-3,
.image-group-plain_grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    grid-gap: 2rem;
    align-items: baseline;
}

.image-group-grid-3, .image-group-plain_grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.image-group-grid-4, .image-group-plain_grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.block-image_group > .image-group-grid img {
    margin: auto;
    width: 100%;
    object-fit: cover;
}

.image-group-grid > .image {
    padding: 1rem;
    background-color: var(--neutral-100);
    border-radius: 5px;
    border: 1px solid var(--neutral-200);
    box-shadow: 3px 3px 5px var(--neutral-200);
}

.image-group-scroll_right {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1rem;
    align-items: baseline;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    /*scrollbar-color: transparent transparent;*/
    background: linear-gradient(to right, white 30%, rgba(255, 255, 255, 0)),
    linear-gradient(to right, rgba(255, 255, 255, 0), white 70%) 0 100%,
    radial-gradient(
            farthest-side at 0% 50%,
            rgba(0, 0, 0, 0.2),
            rgba(0, 0, 0, 0)
    ),
    radial-gradient(
            farthest-side at 100% 50%,
            rgba(0, 0, 0, 0.2),
            rgba(0, 0, 0, 0)
    ) 0 100%;
    background-repeat: no-repeat;
    /*background-color: white;*/
    background-size: 40px 90%, 40px 90%, 14px 90%, 14px 80%;
    background-position: 0 0, 100%, 0 0, 100%;
    background-attachment: local, local, scroll, scroll;
}

.image-group-scroll_right::-webkit-scrollbar {
    /*display: none;*/
}

.image-group-scroll_right > .image > img {
    border-radius: 5px;
}

.right-note {
    text-align: right;
    color: var(--neutral-cool-dark);
    margin-top: -3rem;
}

img.richtext-image.left {
    width: min(100%, 20rem);
    object-fit: contain;
}

img.richtext-image.full-width {
    width: 100%;
    height: auto;
    max-height: 65vh;
    object-fit: cover;
    margin: 4rem auto;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid var(--neutral-200);
    box-shadow: 1px 1px 3px -1px var(--neutral-600);
    background-color: var(--neutral-100);
}


@media (max-width: 52rem) {
    .series {
        display: initial;
    }

    .series > * {
        margin: 3rem auto;
    }

    .expand-detail {
        order: 0;
        padding: 4rem 0;
        width: fit-content;
        max-width: 100%;
    }

    .expand-detail .block-paragraph {
        padding: 0 3rem;
    }

    table > caption {
        padding: 1rem 0 1rem 2.5rem;
    }
}
