@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&family=Open+Sans:ital,wght@0,400;0,600;1,400;1,600&display=swap');

/* =============================================================
   FESTIM BRAND COLOURS
   ============================================================= */
:root {
    --festim-primary: #1a4848;
    --festim-primary-hover: #133636;
    --festim-secondary: #f7b000;
    --festim-secondary-hover: #d99b00;
}

html[data-theme="light"] {
    --pst-color-secondary: var(--festim-secondary);
    --pst-color-secondary-highlight: var(--festim-secondary-hover);
    --pst-color-secondary-bg: color-mix(in srgb, var(--festim-secondary) 15%, transparent);
}

html[data-theme="dark"] {
    --pst-color-secondary: var(--festim-secondary);
    --pst-color-secondary-highlight: var(--festim-secondary-hover);
    --pst-color-secondary-bg: #F46036;
}

html[data-theme="dark"] .bd-header-announcement a {
    color: var(--festim-primary);
    font-weight: 600;
}

body {
    font-family: 'Open Sans', sans-serif;
}

h1 {
    font-family: "Lato", sans-serif;
}

pre,
code {
    font-size: 100%;
    line-height: 155%;
}

/* Main page overview cards */

/* Change card background in dark mode */
[data-theme="dark"] .bd-content .sd-card .sd-card-body {
    /* background-color: var(--pst-color-background); */
    background-color: var(--pst-color-background);
    color: #ffffff; /* optional: ensure text is white */
}

.sd-card {
    border-radius: 0;
    padding: 30px 10px 20px 10px;
    margin: 10px 0px;
}

.sd-card .sd-card-header {
    text-align: center;
}

.sd-card .sd-card-title {
    text-align: center;
}

.sd-card .sd-card-header .sd-card-text {
    margin: 0px;
}

.sd-card .sd-card-img-top {
    height: 52px;
    width: 52px;
    margin-left: auto;
    margin-right: auto;
}

.sd-card .sd-card-header {
    border: none;
    font-size: var(--pst-font-size-h5);
    font-weight: bold;
    padding: 2.5rem 0rem 0.5rem 0rem;
}

/* =============================================================
   BRAND COLOUR HEADINGS
   ============================================================= */
html .festim-section-heading,
html .festim-hero-text h1 {
    color: var(--festim-primary);
}

html .festim-feature-card h3 {
    color: var(--festim-secondary);
}

