/* Optional: keep your font, let Pico handle spacing/layout/colors */
body { font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }

/* If you need the ad slot box only */
#ad-slot { margin: 2rem 0; height: 250px; background: #eee; }

/* (Optional) logo sizing—remove if you’re happy with default image size */
.header-logo img { height: 48px; width: auto; display: block; }


/* Breadcrumbs: tighter separator spacing */
/* Tighter breadcrumb spacing */
.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;                 /* no auto gap between items */
}

.breadcrumb li {
    display: inline;        /* keep each crumb inline */
    margin: 0;              /* nuke any global li margins */
    padding: 0;
}

/* Separator attached to the NEXT item, very tight */
.breadcrumb li + li::before {
    /* Choose ONE of these lines: dash or slash */
    /* content: "-\202F"; */      /* dash + narrow NBSP */
    content: "/\202F";            /* slash + narrow NBSP */

    color: #666;
    margin-left: 0.18em;          /* tiny space before the separator */
}

nav.breadcrumb {
    margin-left: 1rem;   /* tweak: try 12–24px as you like */
}

.site-footer {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--muted-border-color, #e5e5e5);
    font-size: .95rem;
}

/* 3 responsive columns; stack on small screens */
.site-footer .footer-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem 2rem;
    margin: 1rem 0 0;
    align-items: start;
}

/* Columns */
.site-footer .footer-group { margin: 0; }


/* Headings for each column */
.site-footer .footer-heading {
    margin: 0 0 .5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #111;
}

/* Stacked links (no list elements) */
.site-footer .footer-links {
    display: grid;
    gap: .4rem;
}

/* Neutralize any Pico nav padding on links inside footer */
.site-footer .footer-links a {
    display: inline-block;
    padding: 0;
    text-decoration: none;
}

.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus {
    text-decoration: underline;
}

/* Disclaimer spacing */
.site-footer .disclaimer {
    margin-top: 1.25rem;
    color: #555;
    line-height: 1.5;
}


/* 3-column layout */
.three-col {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 1.5rem;
    align-items: start;

    /* CHANGED: define grid-areas so we can reorder without duplicating HTML */
    grid-template-areas: "left main right";
}

/* CHANGED: map children to the grid-areas */
.three-col__main  { grid-area: main; }
.three-col__left  { grid-area: left; }
.three-col__right { grid-area: right; }

