:root {
    --text-shadow-color: #333;
    --text-color: rgb(0, 48, 99);
    --text-color-alpha: rgba(0, 48, 99, 0.85);
    scroll-behavior: smooth;
    --max-content-width: 1280px;
    --blue: rgb(0, 48, 99);
    --blue-alpha: rgba(0, 48, 99, 0.85);
    --blue-hover: rgb(0, 159, 227);
}

.jf-grid-card-container {
    display: grid;
    grid-template-columns: repeat(3, [col-start] fit-content(9rem));
    grid-auto-rows: fit-content(12rem) minmax(10rem, 14rem) auto auto;
    gap: 0.5rem;
    justify-content: center;
}

.jf-content {
    container-type: inline-size;
}

.jf-cards-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 0.5rem;
    justify-content: center;
    container-type: inline-size;
}

/* SUBGRID */

.jf-card {
    grid-column: span 1;
    grid-row: span 4;
    display: grid;
    grid-template-columns: subgrid [card-start][button-start][col][card-end button-end];
    grid-template-rows: subgrid [photo-start][photo-end title-start] [title-end text-start] [text-end button-start] [button-end];
    row-gap: 0;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    margin: 0 0.5rem 1rem 0.5rem;
}

/* SUBGRID IN SUBGRID */

.jf-card-header-wrapper {
    grid-column: card;
    grid-row: title;
    display: grid;
    grid-template-columns: subgrid;
    grid-template-rows: fit-content(6rem) fit-content(6rem);
    grid-template-areas: "title title title";
    align-items: end;
    padding-inline: 1rem;
}

/* CARD DETAILS */

.jf-card-title {
    grid-area: title;
    font-size: 2rem;
}

.jf-card-title span {
    font-size: 0.5em;
}

.jf-card-photo-wrapper {
    grid-column: card;
    grid-row: photo;
    margin-bottom: 0.5rem;
}