/* Tone it down slightly in dark mode so it stays readable */
html[data-theme="dark"] .festim-section-heading,
html[data-theme="dark"] .festim-hero-text h1,
html[data-theme="dark"] .festim-feature-card {
    color: color-mix(in srgb, var(--festim-primary) 85%, #fff);
}

html[data-theme="dark"] .festim-feature-card h3 {
    color: color-mix(in srgb, var(--festim-secondary) 85%, #fff);
}

/* 
SPHINX-BOOK-THEME HOTFIX (top-right icons): 
https://github.com/executablebooks/sphinx-book-theme/issues/879 
*/
.header-article__inner .header-article-items__end,
.header-article__inner .header-article-items__start {
    align-items: start;
    display: flex;
    gap: .5rem;
}

/* 
SPHINX-BOOK-THEME HOTFIX (right column vertical stretching fix): 
https://github.com/executablebooks/sphinx-book-theme/issues/879 
*/
.toc-entry a.nav-link {
    padding: .125rem 0 .125rem 1rem;
}

/* 
h3 font weight fix (from extra heavy to normal):
https://github.com/executablebooks/sphinx-book-theme/issues/879 
*/
h3 {
    font-size: 125%;
    font-weight: normal;
}


/* =============================================================
   FESTIM LANDING PAGE STYLES
   ============================================================= */

/* ---- Section headings ---- */
.festim-section-heading {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

/* =============================================================
   HERO
   ============================================================= */
.festim-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 3rem 1rem 2rem;
    flex-wrap: wrap;
}

.festim-hero-text {
    flex: 1 1 360px;
    max-width: 500px;
}

.festim-hero-text h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.festim-hero-subtitle {
    font-size: 1.25rem;
    color: var(--pst-color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.festim-hero-subtitle a {
    font-weight: 600;
    color: var(--festim-secondary);
}

.festim-hero-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ---- Override button colours on landing page ---- */
.festim-hero-buttons .btn-primary,
.festim-hero-buttons .btn-primary:visited {
    background-color: var(--festim-primary);
    border-color: var(--festim-primary);
    color: #fff;
}

.festim-hero-buttons .btn-primary:hover,
.festim-hero-buttons .btn-primary:focus,
.festim-hero-buttons .btn-primary:active {
    background-color: var(--festim-primary-hover);
    border-color: var(--festim-primary-hover);
    color: #fff;
    text-decoration: none;
}

.festim-hero-buttons .btn-outline-primary,
.festim-hero-buttons .btn-outline-primary:visited {
    color: var(--festim-primary);
    border-color: var(--festim-primary);
    background-color: transparent;
}

.festim-hero-buttons .btn-outline-primary:hover,
.festim-hero-buttons .btn-outline-primary:focus,
.festim-hero-buttons .btn-outline-primary:active {
    background-color: var(--festim-primary-hover);
    border-color: var(--festim-primary-hover);
    color: #fff;
    text-decoration: none;
}

/* ---- Community section buttons ---- */
.festim-community-buttons .btn-outline-primary,
.festim-community-buttons .btn-outline-primary:visited {
    color: var(--festim-primary);
    border-color: var(--festim-primary);
    background-color: transparent;
}

.festim-community-buttons .btn-outline-primary:hover,
.festim-community-buttons .btn-outline-primary:focus,
.festim-community-buttons .btn-outline-primary:active {
    background-color: var(--festim-primary);
    border-color: var(--festim-primary);
    color: #fff;
    text-decoration: none;
}

/* dark mode community buttons */
html[data-theme="dark"] .festim-community-buttons .btn-outline-primary {
    color: var(--pst-color-text-muted);
    border-color: var(--pst-color-text-muted);
    background-color: transparent;
}

html[data-theme="dark"] .festim-community-buttons .btn-outline-primary:hover,
html[data-theme="dark"] .festim-community-buttons .btn-outline-primary:focus,
html[data-theme="dark"] .festim-community-buttons .btn-outline-primary:active {
    background-color: var(--pst-color-text-muted);
    border-color: var(--pst-color-text-muted);
    color: #fff;
    text-decoration: none;
}

/* ---- Carousel in hero ---- */
.festim-hero-carousel {
    flex: 1 1 400px;
    max-width: 520px;
}

.festim-hero-carousel .carousel {
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: var(--pst-color-surface);
    border: 1px solid var(--pst-color-border);
}

.festim-hero-carousel .carousel-item img {
    width: calc(100% - 2rem);
    height: 320px;
    object-fit: contain;
    margin: 1rem auto;
    display: block;
}

.festim-carousel-caption {
    text-align: center;
    padding: 0.5rem 1rem 1rem;
    color: var(--pst-color-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.festim-hero-carousel .carousel-control-prev-icon,
.festim-hero-carousel .carousel-control-next-icon {
    filter: drop-shadow(0 0 2px var(--pst-color-text-base));
}

/* responsive: stack on small screens */
@media (max-width: 768px) {
    .festim-hero {
        flex-direction: column;
        text-align: center;
    }
    .festim-hero-buttons {
        justify-content: center;
    }
    .festim-hero-carousel {
        max-width: 100%;
    }
}

/* =============================================================
   LOGO RIBBON
   ============================================================= */
.festim-ribbon-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Fade edges */
.festim-ribbon-wrapper::before,
.festim-ribbon-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.festim-ribbon-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--pst-color-background), transparent);
}

.festim-ribbon-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--pst-color-background), transparent);
}

