/*
 * Quark 2 — user customizations
 *
 * This file is safe to edit. It is loaded last so anything here overrides
 * theme.css without having to mark rules !important.
 */

/* Language switcher */
.langswitcher {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    margin-right: 0.5rem;
}

.langswitcher-link {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.2rem 0.45rem;
    border-radius: 0.35rem;
    text-decoration: none;
    opacity: 0.6;
}

.langswitcher-link:hover {
    opacity: 1;
}

.langswitcher-link.active {
    opacity: 1;
    background: var(--q2-accent, currentColor);
    color: var(--q2-accent-contrast, #fff);
}

/* Footer */
#footer.footer-dark {
    border-top: none;
    padding-block: 0;
    background: rgb(36, 36, 36);
    color: rgba(255, 255, 255, 0.85);
    width: 100%;
    text-align: left;
    font-size: 1rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    padding-block: 3.5rem;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-brand-title {
    display: block;
    font-family: var(--pico-font-family-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

#footer .footer-brand-desc {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 15px;
    max-width: 52ch;
}

.footer-legal-links {
    margin-top: 1.25rem;
    display: flex;
    gap: 1.25rem;
}

#footer .footer-legal-links a,
#footer .footer-nav-links a,
#footer .footer-social-list a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
}

#footer .footer-legal-links a:hover,
#footer .footer-nav-links a:hover,
#footer .footer-social-list a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-nav-links li,
.footer-social-list li {
    margin-bottom: 1rem;
}

.footer-social-list a i {
    width: 1.25em;
    text-align: center;
    margin-right: 0.4rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-block: 1.5rem;
}

#footer .footer-bottom p {
    margin: 0;
    text-align: left;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Bump body text size in the content area */
.content-item p,
.content-item li,
.content-item td,
.content-item blockquote {
    font-size: 1.125rem;
}

/* Remove the accent bar above headings */
h2::before {
    display: none;
}

/* Remove max-width constraint on the content column */
#body-wrapper > .container > .content-item {
    max-width: none;
}

/* Content images default to full width */
.content-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Homepage hero */
.home-hero {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.75) 100%),
        url('/user/media/hero-bg.png');
    background-size: cover;
    background-position: center;
    border-radius: var(--q2-radius-lg, 1rem);
    padding: 2.5rem clamp(100px, 8vw, 160px);
    margin-bottom: 40px;
    overflow: hidden;
    position: relative;
}
.home-hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.8125rem;
    font-weight: 600;
    color: color-mix(in oklab, #ffffff 65%, transparent);
    margin-top: 40px;
    margin-bottom: 0.75rem;
}
.home-hero h1 {
    color: #ffffff;
    margin-top: 20px;
}
.home-hero .lead {
    max-width: 100%;
    text-align: center;
    color: #efefef;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.hero-actions [role="button"] {
    margin: 0;
}
.hero-actions .outline.contrast {
    background-color: transparent;
    color: #ffffff;
    border-color: color-mix(in oklab, #ffffff 55%, transparent);
}
.hero-actions [role="button"]:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* Homepage news teaser */
.home-news {
    margin-top: 0;
}

body.home-page #body-wrapper {
    padding-top: 0;
}
.home-news-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.home-news-header h2 {
    margin: 0;
}
.home-news-all {
    font-weight: 600;
    white-space: nowrap;
}
.home-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.home-news-grid .card-title h3 {
    margin: 0;
    font-weight: 400;
}
.home-news-grid .card-title a {
    color: inherit;
    text-decoration: none;
}
.home-news-grid .card-excerpt {
    font-size: 1rem;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-news-grid .card:hover {
    transform: none;
}

/* Mobile hero adjustments */
@media (max-width: 550px) {
    .home-hero {
        padding: 40px;
    }
}