/* Ensure sidebars flow with page (no internal scrollbars) */
.three-col__left,
.three-col__right {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Sidebar list with thumbnails */
.three-col__left .agg-sidebar > h3 { /* unchanged */
    padding-left: 1em;
}

.agg-sidebar h3 {
    margin-top: 0;
    font-size: 1.05rem;
}

.agg-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.agg-link {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0.5rem;
    align-items: center;
    text-decoration: none;
}

.agg-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.agg-title {
    line-height: 1.2;
    font-size: 0.95rem;
}

/* Featured image in articles (class-based) */
.featured-image {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

/* Ad slots (no inline styles) */
.ad-slot--top { margin-top: 2rem; }
.ad-slot--inline { margin: 1.5rem 0; }

/* ----------------------------------------------- */
/* CHANGED: Responsive behavior WITHOUT duplicates */
/* ----------------------------------------------- */
/* Before: we hid both sidebars on small screens and rendered a second
   "mobile-suggestions" list. That caused duplicate anchors in the HTML.
   Now: we keep ONE right-sidebar list and reorder the layout so it appears
   under the article on mobile. This removes duplicates for SEO. */

@media (max-width: 1100px) {
    .three-col {
        grid-template-columns: 1fr;

        /* CHANGED: stack and reorder; right appears under main; left last (optional) */
        grid-template-areas:
            "main"
            "right"
            "left";
    }

    /* OPTIONAL: if you want to hide the left sidebar entirely on mobile, uncomment:
    .three-col__left { display: none; }
    and then also drop "left" from the grid-template-areas above.
    Keeping it visible is fine too; the key SEO improvement is removing the duplicate mobile list. */
}

/* -------------------------------------- */
/* CHANGED: mobile-suggestions is retired */
/* -------------------------------------- */
/* We no longer need a separate mobile list. Keep this hidden to avoid
   duplicate anchors if the HTML still contains the element during rollout. */
.mobile-suggestions { display: none !important; margin-top: 1.25rem; }

/* (Old behavior — now removed)
@media (max-width: 1024px) {
    .mobile-suggestions { display: block; }
}
*/

/* Kill bullets/dots inside (kept harmless if element remains) */
.mobile-suggestions ul,
.mobile-suggestions li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Home search block */
.home-search { margin: 0 0 2rem; }

/* Prominent input */
.pagefind-ui__search-input {
    font-size: 1.1rem;
    padding: .75rem 1rem;
    border-radius: .5rem;
}

/* Results */
.pagefind-ui__result {
    padding: .75rem 0;
    border-bottom: 1px solid var(--muted-border-color, #e5e5e5);
}

/* Quick-pick chips */
.mobile-suggestions .chip {
    display: inline-block;
    border: 1px solid #ddd;
    background: #f8f8f8;
    padding: .35rem .6rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: .9rem;
    margin-right: .4rem;
}

/* Screen-reader only utility */
.sr-only {
    position:absolute; width:1px; height:1px; padding:0; margin:-1px;
    overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ------------------------------- */
/* Pagefind fix: result link color */
/* ------------------------------- */

/* Make Pagefind result links use your normal link color (blue), incl. mobile/dark */
.pagefind-ui__result-title a,
.pagefind-ui__result a {
    color: var(--link-color, #1a73e8) !important;  /* swap #1a73e8 for your exact link color if needed */
}
.pagefind-ui__result-title a:hover,
.pagefind-ui__result a:hover {
    text-decoration: underline;
}

/* Additional Resources — blend with article body */
/* Keep it as an article section; only a subtle separator at the top */

.article .additional-resources,
.additional-resources {
    margin-top: 2rem;                 /* match article section rhythm */
    padding-top: 1rem;                /* a bit of breathing room */
    border-top: 1px solid var(--muted-border-color, #e5e5e5);
}

/* Let h2 inherit your global heading styles; just tighten the bottom margin */
.additional-resources h2 {
    margin: 0 0 .75rem;
}

/* Use the site’s default link styles (no custom colors) and a normal list */
.additional-resources ul {
    list-style: disc;
    padding-left: 1.25rem;            /* standard list indent */
    margin: 0;                        /* rely on section spacing */
}
.additional-resources li { margin: .4rem 0; }

.card-title {
    font-size: 1.17em;   /* same as default h3 */
    font-weight: bold;
    margin: 0.5em 0;
    line-height: 1.3;
}


/* Share block */
.share {
    margin-top: 2rem;
    border-top: 1px solid var(--muted-border-color, #e5e5e5);
    padding-top: 1rem;
}
.share__heading { margin: 0 0 .75rem; font-size: 1.05rem; }

/* Grid layout that survives minification & overrides Pico nav */
.share__links {
    padding: 0;
    margin: .5rem 0 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: .6rem;
}

/* All pills are <a> now */
.share__links a.share__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;

    padding: .6rem .8rem;
    min-height: 44px;
    border: 1px solid #ddd;
    border-radius: 9999px;
    background: #fafafa;

    color: var(--link-color, #1a73e8);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    font: inherit;
    font-size: .9rem;
}

/* Small phones: force at least 2 columns */
@media (max-width: 420px) {
    .share__links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* States */
.share__links a.share__btn:hover,
.share__links a.share__btn:focus {
    background: #f5f5f5;
    text-decoration: none;
}
.share__links a.share__btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
.share__links a.share__btn:active {
    transform: translateY(1px);
}
