/* Skip navigation link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
}

.skip-link:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    font-size: 1rem;
    text-decoration: none;
}

/* Root elements */
:root {
    --primary-color: #3a5073;
    --primary-active-color: #333533;
    --secondary-color: #e9eff9;
    --focus-color: #2991cc;
    --destructive-color: #d54f46;
    --text-color: #2a282c;
    --navbar-branding-text-color: #4E5050;
    --scaled-down-text-size: 1rem;
    --text-muted: #5a5a5a;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    font-family: "Source Sans 3", "Noto Sans", sans-serif;
    background: radial-gradient(39% 39% at 50% 50%, rgba(233, 239, 249, 0.7) 0%, rgba(233, 239, 249, 0) 100%);
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

/* For our forced external links, lets add some SR only indicator of opening in
 * a new tab*/
a.external-link::after {
    content: " (opens in new tab)";
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Global element styles */
h1, h2, h3, h4, p, ol, ul, blockquote {
    color: var(--text-color);
    line-height: 1.3;
    margin: 0.75em 0;
}

h1 {
    font-family: "Archivo Black", "Noto Sans", sans-serif;
    font-size: 2.5rem;
}

h2 {
    font-family: "Archivo Black", "Noto Sans", sans-serif;
    font-size: 2.3rem;
}

h3 {
    font-size: 2rem;
    font-weight: bold;
}

h4 {
    font-size: 1.7rem;
    font-weight: bold;
}

p, ul, ol {
    font-size: 1.5rem;
}

p.subheadline {
    font-size: 2rem;
}

a {
    color: var(--primary-color);
}

nav a {
    text-decoration: none;
}

blockquote {
    font-style: italic;
    margin: 1.5em 0;
    text-align: center;
}

/* Navbar base */
.navbar {
    display: flex;
    padding: 16px 16px 0 16px;
    justify-content: flex-start;
    max-width: 1600px;
    margin: auto;
}

.navbar-container {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.navbar-logo {
    padding-right: 1rem;
    align-self: flex-start;
}

.navbar-ia-logo {
    padding-left: 0.5rem;
    align-self: flex-start;
}

.navbar-logo img,
.navbar-ia-logo img {
    width: 75px;
    height: auto;
}

.navbar-menu-container {
    display: flex;
    flex-grow: 1;
}

.navbar-menu-items {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    align-items: center;
}

.navbar-menu-item {
    display: list-item;
    font-size: clamp(1.3rem, 1.5rem, 2vw);
    padding: 0.5rem;
    white-space: nowrap;
}

.navbar-ia-text {
    margin-left: auto;
    text-align: right;
    white-space: wrap;
}

.navbar-ia-text a {
    font-style: italic;
    color: var(--navbar-branding-text-color);
}

.navbar-login-container {
    font-weight: bold;
}

/* Navbar mobile */
.navbar-side-menu,.navbar-burger-label {
    display: none;
}

.navbar-burger-label {
    cursor: pointer;
    float: right;
    padding: 2.5rem 1.5rem;
}

.navbar-burger-line {
    background: var(--primary-active-color);
    display: block;
    height: 2px;
    position: relative;
    width: 24px;
}

.navbar-burger-line::before,.navbar-burger-line::after {
    background: var(--primary-active-color);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}

.navbar-burger-line::before {
    top: 5px;
}

.navbar-burger-line::after {
    top: -5px;
}

.navbar-burger-menu-container {
    display: none;
}

.navbar-burger-menu-items {
    display: none;
}

.navbar-side-menu-container {
    display: flex;
}

/* Div container styles */
.content-container {
    padding: 32px 130px;
    max-width: 1600px;
    margin: auto;
}

/* Footer styles */
.footer-container {
    display: flex;
    flex-direction: column;
    text-align: center;
    max-width: 1600px;
    margin: auto;
}

.footer-container img {
    max-width: 5%;
    margin: auto;
}

.footer-container h2 {
    margin: auto;
    font-size: 1.25rem;
    width: 75%;
}

.footer-container p {
    margin: auto;
    font-size: var(--scaled-down-text-size);
    width: 80%;
    padding: 0.5rem 0.75rem;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
}

.footer-links-right > a {
    margin: 0 1rem;
}

/* --- WAGTAIL BLOCK STYLES ------------------------------------------------ */
/* Product cards */
.product-cards-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    padding-bottom: 1rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--secondary-color);
    border-radius: 2rem;
    padding: 2rem;
    width: 33%;
    min-width: 150px;
}

.product-card-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.product-card-title,
.product-card-text {
    color: var(--primary-color);
    margin: 1em 0;
}

.product-card-text {
    font-size: var(--scaled-down-text-size);
    margin-top: 2px;
}

.product-card-header {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
}

/* Carousel */
.carousel-container {
    display: flex;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}

.carousel-arrow {
    width: clamp(55px, 6vw, 80px);
    height: clamp(55px, 6vw, 80px);
    z-index: 1;
    border-radius: 50%;
    border-width: 0;
    background: var(--primary-color);
    align-self: center;
}

.carousel-arrow-svg {
    fill: var(--secondary-color);
    width: clamp(40px, 5vw, 70px);
    height: clamp(20px, 3vw, 35px);
}

.carousel-arrow.arrow-right {
    margin-left: -2em;
}

.carousel-arrow.arrow-left {
    margin-right: -1em;
}

.carousel-arrow:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

.carousel-slide-link:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

.carousel-slides-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.carousel-slide {
    display: flex;
    flex-direction: column;
    flex: 0 0 32%; /* three slides visible at a time with gap */
    max-width: 400px;
    justify-content: space-between;
    background: var(--secondary-color);
    border-radius: 2rem;
    padding: 1.5rem;
    scroll-snap-align: start;
    box-sizing: border-box;
}

.carousel-slide-header {
    align-self: flex-start;
    width: 100%;
}

.carousel-slide-title {
    font-size: 1.5rem;
    padding: 0.5em 0;
}

.carousel-slide-title,
.carousel-slide-text {
    color: var(--primary-color);
    margin: 0;
}

.carousel-slide-spacer {
    flex: 1;
}

.carousel-slide-spacer-2x {
    flex: 2;
}

.carousel-image-container {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.carousel-slide-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    object-fit: contain;
}

.carousel-slide-text {
    font-size: var(--scaled-down-text-size);
    padding-bottom: 0.5rem;
}

.carousel-slide-link {
    justify-self: flex-end;
}

carou-scroll {
    display: flex;
    scroll-behavior: smooth;
    overflow-y: hidden;
    margin-left: -1rem;
    margin-right: -1rem;
}

/* Button for product card, carousel, button block */
.product-card-link,
.carousel-slide-link,
.button-block .button {
    font-size: var(--scaled-down-text-size);
    font-weight: bold;
    text-align: center;
    border: 2px solid var(--primary-color);
    padding: 1vw;
    border-radius: 0.5em;
    color: var(--primary-color);
    background-color: var(--secondary-color);
    text-decoration: unset;
}

.product-card-link:hover,
.carousel-slide-link:hover,
.button-block .button:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* Accordion */
.accordion-container {
    border-radius: 1.5rem;
    margin-bottom: 1.5rem;
}

.accordion-container .details-container h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    padding-left: 0;
}

