/* ============================================================
    WILLOW'S NOTES — styles.css
    Shared across index.html, notes.html, picks.html
    ============================================================ */


/* ---------- Google Fonts ---------- */


/* playfair-display-regular - 400 */

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./fonts/playfair-display-v40-latin-regular.woff2') format('woff2');
}


/* playfair-display-500 - 500 */

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('./fonts/playfair-display-v40-latin-500.woff2') format('woff2');
}


/* playfair-display-600 - 600 */

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('./fonts/playfair-display-v40-latin-600.woff2') format('woff2');
}


/* playfair-display-700 - 700 */

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('./fonts/playfair-display-v40-latin-700.woff2') format('woff2');
}


/* playfair-display-italic - 400 italic */

@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('./fonts/playfair-display-v40-latin-italic.woff2') format('woff2');
}


/* playfair-display-500italic - 500 italic */

@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url('./fonts/playfair-display-v40-latin-500italic.woff2') format('woff2');
}


/* inter-300 - Light */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('./fonts/inter-v20-latin-300.woff2') format('woff2');
}


/* inter-regular - 400 */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./fonts/inter-v20-latin-regular.woff2') format('woff2');
}


/* inter-500 - Medium */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('./fonts/inter-v20-latin-500.woff2') format('woff2');
}


/* ---------- Reset & Base ---------- */

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

:root {
    --bg: #F8F7F4;
    --text: #2E2E2E;
    --accent: #8A8A8A;
    --menu-bg: #F8F7F4;
    --menu-text: #2E2E2E;
    --menu-hover: #6A6A6A;
    --border: #E5E3DE;
    --content-width: min(80%, 1200px);
    --line-height: 1.7;
    --body-size: 19px;
    --pagefind-ui-primary: var(--text);
    --pagefind-ui-text: var(--accent);
    --pagefind-ui-background: var(--bg);
    --pagefind-ui-border: var(--border);
    --pagefind-ui-font: inherit;
}

html {
    font-size: var(--body-size);
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    background-color: var(--bg);
    color: var(--text);
    line-height: var(--line-height);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}


/* ---------- Typography ---------- */

h1 {
    font-family: 'Playfair Display', serif;
    line-height: 1.25;
    color: var(--text);
    padding-bottom: 1.5rem;
}

h2 {
    font-family: 'Playfair Display', serif;
    line-height: 1;
    color: var(--text);
}

h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    line-height: 1.25;
    color: var(--text);
}

p {
    margin-bottom: 1.4rem;
    color: var(--text);
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--menu-hover);
}


/* ---------- Layout Wrapper ---------- */

.container {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}


/* ---------- Navigation ---------- */

.site-nav {
    background-color: var(--menu-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--menu-text);
    letter-spacing: -0.01em;
    white-space: nowrap;
    flex-shrink: 0;
    gap: 12px;
}

.nav-brand p {
    margin: 0;
}

.nav-logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    flex-shrink: 0;
}

.nav-brand:hover {
    color: var(--menu-hover);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    list-style: none;
}

.nav-links a {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--menu-text);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: color 0.2s ease;
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text);
    transition: width 0.25s ease;
}

.nav-links a:hover {
    color: var(--menu-hover);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--text);
}


/* Mobile nav toggle */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background-color: var(--text);
    transition: transform 0.25s ease, opacity 0.25s ease;
}


/* ---------- Main Content ---------- */

main {
    flex: 1;
    padding: 2rem 0 5rem;
}


/* ---------- Page Header ---------- */

.page-header {
    margin-bottom: 3.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
}


/* ---------— Hero ---------- */

.hero {
    margin-top: 0;
    padding: 3rem 0 7rem 12%;
    background-size: cover;
    background-position: top centre;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    background-color: rgba(255, 255, 255, 0);
    display: flex;
    flex-direction: column;
    align-items: left;
    text-align: left;
    min-height: 650px;
    position: relative;
}

.hero-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    margin-top: 0rem;
    margin-bottom: 1rem;
    display: block;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    max-width: 560px;
}

.hero h1 em {
    font-style: italic;
    font-weight: 400;
}

.description {
    text-align: center;
    max-width: 600px;
    margin: 20px auto;
    padding: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text);
    font-style: italic;
}


/* ---------- Post / Card Lists ---------- */

.post-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.post-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.post-item:first-child {
    border-top: 1px solid var(--border);
}

.post-item:hover {
    opacity: 0.72;
}

.post-item:hover .post-title {
    color: var(--menu-hover);
}

.post-date {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    padding-top: 0.25rem;
    white-space: nowrap;
}

.post-content-preview .post-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.45rem;
    transition: color 0.2s ease;
    line-height: 1.35;
}