.festim-ribbon-track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    width: max-content;
}

.festim-ribbon-track:hover {
    animation-play-state: paused;
}

html .festim-ribbon-track img,
html[data-theme="dark"] .festim-ribbon-track img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

html .festim-ribbon-track img:hover,
html[data-theme="dark"] .festim-ribbon-track img:hover {
    filter: grayscale(0%);
    opacity: 1.0;
}

/* Row 1: scrolls left */
.festim-ribbon-left {
    animation: festim-scroll-left 30s linear infinite;
}

/* Row 2: scrolls right */
.festim-ribbon-right {
    animation: festim-scroll-right 35s linear infinite;
}

@keyframes festim-scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes festim-scroll-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* =============================================================
   NAVIGATION CARDS
   ============================================================= */
.festim-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.festim-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--pst-color-border);
    background-color: var(--pst-color-surface);
    text-decoration: none;
    color: var(--festim-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

html[data-theme="dark"] .festim-nav-card {
    color: color-mix(in srgb, var(--pst-color-border) 40%, #fff);
}

.festim-nav-card:hover,
html[data-theme="dark"] .festim-nav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--festim-primary);
    text-decoration: none;
    color: var(--festim-secondary);
}



.festim-nav-card:visited {
    color: var(--festim-primary);
}

.festim-nav-card:visited:hover {
    color: var(--festim-secondary);
}

.festim-nav-card:hover i {
    color: var(--festim-primary) !important;
}

html .festim-nav-card i {
    color: var(--festim-primary);
}

html[data-theme="dark"] .festim-nav-card svg {
    color: var(--pst-color-text-muted);
}

html .festim-nav-card svg {
    width: 2rem;
    height: 2rem;
    color: var(--festim-primary);
}

.festim-nav-card span {
    font-size: 1.05rem;
    font-weight: 600;
}

@media (max-width: 600px) {
    .festim-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =============================================================
   WHY FESTIM - FEATURE CARDS
   ============================================================= */
.festim-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.festim-feature-card {
    flex: 1 1 180px;
    max-width: 200px;
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    transition: border-color 0.3s ease, transform 0.2s ease;
}

.festim-feature-card:hover {
    border-color: var(--festim-primary);
    transform: translateY(-4px);
}

.festim-feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: color-mix(in srgb, var(--festim-primary) 15%, transparent);
}

.festim-feature-icon i {
    color: var(--festim-primary);
}


html[data-theme="dark"] .festim-feature-icon svg {
    color: var(--pst-color-text-muted);
}

html .festim-feature-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--festim-primary);
}


.festim-feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.festim-feature-card p {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--pst-color-text-muted);
    margin: 0;
}

@media (max-width: 600px) {
    .festim-feature-card {
        max-width: 100%;
        flex: 1 1 100%;
    }
}

/* =============================================================
   CITING FESTIM
   ============================================================= */
.festim-cite {
    max-width: 700px;
    margin: 0 auto 2rem;
    text-align: center;
    padding: 0 1rem;
}

.festim-cite > p {
    color: var(--pst-color-text-muted);
    margin-bottom: 1.25rem;
}

/* ---- DOI badge ---- */
.festim-doi-badge {
    display: inline-flex;
    border-radius: 0.375rem;
    overflow: hidden;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 1.5rem;
    border: 1px solid var(--pst-color-border);
    transition: box-shadow 0.2s ease;
}

.festim-doi-badge:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.festim-doi-label {
    background-color: var(--festim-primary);
    color: #fff;
    padding: 0.4rem 0.65rem;
}

.festim-doi-value {
    padding: 0.4rem 0.75rem;
    color: var(--pst-color-text-base);
    background-color: var(--pst-color-surface);
}

/* ---- BibTeX dropdown ---- */
.festim-bibtex {
    text-align: left;
    border: 1px solid var(--pst-color-border);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.festim-bibtex:hover {
    border-color: var(--festim-primary);
}

.festim-bibtex summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--pst-color-text-base);
    list-style: none;
    user-select: none;
}