.accordion-container .details-container[open] h3 {
    color: var(--secondary-color);
}

.accordion-container p {
    font-size: 1.25rem;
    color: var(--secondary-color);
}

.accordion-container .details-container {
    background-color: var(--secondary-color);
    padding: 0.75rem;
    margin: 0.25rem 0;
}

.accordion-container .details-container[open] {
    background-color: var(--primary-color);

}

.accordion-container .details-container:first-child {
    border-radius: 1.5rem 1.5rem 0 0;
}

.accordion-container .details-container:last-child {
    border-radius: 0 0 1.5rem 1.5rem;
}

.accordion-container summary  {
    list-style: none;
}

/* Accordion disclosure triangle Safari fix */
.accordion-container summary::-webkit-details-marker {
    display: none;
}

/* Gallery */
.gallery-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.gallery-container .gallery-image-container {
    margin: 2px;
    overflow: hidden;
}

.gallery-container .gallery-image-container:first-child {
    border-radius: 2rem 0 0 2rem;
}

.gallery-container .gallery-image-container:last-child {
    border-radius: 0 2rem 2rem 0;
}

/* Expandable text */
.expandable-text {
    margin: 0.5rem 0;
}

.expandable-text summary {
    display: flex;
    font-size: 2rem;
    margin: 0.5rem 0;
}

.expandable-text summary::after {
    content: '';
    width: 1.5rem;
    height: 1.5rem;
    background: url('../icons/arrow-down-circle-fill.svg');
    background-size: cover;
    margin: 0.75rem 0.75rem;
    transition: 0.5s;
}

.expandable-text summary::marker {
    color: var(--primary-color);
}