.post-content-preview .post-excerpt {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 0.15rem 0.5rem;
    margin-bottom: 0.5rem;
}


/* ---------- Picks Grid ---------- */


/* 1. The Grid Container */

.picks-image-grid {
    display: grid;
    /* Laptop: 4-5 items | Tablet: 3 items | Mobile: 2 items */
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 3.5rem 1.5rem;
    /* Large vertical gap for breathing room */
    margin-top: 3rem;
}


/* 2. The Card Structure */

.pick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centres the text block under the image */
    text-align: center;
    /* Centres the actual lines of text */
    text-decoration: none;
    transition: opacity 0.3s ease;
    width: 100%;
}

.pick-card.hidden {
    display: none;
    /* Required for your JS filter to work */
}

.pick-card:hover {
    opacity: 0.75;
}


/* 3. The Image (Uniform square or vertical rectangle) */

.pick-item {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    background-color: #ffffff;
    border: 1px solid #f0f0f0;
    margin-bottom: 1.2rem;
    transition: transform 0.5s ease;
}

.pick-card:hover .pick-item {
    transform: scale(1.03);
    /* Subtle zoom on hover */
}


/* 4. The Caption (Centred directly below) */

.pick-card-caption {
    width: 100%;
    max-width: 200px;
    /* Keeps text from spreading wider than image */
}

.pick-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text);
    margin: 0;
}


/* 5. SEO & Accessibility (Hidden text) */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}


/* 4. Typography (Matching your style) */

.pick-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.3;
    margin: 0;
}


/* 5. SEO Hidden Text */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}


/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    background-color: var(--bg);
}

.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 1rem;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}

.footer-logo {
    height: 4rem;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--accent);
    white-space: nowrap;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 2rem 0;
    width: 100%;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    /* Keeps it tidy on mobile */
}

.footer-social a {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.footer-social a:hover {
    color: var(--text);
}

.footer-social svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.footer-subscribe-form {
    display: flex;
    gap: 5px;
    margin-left: 10px;
}

.subscribe-input {
    padding: 5px 10px;
    border: 1px var(--border);
    border-radius: 4px;
    font-size: 14px;
    margin-right: 15px;
}

.subscribe-btn {
    background: var(--accent);
    /* Match your brand color */
    color: var(--border);
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.footer-legal {
    display: flex;
    justify-content: center;
    width: 100%;
}

.legal-link {
    font-size: 0.72rem;
    /* Slightly smaller than social links */
    font-weight: 500;
    /* Matches your 500 weight */
    color: var(--accent);
    letter-spacing: 0.04em;
    text-decoration: none;
    opacity: 0.7;
    /* Slightly more faded for a "legal" feel */
    transition: all 0.2s ease;
}

.legal-link:hover {
    opacity: 1;
    color: var(--text);
    text-decoration: underline;
}


/* ---------- Responsive ---------- */

@media (max-width: 640px) {
     :root {
        --body-size: 17px;
    }
    main {
        padding: 2.5rem 0 4rem;
    }
    .hero {
        padding: 2rem 0 2.5rem;
        background-position: 40% top !important;
        background-size: cover !important;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background-color: var(--menu-bg);
        border-bottom: 1px solid var(--border);
        padding: 0.5rem 0 1rem;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links a {
        display: block;
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }
    .nav-links a::after {
        display: none;
    }
    .nav-toggle {
        display: flex;
    }
    .site-nav {
        position: sticky;
    }
    .site-nav .container {
        position: relative;
    }
    .post-item {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
    .site-footer .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
    .picks-image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1rem;
    }
    .pick-title {
        font-size: 0.95rem;
        /* Slightly smaller for mobile screens */
    }
}


/* ── Filter Bar ── */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: none;
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 0.3rem 0.75rem;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.filter-btn:hover {
    color: var(--text);
    border-color: var(--accent);
}

.filter-btn.active {
    color: var(--text);
    background-color: var(--border);
    border-color: var(--border);
}


/* ── Hide filtered items ── */

.post-item.hidden {
    display: none;
}


/* ── Empty state ── */

.no-results {
    display: none;
    padding: 2.5rem 0;
    font-size: 0.9rem;
    color: var(--accent);
    font-style: italic;
}

.no-results.visible {
    display: block;
}


/* ── Pagination ── */

.pagination {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.page-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--accent);
    background: none;
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    min-width: 36px;
    text-align: center;
}

.page-btn:hover {
    color: var(--text);
    border-color: var(--accent);
}

.page-btn.active {
    color: var(--text);
    background-color: var(--border);
    border-color: var(--border);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.page-btn.prev-next {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}


/* ── Article Layout ── */

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.post-meta-date {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}

.post-meta-divider {
    width: 1px;
    height: 12px;
    background-color: var(--border);
    flex-shrink: 0;
}

.post-meta-tag {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 0.15rem 0.5rem;
}


/* ── Post Title ── */

.post-heading {
    font-size: clamp(1.9rem, 5vw, 2.6rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 2.5rem;
}


/* ── Optional Hero Image ── */

.post-hero-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    margin-bottom: 3rem;
    background-color: var(--border);
    /* shows while loading */
}


/* ── Article Body ── */


/* Featured image */

.featured-image {
    margin: 0 0 3rem 0;
    /* No top margin (hits the H1), large bottom margin to breathe */
}

.featured-image img {
    width: 100%;
    display: block;
    border-radius: 4px;
    /* Optional: subtle rounding matches a 'romantic' vibe */
}


/* All your blog content goes inside <article class="post-body"> */

.post-body {
    font-size: 1rem;
    line-height: var(--line-height);
    color: var(--text);
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body h2 {
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    margin-top: 2.75rem;
    margin-bottom: 1rem;
}

.post-body h3 {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.post-body ul,
.post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-body li {
    margin-bottom: 0.5rem;
    line-height: var(--line-height);
}

.post-body a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--border);
    transition: text-decoration-color 0.2s ease;
}

.post-body a:hover {
    text-decoration-color: var(--accent);
}


/* Blockquote — for pull quotes or excerpts */

.post-body blockquote {
    border-left: 1px solid var(--text);
    margin: 2rem 0;
    padding: 0.25rem 0 0.25rem 1.5rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text);
}

.post-body blockquote p {
    margin-bottom: 0;
}


/* Inline images within the post body */

.post-body figure {
    margin: 2.5rem 0;
}

.post-body figure img {
    width: 100%;
    display: block;
    background-color: var(--border);
}

.post-body figcaption {
    font-size: 0.78rem;
    color: var(--accent);
    margin-top: 0.6rem;
    line-height: 1.5;
    font-style: italic;
}


/* Horizontal rule */

.post-body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0;
}


/* ── Post Footer: back link ── */

.post-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.back-link {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--text);
}


