:root {
    --font-body: "Comic Neue", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(234,213,245,1) 50%, rgba(255,255,255,1) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header,
footer {
    flex-shrink: 0;
}

header {
    background:linear-gradient(90deg,rgba(142, 100, 181, 1) 0%, rgba(215, 175, 237, 1) 22%, rgba(252, 250, 255, 1) 100%);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(138, 108, 189, 0.2);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 8px rgba(138, 108, 189, 0.3);
    object-fit: contain;
    background: linear-gradient(90deg,rgba(184, 164, 217, 1) 0%, rgba(163, 82, 235, 1) 51%, rgba(86, 62, 135, 1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: bold;
}
.profile-image img {
        width: 80px;
        height: 80px;
        clip-path: circle(50%);
        }


.site-title {
    font-size: 36px;
    color: #5a3d7f;
    font-weight: 600;
    font-family: "miniver";
}

.main-nav {
    display: flex;
    gap: 10px;
    order: 1;
    margin-left: auto;
}

.nav-toggle {
    display: block;
    order: 2;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
}

.nav-toggle-bar {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px 0;
    border-radius: 2px;
    background: #5a3d7f;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-item {
    position: relative;
}

.nav-trigger {
    background: none;
    border: none;
    cursor: pointer;
    color: #5a3d7f;
    font-family: "Comic Neue", sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-trigger::after {
    content: "\25BE";
    font-size: 12px;
}

.nav-trigger:hover,
.nav-trigger:focus-visible,
.nav-item.open > .nav-trigger {
    background-color: rgba(255, 255, 255, 0.5);
    color: #3d2456;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(138, 108, 189, 0.3);
    padding: 8px;
    margin-top: 6px;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 100;
}

@media (hover: hover) and (pointer: fine) {
    .nav-item:hover .nav-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.nav-item.open .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a {
    color: #5a3d7f;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    display: block;
}

.nav-dropdown a:hover {
    background-color: rgba(122, 92, 173, 0.12);
    color: #3d2456;
}

.nav-dropdown a.is-current {
    background-color: rgba(122, 92, 173, 0.18);
    color: #3d2456;
}

.nav-item.has-current > .nav-trigger {
    color: #3d2456;
    box-shadow: inset 0 -3px 0 #5a3d7f;
}

main {
    flex: 1 0 auto;
    max-width: 1200px;
    width: 100%;
    margin: 40px auto;
    padding: 0 20px;
}

.content-section {
    background: rgba(255, 255, 255, 0.7);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(138, 108, 189, 0.15);
    margin-bottom: 30px;
}

h1 {
    color: #5a3d7f;
    margin-bottom: 20px;
    font-size: 38px;
}

p {
    color: #6b5786;
    line-height: 1.6;
    font-size: 20px;
}

p a {
        text-decoration: underline dotted;
        color: #5a3d7f;
        font-weight: 700;
}

p a:hover {
        text-decoration: underline;
        color: black;
}

.notfound-links {
    color: #6b5786;
    font-size: 18px;
    line-height: 1.8;
    margin: 0 0 20px 24px;
}

.notfound-links a {
    color: #5a3d7f;
    font-weight: 700;
    text-decoration: underline dotted;
}

.notfound-links a:hover {
    color: #000000;
    text-decoration: underline;
}

.gallery-section {
    max-width: 1200px;
    margin: 40px auto 30px;
    padding: 0 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(138, 108, 189, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(138, 108, 189, 0.3);
}

.placeholder-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #e9e4f7 0%, #d4c5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.portfolio-item {
    text-decoration: none;
    display: block;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(138, 108, 189, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    object-fit: contain;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(138, 108, 189, 0.3);
}

.portfolio-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #e9e4f7 0%, #d4c5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    object-fit: contain;
}

.portfolio-image img {
     width: 100%;
     height: 100%;
     object-fit: cover;
}

.portfolio-caption {
    padding: 20px;
    text-align: center;
}

.portfolio-caption h3 {
    color: #5a3d7f;
    font-size: 20px;
    margin-bottom: 8px;
}

.portfolio-caption p {
    color: #6b5786;
    font-size: 14px;
    margin: 0;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.social-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.social-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.email-btn {
    background: linear-gradient(135deg, #8a6cbd 0%, #7a5cad 100%);
    color: white;
}

.facebook-btn {
    background: linear-gradient(135deg, #1877f2 0%, #0d65d9 100%);
    color: white;
}

.instagram-btn {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: white;
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0;
    }

    /* Shrink the avatar so the header bar itself isn't 120px tall. */
    .profile-image,
    .profile-image img {
        width: 52px;
        height: 52px;
    }

    .profile-image {
        border-width: 3px;
    }

    .site-title {
        font-size: 22px;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        flex-basis: 100%;  /* force onto its own row below logo + toggle */
        gap: 5px;
        order: 3;
        padding-top: 10px;
    }

    .main-nav.is-open {
        display: flex;
    }

    .nav-item {
        width: 100%;
    }

    .nav-trigger {
        width: 100%;
        justify-content: space-between;
    }

    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 0;
        max-height: 0;
        padding: 0 12px;
        overflow: hidden;
        transition: max-height 0.25s ease, padding 0.25s ease;
        align-items: stretch;
    }

    .nav-item.open .nav-dropdown {
        max-height: 300px;
        padding: 8px 12px;
    }

    /* On mobile the dropdowns are an accordion, so the inset underline on the
       trigger reads oddly against the full-width buttons. Use a left bar. */
    .nav-item.has-current > .nav-trigger {
        box-shadow: inset 3px 0 0 #5a3d7f;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .social-btn {
        width: 50px;
        height: 50px;
    }

    .social-btn svg {
        width: 26px;
        height: 26px;
    }
}
 footer {
    background:linear-gradient(90deg,rgba(142, 100, 181, 1) 0%, rgba(215, 175, 237, 1) 22%, rgba(252, 250, 255, 1) 100%);
    color: #5a3d7f;
    padding: 30px 20px;
    margin-top: 40px;
    box-shadow: 0 -2px 10px rgba(138, 108, 189, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    color: #5a3d7f;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #5a3d7f;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3d2456;
}

.projects-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    color: #6b5786;
}
.projects-table th, .projects-table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(138,108,189,0.2);
}
.projects-table th {
    color: #5a3d7f;
    font-weight: 700;
}
.projects-table tr:last-child td { border-bottom: none; }
.projects-table tbody tr:hover { background: rgba(255,255,255,0.5); }

/* ===== RESOURCES PAGE ===== */

.resources-layout {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 30px;
    margin-top: 20px;
}

.resource-count {
    color: #6b5786;
    font-size: 15px;
    margin-bottom: 15px;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.resource-tile {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(138, 108, 189, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.resource-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(138, 108, 189, 0.3);
}

.resource-tile[hidden] {
    display: none;
}

.resource-tile-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.resource-tile-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
}

.resource-tile-image-wrap picture {
    display: block;
    width: 100%;
    height: 100%;
}

.resource-tile-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
    display: block;
}

.resource-tile-placeholder {
    background: linear-gradient(135deg, #e9e4f7 0%, #d4c5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.resource-tile-title {
    color: #5a3d7f;
    font-size: 20px;
    padding: 15px 20px 0;
    margin: 0;
}

.resource-tile-note {
    color: #6b5786;
    font-size: 14px;
    padding: 8px 20px 0;
    margin: 0;
    line-height: 1.5;
}

.resource-tile-date {
    display: block;
    color: #8a7aa0;
    font-size: 12px;
    padding: 8px 20px 0;
}

.resource-tile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 20px 20px;
    margin-top: auto;
}

.tag-chip {
    font-family: "Comic Neue", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #5a3d7f;
    background: transparent;
    border: 1.5px solid #5a3d7f;
    border-radius: 20px;
    padding: 4px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-chip:hover {
    background: rgba(138, 108, 189, 0.15);
}

.tag-chip.is-active {
    background: #5a3d7f;
    color: white;
}

.tag-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(138, 108, 189, 0.15);
}

.tag-sidebar-title {
    color: #5a3d7f;
    font-size: 20px;
    margin: 10px 0 15px;
}

.clear-filters-btn {
    width: 100%;
    font-family: "Comic Neue", sans-serif;
    font-weight: 700;
    color: white;
    background: #5a3d7f;
    border: none;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background 0.2s ease;
}

.clear-filters-btn:hover {
    background: #3d2456;
}

.clear-filters-btn[hidden] {
    display: none;
}

.tag-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tag-list .tag-chip {
    width: 100%;
    text-align: left;
    border-radius: 10px;
}

.resource-empty-state {
    color: #6b5786;
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
}

.resource-empty-state[hidden] {
    display: none;
}

@media (max-width: 900px) {
    .resources-layout {
        grid-template-columns: 1fr;
    }

    .tag-sidebar {
        position: static;
        order: -1;
    }

    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .resource-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== TRAVEL MAP ===== */

.travel-map-section {
    margin-top: 50px;
}

.travel-map-section:first-of-type {
    margin-top: 0;
}

.travel-map-section h2 {
    color: #5a3d7f;
    font-size: 26px;
    margin-bottom: 10px;
    font-family: "DynaPuff", "Comic Neue", sans-serif;
}

.travel-map-wrap {
    max-width: 900px;
    margin: 20px auto;
}

.travel-map-svg .map-path {
    cursor: pointer;
    transition: stroke-width 0.15s ease, opacity 0.25s ease;
}

.travel-map-svg .map-path:focus {
    outline: none;
}

.map-legend {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
    padding: 0;
}

.map-legend-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.map-legend-row:hover,
.map-legend-row:focus {
    background: rgba(255, 255, 255, 0.85);
    outline: none;
}

.map-legend-row.is-active {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(138, 108, 189, 0.3);
}

.map-legend-swatch {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.map-legend-label {
    color: #5a3d7f;
    font-weight: 700;
    font-size: 15px;
}

.map-legend-count {
    color: #6b5786;
    font-size: 14px;
}

.map-tooltip {
    position: absolute;
    background: #5a3d7f;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.map-tooltip[hidden] {
    display: none;
}

@media (max-width: 768px) {
    .travel-map-section {
        margin-top: 35px;
    }

    .travel-map-section h2 {
        font-size: 22px;
    }

    .map-legend {
        gap: 10px;
    }

    .map-legend-row {
        padding: 6px 12px;
    }
}

/* ===== BLOG ===== */

.blog-status {
    font-style: italic;
}

.blog-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
    padding: 0;
}

.blog-list-item {
    background: white;
    border-radius: 15px;
    padding: 20px 25px;
    box-shadow: 0 4px 15px rgba(138, 108, 189, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(138, 108, 189, 0.25);
}

.blog-list-title {
    display: block;
    color: #5a3d7f;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    font-family: "DynaPuff", "Comic Neue", sans-serif;
}

.blog-list-title:hover {
    text-decoration: underline;
}

.blog-list-date {
    display: block;
    color: #8a7aa0;
    font-size: 13px;
    margin-top: 6px;
}

.blog-list-excerpt {
    color: #6b5786;
    font-size: 16px;
    margin-top: 10px;
    line-height: 1.5;
}

.blog-back-link {
    display: inline-block;
    color: #5a3d7f;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 20px;
}

.blog-back-link:hover {
    text-decoration: underline;
}

.blog-post-date {
    display: block;
    color: #8a7aa0;
    font-size: 14px;
    margin-bottom: 20px;
}

.blog-post-body {
    color: #6b5786;
    font-size: 18px;
    line-height: 1.7;
}

.blog-post-body h1,
.blog-post-body h2,
.blog-post-body h3 {
    color: #5a3d7f;
    margin: 24px 0 12px;
}

.blog-post-body p {
    margin-bottom: 16px;
    font-size: inherit;
    color: inherit;
}

.blog-post-body ul,
.blog-post-body ol {
    margin: 0 0 16px 24px;
}

.blog-post-body img {
    max-width: 100%;
    border-radius: 10px;
}

.blog-post-body blockquote {
    border-left: 4px solid #d7afed;
    padding-left: 16px;
    margin: 16px 0;
    color: #8a7aa0;
    font-style: italic;
}

.blog-post-body code {
    background: rgba(138, 108, 189, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.blog-post-body pre {
    background: rgba(138, 108, 189, 0.08);
    padding: 16px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.blog-post-body pre code {
    background: none;
    padding: 0;
}

.blog-pager {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(138, 108, 189, 0.2);
}

.blog-pager-link {
    color: #5a3d7f;
    font-weight: 700;
    text-decoration: none;
}

.blog-pager-link:hover {
    text-decoration: underline;
}

/* ===== EVENTS PAGE ===== */

.events-heading {
    color: #5a3d7f;
    font-size: 26px;
    margin: 30px 0 15px;
}

.events-list {
    list-style: none;
    display: grid;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.event-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 20px 24px;
    box-shadow: 0 4px 15px rgba(138, 108, 189, 0.2);
}

.events-list-past .event-card {
    background: rgba(255, 255, 255, 0.6);
    box-shadow: none;
    border: 1px solid rgba(138, 108, 189, 0.2);
    padding: 14px 20px;
}

.event-date {
    color: #8a7aa0;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.event-date-end {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

.event-name {
    color: #5a3d7f;
    font-size: 22px;
    margin: 6px 0 0;
}

.event-name a {
    color: inherit;
    text-decoration: underline dotted;
}

.event-name a:hover {
    color: #000000;
    text-decoration: underline;
}

.event-where,
.event-booth,
.event-note {
    color: #6b5786;
    font-size: 16px;
    margin-top: 6px;
}

.event-booth {
    font-weight: 700;
}

.events-empty {
    color: #6b5786;
}

/* ===== SEARCH ===== */

#search {
    --pagefind-ui-primary: #5a3d7f;
    --pagefind-ui-text: #6b5786;
    --pagefind-ui-background: #ffffff;
    --pagefind-ui-border: rgba(138, 108, 189, 0.3);
    --pagefind-ui-tag: #ead5f5;
    --pagefind-ui-border-width: 2px;
    --pagefind-ui-border-radius: 10px;
    --pagefind-ui-font: var(--font-body);
}

.nav-search-link {
    color: #5a3d7f;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.nav-search-link:hover,
.nav-search-link:focus-visible {
    background-color: rgba(255, 255, 255, 0.5);
    color: #3d2456;
}

.nav-search-link.is-current {
    background-color: rgba(255, 255, 255, 0.5);
    color: #3d2456;
    box-shadow: inset 0 -3px 0 #5a3d7f;
}

@media (max-width: 768px) {
    .nav-search-link {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-search-link.is-current {
        box-shadow: inset 3px 0 0 #5a3d7f;
    }
}