.festim-bibtex summary::-webkit-details-marker {
    display: none;
}

.festim-bibtex summary i:first-child {
    color: var(--festim-primary);
}

.festim-bibtex-chevron {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
    color: var(--pst-color-text-muted);
}

.festim-bibtex[open] .festim-bibtex-chevron {
    transform: rotate(180deg);
}

.festim-bibtex pre {
    margin: 0;
    padding: 1rem;
    background-color: var(--pst-color-surface);
    border-top: 1px solid var(--pst-color-border);
    border-radius: 0;
    font-size: 0.8rem;
    line-height: 1.6;
    overflow-x: auto;
}

.festim-bibtex code {
    color: var(--pst-color-text-base);
    background: none;
    padding: 0;
}

/* =============================================================
   PUBLICATIONS PAGE
   ============================================================= */
.festim-pub-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.festim-pub-count {
    text-align: center;
    font-size: 1.1rem;
    color: var(--pst-color-text-muted);
    margin-bottom: 2.5rem;
}

.festim-pub-count strong {
    color: var(--festim-secondary);
    font-size: 1.3rem;
}

/* ---- Year groups ---- */
.festim-pub-year-group {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.festim-pub-year-marker {
    flex-shrink: 0;
    width: 60px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.festim-pub-year-marker span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--festim-primary);
    background-color: var(--pst-color-background);
    padding: 0.25rem 0;
    position: relative;
    z-index: 1;
}