/* ── Error Page ── */

.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 70vh;
    text-align: center;
    padding: 20px;
}

.error-code {
    font-size: 5rem;
    font-weight: bold;
    margin: 0;
    color: var(--text);
}

.error-message {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.back-home {
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid currentColor;
    border-radius: 4px;
    transition: all 0.2s;
}

.back-home:hover {
    background: var(--accent);
    color: var(--bg);
}


/* ── Affiliate disclaimer ── */

.affiliate-disclaimer {
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.7;
    margin-top: 1rem;
    border-top: 1px solid #eee;
    padding-top: 0.5rem;
}


/* ── Pagefind ── */


/* Desktop Alignment: Pushes search to the far right */

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        align-items: center;
        gap: 20px;
    }
    .nav-search-item {
        margin-left: auto;
        min-width: 220px;
    }
}


/* Style the search */

#search .pagefind-ui__search-input {
    padding: 6px 12px 6px 40px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fafafa;
    line-height: 1.5;
}

#search .pagefind-ui__drawer {
    position: absolute;
    top: 100%;
    right: 0;
    width: 850px;
    padding: 20px;
    background: white;
    border: 1px solid #eee;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    border-radius: 8px;
    overflow-wrap: break-word;
}

#search mark {
    /* Use a slightly darker tan/grey to highlight keywords subtly */
    background-color: #EAE8E2;
    color: var(--text);
    padding: 0 4px;
    border-radius: 2px;
    font-weight: 500;
}

#search .pagefind-ui__result-title {
    color: var(--text) !important;
    font-weight: 600;
    text-decoration: none !important;
    display: block;
}

#search .pagefind-ui__result-link {
    text-decoration: none !important;
    display: block;
}

#search .pagefind-ui__result-link:hover .pagefind-ui__result-title {
    color: var(--menu-hover) !important;
    text-decoration: none !important;
}

#search .pagefind-ui__result {
    padding: 16px 0;
    list-style: none;
    border-bottom: 1px solid #f5f5f5;
}

#search .pagefind-ui__result:last-child {
    border-bottom: none;
}

#search .pagefind-ui__result-excerpt {
    line-height: 1.6;
    margin-top: 8px;
    display: block;
    color: #555;
}


/* Small screens: Ensure it doesn't look weird on mobile */

@media (max-width: 767px) {
    .nav-search-item {
        padding: 10px 0;
        width: 100%;
    }
    #search .pagefind-ui__drawer {
        width: 100%;
        position: relative;
    }
}