.jf-card-photo {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.jf-card-text {
    grid-column: col-start / span 3;
    grid-row: text;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding-inline: 1rem;
}

.jf-card-like {
    grid-column: 1/2;
    grid-row: button;
    width: 2.5rem;
    height: 2.5rem;
    align-self: end;
    cursor: pointer;
}

.jf-card-button {
    display: block;
    grid-area: button;
    min-width: 4rem;
    height: 2.5rem;
    line-height: 2.5rem;
    background-color: var(--blue);
    border: none;
    border-radius: 0.25rem;
    padding: 0 0.75rem;
    color: white;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    justify-self: end;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 8rem;
    margin: 1rem;
    transition: background-color 0.2s ease-in;
}

.jf-card-button:hover {
    background-color: var(--blue-hover);
}

@supports not (grid-template-columns: subgrid) {
    .jf-card {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 9rem 15rem auto auto;
    }

    .jf-card-header-wrapper,
    .jf-card-photo-wrapper,
    .jf-card-text {
        grid-column: 1/-1;
        grid-row: span 1;
    }

    .jf-card-text {
        margin-bottom: 0;
    }

    .jf-card-button {
        grid-column: 3/-1;
        align-self: end;
    }
}

@container (min-width: 480px) {
    .jf-content .jf-cards-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

@container (min-width: 700px) {
    .jf-content .jf-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@container (min-width: 1024px) {
    .jf-content .jf-cards-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Map */

orca-map {
    box-shadow: 0 1px 5px 2px rgba(200, 200, 200, 0.5);
}
orca-map h1 {
    font-size: clamp(3rem, -0.875rem + 8.333vw, 4.5rem);
    line-height: 1.25em;
    text-align: left;
    max-width: var(--max-content-width);
    color: #fff;
    font-weight: bold;
    /* -webkit-text-stroke: 1px #000; */
    text-shadow: 0 0 7px #666;
    position: absolute;
    bottom: 20px;
    left: calc(var(--max-content-width) / 2);
    font-family: "Oswald", sans-serif;
    z-index: 10;
}

/* Accordion */

.accordion-item-header {
    font-family: "Oswald", sans-serif;
    font-size: 1.75em;
    padding: 20px;
    background-color: var(--blue);
    color: #e2e2e2;
    cursor: pointer;
    box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.accordion-item-header > span:first-child {
    flex-grow: 1;
}
.accordion-item-header > span {
    pointer-events: none;
}
.accordion-item-header-smaller {
    font-family: "Roboto", sans-serif;
    font-size: 0.75em;
    margin-left: 10px;
}
.accordion-item-header:before {
    display: block;
    content: "+";
    float: left;
    padding-right: 16px;
    width: 30px;
}
.accordion-item-header:hover,
.accordion-item.active .accordion-item-header {
    background-color: var(--blue-hover);
    color: white;
}
.accordion-item.active .accordion-item-header-smaller {
    display: none;
}
.accordion-item.active .accordion-item-header:before {
    content: "-";
}
.accordion-item-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s ease-out;
    margin: 0 0 10px 0;
}
.accordion-item-body.active {
    grid-template-rows: 1fr;
}
.accordion-item-body-content-wrapper {
    overflow: hidden;
    display: flex;
    flex-direction: row;
    font-size: 1.1em;
}
.accordion-item-body-content-wrapper li {
    list-style: none;
}
.accordion-item-body-content-wrapper li:before {
    color: #02a303;
    content: "✓";
    font-size: 1.25em;
    font-weight: bold;
    margin: 0 10px 0 0;
}
.accordion-item-body-content {
    padding: 20px;
    width: 100%;
}
.accordion-item-body-content h1,
.accordion-item-body-content h2,
.accordion-item-body-content h3,
.accordion-item-body-content h4,
.accordion-item-body-content h5,
.accordion-item-body-content h6 {
    font-family: "Roboto", sans-serif;
    font-weight: bold;
    font-size: 1em;
    margin: 10px 0;
    color: black;
}
.accordion-item-body-content table,
.jf-card-text table {
    border: none;
}
.accordion-item-body-content table thead,
.jf-card-text table thead {
}
.accordion-item-body-content table thead th,
.jf-card-text table thead th {
}
.accordion-item-body-content table thead th td,
.jf-card-text table thead th td {
}
.accordion-item-body-content table tbody,
.jf-card-text table tbody {
}
.accordion-item-body-content table tbody tr,
.jf-card-text table tbody tr {
    border-bottom: 1px dotted #ccc;
    background-color: transparent;
}
.accordion-item-body-content table tbody tr td,
.jf-card-text table tbody tr td {
    border: none;
    padding: 10px;
}
.accordion-item-body-sidebar {
    background-color: #fafafa;
    padding: 20px;
    width: 34%;
}
.accordion-item-body-sidebar dl {
    margin-top: 10px;
    font-size: 1.1em;
}
.accordion-item-body-sidebar dl dt {
    font-weight: bold;
    font-family: "Oswald", sans-serif;
}
.accordion-item-body-sidebar dl dd {
    margin-top: 5px 0 15px 20px;
    padding-bottom: 12px;
}
.accordion-item-body li p {
    display: inline;
}
.accordion-item-body img {
    max-width: 100%;
}

@media only screen and (max-width: 1023px) {
    .accordion-item-body-content-wrapper {
        flex-direction: column;
    }
    .accordion-item-body-content {
        width: 100%;
    }
    .accordion-item-body-sidebar {
        width: 100%;
    }
}

/* Misc */

.orca-button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #003063;
    color: #e2e2e2;
    border: none;
    font-family: "Oswald", sans-serif;
    font-size: 1.25em;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border-radius: 5px;
    box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.3);
    margin-top: 10px;
    margin-bottom: 10px;
}
.orca-button:hover {
    background-color: #009fe3;
    color: white;
}

@media only screen and (max-width: 1023px) {
    .orca-flex-rows {
        flex-direction: column;
    }
    .orca-flex-rows > div {
        width: 100% !important;
    }
}