html[data-theme="dark"] .festim-pub-year-marker span {
    color: color-mix(in srgb, var(--festim-primary) 40%, #fff);
}

.festim-pub-year-marker::after {
    content: "";
    position: absolute;
    top: 1.8rem;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: var(--pst-color-border);
    transform: translateX(-50%);
}

.festim-pub-year-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ---- Individual card ---- */
.festim-pub-card {
    border: 1px solid var(--pst-color-border);
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.festim-pub-card:hover {
    border-color: var(--festim-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.festim-pub-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
    color: var(--pst-color-text-base);
    line-height: 1.4;
}

.festim-pub-authors {
    font-size: 0.875rem;
    color: var(--pst-color-text-muted);
    margin: 0 0 0.25rem;
}

.festim-pub-journal {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--pst-color-text-muted);
    margin: 0 0 0.75rem;
}

/* ---- Links row ---- */
.festim-pub-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

/* DOI mini badge */
.festim-pub-doi {
    display: inline-flex;
    border-radius: 0.25rem;
    overflow: hidden;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--pst-color-border);
    transition: box-shadow 0.2s ease;
}

.festim-pub-doi:hover {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.festim-pub-doi-label {
    background-color: var(--festim-primary);
    color: #fff;
    padding: 0.2rem 0.4rem;
}

.festim-pub-doi-value {
    padding: 0.2rem 0.5rem;
    color: var(--pst-color-text-base);
    background-color: var(--pst-color-surface);
}

/* PDF button */
.festim-pub-pdf {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #d32f2f;
    text-decoration: none;
    padding: 0.2rem 0.5rem;
    border: 1px solid #d32f2f;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.festim-pub-pdf:hover {
    background-color: #d32f2f;
    color: #fff;
    text-decoration: none;
}

/* Citation count */
.festim-pub-cited {
    font-size: 0.8rem;
    color: var(--pst-color-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.festim-pub-cited i {
    color: var(--festim-secondary);
    font-size: 0.7rem;
}

/* ---- Topic tags ---- */
.festim-pub-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.festim-pub-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
    background-color: color-mix(in srgb, var(--festim-primary) 10%, transparent);
    color: var(--festim-primary);
}

html[data-theme="dark"] .festim-pub-tag {
    background-color: color-mix(in srgb, var(--festim-primary) 25%, transparent);
    color: color-mix(in srgb, var(--festim-primary) 40%, #fff);
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .festim-pub-year-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .festim-pub-year-marker {
        width: auto;
        flex-direction: row;
    }

    .festim-pub-year-marker::after {
        display: none;
    }

    .festim-pub-doi-value {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}


/* ---- Publication type badges ---- */
.festim-pub-header {
    margin-bottom: 0.5rem;
}

.festim-pub-type {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
}

.festim-pub-type-article {
    background-color: color-mix(in srgb, var(--festim-primary) 12%, transparent);
    color: var(--festim-primary);
}

.festim-pub-type-thesis {
    background-color: color-mix(in srgb, var(--festim-secondary) 15%, transparent);
    color: var(--festim-secondary);
}

.festim-pub-type-preprint {
    background-color: color-mix(in srgb, #7c4dff 12%, transparent);
    color: #7c4dff;
}

.festim-pub-type-report {
    background-color: color-mix(in srgb, #00897b 12%, transparent);
    color: #00897b;
}

.festim-pub-type-book {
    background-color: color-mix(in srgb, #c62828 12%, transparent);
    color: #c62828;
}

.festim-pub-type-conference {
    background-color: color-mix(in srgb, #ef6c00 12%, transparent);
    color: #ef6c00;
}

html[data-theme="dark"] .festim-pub-type-article {
    background-color: color-mix(in srgb, var(--festim-primary) 25%, transparent);
    color: color-mix(in srgb, var(--festim-primary) 40%, #fff);
}

html[data-theme="dark"] .festim-pub-type-thesis {
    background-color: color-mix(in srgb, var(--festim-secondary) 25%, transparent);
    color: var(--festim-secondary);
}

/* =============================================================
   PUBLICATIONS - STATS BAR
   ============================================================= */
.festim-pub-stats {
    margin-bottom: 2.5rem;
}

.festim-pub-stats-numbers {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.festim-pub-stat {
    text-align: center;
}

.festim-pub-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--festim-primary);
    line-height: 1.2;
}

html[data-theme="dark"] .festim-pub-stat-value {
    color: color-mix(in srgb, var(--festim-primary) 40%, #fff);
}

.festim-pub-stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--pst-color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.2rem;
}

/* =============================================================
   PUBLICATIONS - TOOLBAR (search + filters)
   ============================================================= */
.festim-pub-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* Search */
.festim-pub-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.festim-pub-search-wrapper i,
.festim-pub-search-wrapper svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pst-color-text-muted);
    font-size: 0.85rem;
    width: 0.85rem;
    height: 0.85rem;
    pointer-events: none;
    z-index: 1;
}

.festim-pub-search {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border: 1px solid var(--pst-color-border);
    border-radius: 2rem;
    font-size: 0.9rem;
    color: var(--pst-color-text-base);
    background-color: var(--pst-color-surface);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.festim-pub-search:focus {
    border-color: var(--festim-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--festim-primary) 15%, transparent);
}

.festim-pub-search::placeholder {
    color: var(--pst-color-text-muted);
}

/* Filter buttons */
.festim-pub-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.festim-pub-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--pst-color-border);
    border-radius: 2rem;
    background: transparent;
    color: var(--pst-color-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.festim-pub-filter-btn:hover {
    border-color: var(--festim-primary);
    color: var(--festim-primary);
}

.festim-pub-filter-btn.active {
    background-color: var(--festim-primary);
    border-color: var(--festim-primary);
    color: #fff;
}

html[data-theme="dark"] .festim-pub-filter-btn.active {
    background-color: color-mix(in srgb, var(--festim-primary) 60%, #fff);
}

/* =============================================================
   PUBLICATIONS - NO RESULTS
   ============================================================= */
.festim-pub-no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--pst-color-text-muted);
}

.festim-pub-no-results i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
    opacity: 0.4;
}

.festim-pub-no-results p {
    font-size: 1rem;
    margin: 0;
}