.expandable-text details[open] summary::after {
    transform: rotate(-180deg);
}

.expandable-text details p {
    font-size: 1.25rem;
}

/* --- END WAGTAIL BLOCK STYLES -------------------------------------------- */

/* Home page */
.home-page-top {
    display: flex;
    align-items: flex-start;
    padding-bottom: 20px;
    gap: 12px;
}

.home-page-top-right img {
    width: 35vw;
    height: auto;
}

/* blog index page */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 16px;
    margin: 0 auto;
}

.blog-top-details {
    max-width: fit-content;
    margin: auto;
}

/* blog index page blog post cards */
.blog-post-card {
    padding: 10px;
}

.blog-post-card-categories {
    display: flex;
    flex-wrap: wrap;
}

.blog-post-card-categories .blog-post-categories {
    margin: 0;
    padding: 0;
    justify-content: left;
}

.blog-post-card h2 {
    font-family: "Source Sans 3", "Noto Sans", sans-serif;
    font-size: 2rem;
    font-weight: bold;
    margin: 0.5em 0;
}

.blog-post-card a {
    text-decoration: underline;
}

.blog-post-date p {
    margin: 0.25rem 0;
}

.blog-post-excerpt p {
    font-size: var(--scaled-down-text-size);
    margin: 0.5rem 0;
}

.blog-post-card-hero-image img {
    text-align: center;
    width: 100%;
    max-height: 200px;
    object-fit: scale-down;
    border-radius: 8px;
    padding: 0 10px;
}

/* blog post page */
.blog-details p,
.blog-post-container h1,
.blog-index-container h1,
.blog-content-container h2 {
    text-align: center;
}

/* ignore empty p tags from blog post migration */
.blog-content-container p:empty {
    display: none;
}

/* blog post categories */
.blog-post-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.blog-post-categories p,
.blog-post-categories button {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: var(--scaled-down-text-size);
    position: relative;
    margin: 0;
    border: none;
    font-family: inherit;
}

.blog-post-categories-index .blog-post-categories button {
    cursor: pointer;
}

.blog-post-categories-index {
    margin: 1.5rem 0;
}

.blog-category {
    background: var(--secondary-color);
}

.blog-category-selected {
    background: var(--primary-color);
    color: whitesmoke;
}

/* blog post pagination */
.blog-post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    gap: 10px;
}

.blog-post-navigation a {
    font-size: var(--scaled-down-text-size);
    max-width: 45%;
}

.previous-post {
    text-align: right;
}

.next-post {
    text-align: left;
}

/* blog index and explore page search bar */
.search-bar-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.search-form {
    display: flex;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 30px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 30px 0 0 30px;
}

.search-button {
    border: none;
    padding: 10px 20px;
    color: black;
    cursor: pointer;
    border-radius: 0 30px 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background-color: transparent;
}

.search-button i {
    font-size: var(--scaled-down-text-size);
}

/* image with caption */
.image-with-caption {
    display: flex;
    align-items: center;
    margin-bottom: 1em;
    justify-content: center;
}

.image-with-caption figure {
    margin: 0;
    display: flex;
    align-items: center;
}

.image-with-caption img {
    max-width: 100%;
    height: auto;
}

.image-with-caption figcaption,
.image-with-text figcaption {
    font-style: italic;
    padding: 0.5em;
}

/* image with text */
.image-with-text {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem 0;
}

.image-with-text figure {
    margin: 0;
    display: flex;
    align-items: center;
}

.image-with-text .image-container {
    flex-shrink: 0;
}

.image-with-text .image-container img {
    max-width: 100%;
    height: auto;
    display: block;
}

.shadow-true img {
    box-shadow: 5px 5px 5px lightgray;
}

.rounded-corners-true img {
    border-radius: 0.75rem;
}

.border-true img {
    border-style: solid;
    border-color: black;
    border-width: 2px;
}

.text-alignment-top {
    align-self: flex-start;
}

.text-alignment-center {
    align-self: center;
}

.bold_link_text p {
    font-weight: bold;
}

.bold_link_text img {
    height: 0.7em;
    vertical-align: baseline;
    padding-left: 0.2em;
}

.caption-left .text-container {
    padding-right: 2.25rem;
}

.caption-right .text-container {
    padding-left: 2.25rem;
}

.caption-bottom figure {
    flex-direction: column;
}

.caption-bottom .image-container {
    align-self: center;
}

.caption-left figure {
    flex-direction: row;
    text-align: left;
}

.caption-right figure {
    flex-direction: row-reverse;
    text-align: left;
}

/* adjacent images with captions */
.adjacent-images-with-captions {
    justify-content: center;
}

.adjacent-images-image-container {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.adjacent-images-image {
    flex: 1;
    text-align: center;
    margin: 0;
}

.adjacent-images-with-captions img {
    height: 300px;
    width: 100%;
    object-fit: cover;
}

.adjacent-images-with-captions figcaption {
    font-style: italic;
    margin: 0 0 0.75em 0;
}

/* adjacent text block */
.adjacent-text-container-headline {
    text-align: center;
}

.adjacent-text-columns {
    display: flex;
    gap: 2rem;
}

.adjacent-text {
    flex: 1;
}

/* iframe */
.iframe-container {
    text-align: center;
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* image embedded in rich text block - primarily exists in imported wordpress blog posts */
.richtext-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-height: 500px;
    max-width: 100%;
    height: auto;
    width: auto;
}

/* block quote */
.blockquote-attribution {
    font-style: normal;
}

/* blog index pagination */
.blog-index-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

.pagination-numbers {
    display: flex;
    justify-content: center;
}

.blog-index-pagination .page-link {
    text-decoration: none;
    color: var(--primary-color);
    padding: 5px 10px;
}

.blog-index-pagination .page-link.active {
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.blog-index-pagination .page-link.disabled {
    color: gray;
}

/* Jotform */
.jotform-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.jotform-container .jotform {
    width: 100%;
}

.jotform-container .jotform iframe {
    transform: scale(1.4);
    transform-origin: top center;
    width: 100%;
    height: 3500px !important;
    max-width: 100vw;
    margin: 0 auto;
    display: block;
}

/* Centered text */
.centered-text-block {
    text-align: center;
}

/* Button block */
.button-block {
    margin: 0.5rem 0;
}

.button-block .button {
    padding: 1vw 3vw;
}

.button-align-left {
    display: flex;
    justify-content: flex-start;
}

.button-align-center {
    display: flex;
    justify-content: center;
}

.button-align-right {
    display: flex;
    justify-content: flex-end;
}

/* Explore page content and layout */
.explore-page a:hover { text-decoration: underline; }
.explore-page a:focus-visible { outline: 2px solid var(--focus-color); outline-offset: 2px; }
.explore-page img { max-width: 100%; height: auto; }
.explore-page .layout { display: flex; gap: 2.5rem; align-items: flex-start; }
.explore-page .layout-main { flex: 1; min-width: 0; }
.explore-page .layout-sidebar { width: 17rem; flex-shrink: 0; }

/* Explore page tabs */
.explore-page .tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.explore-page .tabs a {
    text-decoration: none;
}

.explore-page .tabs::after {
    content: "";
    flex: 1;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: -2px;
}

.explore-page .tab {
    padding: 0.7rem 1.1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: -2px;
    border-radius: 0.5rem 0.5rem 0 0;
    background-clip: padding-box;
    transition: background 0.15s, color 0.15s;
}
.explore-page .tab:hover { background-color: var(--secondary-color); text-decoration: none; color: var(--text-color); }
.explore-page .tab.active {
    background: transparent;
    border: 2px solid var(--primary-color);
    border-bottom: 2px solid transparent;
    color: var(--primary);
    font-weight: 700;
}
.explore-page .tab .count { font-size: 0.85em; color: var(--text-muted); margin-left: 0.2rem; }
.explore-page .tab.active .count { color: var(--primary-color); }

/* Explore page sort bar */
.explore-page .sort-bar { margin-bottom: 1rem; font-size: 0.9rem; color: var(--text-muted); }
.explore-page .sort-bar a { margin-left: 0.5rem; text-decoration: none; }
.explore-page .sort-bar .active-sort {
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    background: var(--secondary-color);
    padding: 0.15rem 0.6rem;
    border-radius: 2rem;
}

/* Explore page result items */
.explore-page .result-item {
    padding: 1.1rem 0.75rem;
    margin: 0 -0.75rem;
    border-bottom: 1px solid #dde3ed;
    overflow-wrap: anywhere;
    transition: background 0.15s;
}
.explore-page .result-item:first-child { padding-top: 0.75rem; }
.explore-page .result-item h2 {
    margin: 0 0 0.4rem;
    font-family: "Source Sans 3", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
}
.explore-page .result-item h2 a { color: var(--primary-color); }

/* Explore page per-line labeled fields (used in result items and entity headers) */
.explore-page .result-field {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-top: 0.15rem;
    color: var(--text-color);
}
.explore-page .result-field .field-label {
    font-weight: 600;
    color: var(--text-muted);
}

/* Explore page inline overflow toggle for long value lists */
.explore-page .meta-overflow {
    display: inline;
}

.explore-page .meta-hidden {
    display: none;
}

.explore-page .meta-toggle {
    cursor: pointer;
    color: var(--primary-color);
    font-size: 0.84rem;
}

.explore-page .meta-toggle:hover {
    text-decoration: underline;
}

/* Explore page pagination */
.explore-page .pagination {
    margin-top: 1.25rem;
    padding-top: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.explore-page .pagination a {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border: 2px solid var(--primary-color);
    background-color: var(--secondary-color);
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}
.explore-page .pagination a:hover { background: var(--primary-color); color: #fff; text-decoration: none; }

/* Fulltext (archived-page) search results */
.explore-page .fulltext-results { margin-top: 0.75rem; }
.explore-page .fulltext-summary { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.explore-page .fulltext-prompt,
.explore-page .fulltext-error { font-size: 0.95rem; padding: 1rem 0; color: var(--text-muted); }
.explore-page .fulltext-error { color: #b3261e; }
.explore-page .fulltext-hit { padding: 0.85rem 0; margin: 0; }
.explore-page .fulltext-hit .fulltext-title { margin: 0 0 0.25rem; font-size: 1.05rem; }
.explore-page .fulltext-hit .fulltext-url { word-break: break-all; }
.explore-page .fulltext-hit .fulltext-url a { color: var(--text-muted); }
.explore-page .fulltext-hit .fulltext-title,
.explore-page .fulltext-hit .fulltext-url { overflow-wrap: anywhere; min-width: 0; }
.explore-page .fulltext-hit .fulltext-capture { font-size: 0.85rem; color: var(--text-muted); margin: 0.25rem 0; }
.explore-page .fulltext-hit .fulltext-snippet {
  margin: 0.5rem 0 0.5rem 1.25rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--border, #ddd);
  line-height: 1.45;
  font-size: 0.85rem;
  color: var(--text-muted, #555);
}
.explore-page .fulltext-hit .fulltext-snippet em { font-weight: 700; font-style: normal; }
.explore-page .fulltext-hit .fulltext-meta { font-size: 0.8rem; color: var(--text-muted); margin: 0.2rem 0; }
.explore-page .fulltext-hit .fulltext-host { font-size: 0.85rem; margin: 0.2rem 0; }
.explore-page .fulltext-pagination { margin-top: 1.25rem; }

/* Explore search-mode (metadata / text) radio toggle, sits below the search bar */
.explore-page .search-mode-toggle {
  display: flex;
  gap: 1rem;
  align-items: center;
  border: 0;
  margin: -0.5rem 0 0.75rem;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-color, #222);
}
.explore-page .search-mode-toggle label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}
.explore-page .search-mode-toggle input[type="radio"] { margin: 0; }
.explore-page .search-mode-toggle .visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Fulltext advanced search sidebar */
.explore-page .fulltext-advanced-form label { display: block; font-size: 0.85rem; margin-top: 0.65rem; margin-bottom: 0.15rem; color: var(--text-color, #222); }
.explore-page .fulltext-advanced-form > label:first-of-type { margin-top: 0; }
.explore-page .fulltext-advanced-form label.visually-hidden,
.explore-page .fulltext-advanced-form .visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.explore-page .fulltext-advanced-form input[type="text"],
.explore-page .fulltext-advanced-form select {
  width: 100%; box-sizing: border-box;
  font-size: 0.85rem; padding: 0.3rem 0.4rem;
}
.explore-page .fulltext-advanced-form .capture-range-label { margin: 0.85rem 0 0.25rem; font-size: 0.85rem; font-weight: 600; }
.explore-page .fulltext-advanced-form .capture-range { display: flex; align-items: center; gap: 0.35rem; margin-top: 0.3rem; }
.explore-page .fulltext-advanced-form .capture-range-direction { font-size: 0.8rem; width: 2.5rem; flex-shrink: 0; color: var(--text-muted, #555); }
.explore-page .fulltext-advanced-form .capture-range select { flex: 1; min-width: 0; }
.explore-page .fulltext-advanced-form .fulltext-advanced-submit {
  margin-top: 1rem; width: 100%; padding: 0.45rem;
  background: var(--primary-color, #084c8d); color: #fff;
  border: 0; cursor: pointer; font-weight: 600; font-size: 0.9rem;
}
.explore-page .fulltext-advanced-form .fulltext-advanced-submit:hover { filter: brightness(1.1); }

/* Explore page breadcrumbs */
.explore-page .breadcrumbs {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}
.explore-page .breadcrumbs a { text-decoration: underline; }

/* ── Explore page entity header ─────────────────────────────────────── */
.entity-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.entity-header h1 { margin: 0; }
.entity-header .result-field { font-size: 0.92rem; }
.entity-header .description { margin-top: 0.6rem; font-size: 0.95rem; line-height: 1.55; }
.entity-header-content { display: flex; gap: 1.25rem; align-items: flex-start; }
.entity-logo { flex-shrink: 0; width: 100px; }
.entity-logo img { width: 100px; height: 100px; object-fit: contain; }
.entity-info { flex: 1; min-width: 0; }

/* Explore page facets */
.explore-page .facet-panel {
    background: var(--secondary-color);
    border-radius: 1rem;
    padding: 1.25rem;
}
.explore-page .facet-panel h2 {
    font-family: "Archivo Black", "Source Sans 3", sans-serif;
    font-size: 1rem;
    margin: 0 0 1rem;
    color: var(--primary-color);
}
/* Desktop: force all facet <details> open, hide markers */
.explore-page .facet-panel-details,
.explore-page details.facet-group {
    display: block;
}
.explore-page .facet-panel-details > summary,
.explore-page details.facet-group > summary {
    list-style: none;
    cursor: default;
}
.explore-page .facet-panel-details > summary::-webkit-details-marker,
.explore-page details.facet-group > summary::-webkit-details-marker {
    display: none;
}
.explore-page .facet-panel-details > summary::marker,
.explore-page details.facet-group > summary::marker {
    display: none;
    content: "";
}
/* Force content visible on desktop regardless of open attribute */
.explore-page .facet-panel-details > *:not(summary),
.explore-page details.facet-group > *:not(summary) {
    display: block;
}
/* Newer browsers: override ::details-content hiding */
.explore-page .facet-panel-details::details-content,
.explore-page details.facet-group::details-content {
    display: block;
    content-visibility: visible;
}

.explore-page .facet-group { margin: 1rem 0; }
.explore-page .facet-group:last-child { margin-bottom: 0; }
.explore-page .facet-group h3 {
    font-family: "Source Sans 3", sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    color: var(--text-color);
}
.explore-page .facet-group .sort-links {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    color: var(--text-muted);
}
.explore-page .facet-group ul { list-style: none; padding: 0; margin: 0; }
.explore-page .facet-group li {
    font-size: 0.88rem;
    padding: 0.2rem 0;
}
.explore-page .facet-group li .count { color: var(--text-muted); font-size: 0.82rem; }

/* Constrained facets (active filter chips)*/
.explore-page .constrained-facets { margin-bottom: 1rem; }
.explore-page .constrained-facets .chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--secondary-color);
    padding: 0.3rem 0.65rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    margin: 0.2rem 0.3rem 0.2rem 0;
    border: 1px solid #dde3ed;
}
.explore-page .constrained-facets .chip .remove {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
}
.explore-page .constrained-facets .chip .remove:hover { color: #c00; text-decoration: none; }

@media (max-width: 1150px) {
    /* product card */
    .product-card {
        padding: 1.25rem;
    }

    .product-card-title {
        font-size: min(1.5rem, 2.5vw);
    }

    .carousel-image-container {
        height: 150px;
    }

    .carousel-slide-image {
        max-height: 120px;
    }

    .jotform-container {
        margin: 0 -30px;
    }

    .carousel-arrow.arrow-right {
        margin-left: -1em;
    }
}

@media (max-width: 1050px) {
    .content-container {
        padding: 32px 64px !important;
    }
}

@media (max-width: 1000px) {
    .product-cards-container {
        margin: 0 -20px;
    }
}

@media (max-width: 950px) {
    .product-cards-container, .carousel-container {
        margin: 0;
    }

@media (max-width: 910px) {
    /* Root elements */
    header {
        position: fixed;
        top: 0;
        width: 100%;
        background: white;
        z-index: 2;
        border-bottom: 1px solid var(--secondary-color);
    }

    /* Div container styles */
    .content-container {
        padding: 120px 30px 30px 30px !important;
    }

    /* Navbar */
    .navbar {
        padding: 2px 0 4px 0;
    }

    .navbar-logo {
        padding: 16px 16px 0 16px;
    }

    .navbar-container {
        flex-wrap: wrap;
    }

    .navbar-burger-menu-items {
        display: inline;
    }

    .navbar-side-menu:checked ~ .navbar-burger-menu-container {
        display: block;
        max-height: 100%;
        width: 100%;
        overflow-y: auto;
    }

    .navbar-side-menu:checked ~ .navbar-burger-label .navbar-burger-line {
        background: transparent;
    }

    .navbar-side-menu:checked ~ .navbar-burger-label .navbar-burger-line::before {
        transform: rotate(-45deg);
        top:0;
    }

    .navbar-side-menu:checked ~ .navbar-burger-label .navbar-burger-line::after {
        transform: rotate(45deg);
        top:0;
    }

    body:has(.navbar-side-menu:checked) {
        overflow: hidden;
    }

    .navbar-menu-container,
    .navbar-login-container,
    .navbar-ia-logo {
        display: none;
    }

    .navbar-burger-label {
        display: block;
    }

    .navbar-menu-item {
        font-size: 1.25rem;
        text-align: center;
        font-weight: bold;
        padding:1.5rem;
        border-top: 1px solid var(--secondary-color);
    }

    .navbar-menu-item:last-of-type {
        border-bottom: 1px solid var(--secondary-color)
    }

    /* Jotform */
    .jotform-container {
        margin: 0;
    }

    .jotform-container .jotform iframe {
        transform: scale(1.2);
        height: 3000px !important;
    }
}

@media (max-width: 768px) {
    blockquote p {
        max-width: 100%;
        word-wrap: break-word;
    }

    iframe {
        width: 100%;
        height: 300px;
    }

    /* Div container styles */
    .content-container {
        padding: 90px 20px 20px 20px !important;
    }

    /* Navbar */
    .navbar-logo img {
        width: 65px;
    }

    /* Product cards */
    .product-cards-container {
        flex-wrap: wrap;
    }

    .product-card {
        width: 100%;
        padding: 1.5rem;
    }

    .product-card-title {
        font-size: 1.5rem
    }

    /* Carousel */
    .carousel-container button {
        display: none;
    }

    carou-scroll {
        margin: 0;
        overflow-x: hidden;
    }

    .carousel-container {
        position: relative;
        width: 100%;
    }

    .carousel-slides-container {
        display: flex;
        gap: 1em;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scroll-padding-left: 8vw;
        scroll-padding-right: 8vw;
    }

    .carousel-slide {
        flex: 0 0 75%;
        max-width: 75%;
        scroll-snap-align: center;
    }

    /* Home page */
    .home-page-top {
        flex-wrap: wrap;
        gap: 0;
        padding-bottom: 0;
    }

    .home-page-top-left {
        width: 100%;
    }

    .home-page-top-left h1 {
        text-align: center;
    }

    .home-page-top-left p {
        text-align: center;
    }

    .home-page-top-right {
         width: 100%;
    }

    .home-page-top-right img {
        width: 100%;
        height: auto;
    }

    /* Blog index page */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-post-card {
        border-bottom: 1px solid var(--secondary-color);
    }

    /* Blog post */
    .blog-post-card {
        display: flex;
        flex-direction: column;
    }

    /* Image with text */
    .image-with-text {
        padding: 0px;
        margin: 0px;
    }

    .image-with-text figure {
        flex-direction: column;
        align-items: center;
    }

    .image-with-text .image-container,
    .image-with-text .text-container {
        width: 100% !important;
        padding: 0;
    }

    .image-with-text .image-container img {
        margin: 0 auto;
    }

    .image-with-text .image-container {
        order: -1; /* image on top of text */
        margin: 1rem 0 0 0;
    }

    /* Adjacent images */
    .adjacent-images-image-container {
        flex-direction: column;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0;
    }

    .adjacent-images-image {
        width: 100%;
        margin: 0;
    }

    /* Adjacent text */
    .adjacent-text-columns {
        flex-direction: column;
        gap: 0;
    }

    /* Iframe container */
    .iframe-container {
        padding: 1rem 0;
    }

    /* Jotform */
    .jotform-container .jotform iframe {
        transform: none;
    }

    /* Button block */
    .button-align-left, .button-align-right {
        justify-content: center;
    }

    /* Explore page */
    /* Page header is `position: fixed` at <=910px and the navbar wraps as the
    viewport narrows, but the global content-container's top padding is
    reduced (90px) at <=768px — not enough to clear a wrapped navbar. Add
    safety spacing on the explore page so the breadcrumbs stay visible. */
    .explore-page { padding-top: 40px; }

    .explore-page .fulltext-layout { flex-direction: column; }
    .explore-page .fulltext-layout .layout-sidebar { width: 100%; box-sizing: border-box; }
    .explore-page .entity-header-content { flex-direction: column; align-items: center; text-align: center; }
    .explore-page .entity-logo { width: 80px; }
    .explore-page .entity-logo img { width: 80px; height: 80px; }
    .explore-page .layout { flex-direction: column; }
    .explore-page .layout-sidebar { width: 100%; order: -1; }
    .explore-page .layout-main { overflow-x: hidden; }
    .explore-page .search-form { max-width: 100%; }

    /* Tabs wrap to additional rows on narrow viewports rather than
       horizontally scrolling — matches desktop appearance and keeps the
       active tab in its natural position. */
    .explore-page .tab { white-space: nowrap; }

    /* Restore native <details> collapse for facets */
    .explore-page .facet-panel-details,
    .explore-page details.facet-group {
        display: revert;
    }
    .explore-page .facet-panel-details:not([open]) > *:not(summary),
    .explore-page details.facet-group:not([open]) > *:not(summary) {
        display: none;
    }
    .explore-page .facet-panel-details > summary,
    .explore-page details.facet-group > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        list-style: none;
        cursor: pointer;
    }
    .explore-page .facet-panel-details > summary::-webkit-details-marker,
    .explore-page details.facet-group > summary::-webkit-details-marker {
        display: none;
    }
    .explore-page .facet-panel-details > summary::marker,
    .explore-page details.facet-group > summary::marker {
        display: none;
        content: "";
    }
    .explore-page .facet-panel-details > summary::after,
    .explore-page details.facet-group > summary::after {
        content: "▶";
        font-size: 0.7em;
        transition: transform 0.2s;
    }
    .explore-page .facet-panel-details[open] > summary::after,
    .explore-page details.facet-group[open] > summary::after {
        transform: rotate(90deg);
    }
    .explore-page .facet-panel-details > summary > h2,
    .explore-page details.facet-group > summary > h3 {
        margin: 0;
    }
}

@media (max-width: 600px) {
    /* Carousel */
    .carousel-slide {
        flex: 0 0 65%;
        max-width: 65%;
    }
}

@media (max-width: 500px) {
    /* Global element styles */
    h1, h2, h3, h4, p, ol, ul, blockquote {
        margin: 0.75em 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.35rem;
    }

    p, ul, ol {
        font-size: 1.25rem;
    }

    p.subheadline {
        font-size: 1.5rem;
    }

    /* Navbar */
    .navbar-burger-label {
        padding: 1.5rem;
    }

    .navbar-logo {
        padding: 8px 8px 0 8px;
    }

    .navbar-logo img {
        width: 55px;
    }

    /* Footer*/
    .footer-links {
        display: none;
    }

    /* Carousel and Product cards */
    .carousel-slide, .product-card {
        padding: 1.25rem;
        border-radius: 1.5rem;
    }

    .carousel-slide-title, .product-card-title {
        font-size: 1.25rem;
    }

    /* Accordion */
    .accordion-container p {
        font-size: 1rem;
    }

    .accordion-container .details-container h3 {
        font-size: 1.5rem;
    }

    /* Expandable text */
    .expandable-text summary {
        font-size: 1.5rem;
    }

    .expandable-text summary::after {
        margin: 0.4rem 0.4rem;
    }

    .expandable-text details p {
        font-size: 1.25rem;
    }

    /* Gallery */
    .gallery-container {
        max-height: 300px;
    }

    /* Blog index */
    .blog-post-categories-index {
        display: none;
    }

    .blog-post-card-hero-image img{
        max-height: 150px;
    }

    .blog-post-card h2 {
        font-size: 1.5rem;
    }

    .search-button {
        padding: 10px;
    }

    .blog-index-pagination .page-link {
        padding: 0 5px;
    }

    /* Blog post */
    .richtext-image {
        max-height: 300px;
    }

    .blog-post-categories {
        margin: 20px 0;
    }

    /* adjacent images */
    .adjacent-images-with-captions img {
        height: 200px;
    }

    /* explore page */
    .explore-page .tabs { gap: 0; }
    .explore-page .tab { padding: 0.5rem 0.65rem; font-size: 0.85rem; }
}
