/* ============================
   Famplified Theme Variables
   ============================ */
:root {
    --brand-primary: #E25A63;     /* main red */
    --brand-primary-dark: #A83B43;
    --brand-accent: #F4C1C4;
    --brand-bg-soft: #FFF6F7;
    --text-dark: #2C2C2C;

    /* App-level tokens used throughout */
    --link-color: var(--brand-primary);
    --link-color-hover: var(--brand-primary-dark);
    --muted-border-color: #eadfe1; /* subtle red-tinted gray */
    --muted-bg: #faf8f9;
}

/* Optional dark-mode tuning */
@media (prefers-color-scheme: dark) {
    :root {
        --brand-bg-soft: #2a1f21;
        --text-dark: #fafafa;
        --muted-border-color: #4a3437;
        --muted-bg: #36282b;
        --link-color: #ff7e86;         /* a touch brighter for contrast */
        --link-color-hover: #ffa1a7;
    }
}

/* ============================
   Base & utilities
   ============================ */

/* Optional: keep your font, let Pico handle spacing/layout/colors */
body {
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--text-dark);
    background: var(--brand-bg-soft);
}

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

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

/* Links (ensure global color aligns with theme) */
a { color: var(--link-color); }
a:hover, a:focus { color: var(--link-color-hover); }

/* ============================
   Breadcrumbs
   ============================ */

/* 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;
}

.breadcrumb li {
    display: inline;
    margin: 0;
    padding: 0;
}

/* Separator attached to the NEXT item, very tight */
.breadcrumb li + li::before {
    /* content: "-\202F"; */
    content: "/\202F";
    color: #666;
    margin-left: 0.18em;
}

nav.breadcrumb { margin-left: 1rem; }

/* ============================
   Footer
   ============================ */

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

.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;
}

.site-footer .footer-group { margin: 0; }

.site-footer .footer-heading {
    margin: 0 0 .5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #111;
}

.site-footer .footer-links {
    display: grid;
    gap: .4rem;
}

.site-footer .footer-links a {
    display: inline-block;
    padding: 0;
    text-decoration: none;
    color: var(--link-color);
}

.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus {
    text-decoration: underline;
    color: var(--link-color-hover);
}

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

/* ============================
   Three-column layout
   ============================ */

.three-col {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 1.5rem;
    align-items: start;
    grid-template-areas: "left main right";
}

.three-col__main  { grid-area: main; }
.three-col__left  { grid-area: left; }
.three-col__right { grid-area: right; }

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

.three-col__left .agg-sidebar > h3 { 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;
    color: inherit;
}
.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; }

/* Responsive reorder without duplicates */
@media (max-width: 1100px) {
    .three-col {
        grid-template-columns: 1fr;
        grid-template-areas:
      "main"
      "right"
      "left";
    }
}

/* Retire old mobile list to avoid duplicates */
.mobile-suggestions { display: none !important; margin-top: 1.25rem; }
.mobile-suggestions ul,
.mobile-suggestions li { list-style: none; margin: 0; padding: 0; }

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

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

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

/* Quick-pick chips */
.mobile-suggestions .chip {
    display: inline-block;
    border: 1px solid var(--muted-border-color);
    background: var(--muted-bg);
    padding: .35rem .6rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: .9rem;
    margin-right: .4rem;
    color: var(--text-dark);
}

/* Screen-reader only */
.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: result link color
   ------------------------------- */
.pagefind-ui__result-title a,
.pagefind-ui__result a {
    color: var(--link-color) !important;
}
.pagefind-ui__result-title a:hover,
.pagefind-ui__result a:hover {
    text-decoration: underline;
    color: var(--link-color-hover) !important;
}

/* Additional Resources — blend with article body */
.article .additional-resources,
.additional-resources {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--muted-border-color);
}

.additional-resources h2 { margin: 0 0 .75rem; }

.additional-resources ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0;
}
.additional-resources li { margin: .4rem 0; }

.card-title {
    font-size: 1.17em;
    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);
    padding-top: 1rem;
}
.share__heading { margin: 0 0 .75rem; font-size: 1.05rem; }

.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 var(--muted-border-color);
    border-radius: 9999px;
    background: var(--muted-bg);

    color: var(--link-color);
    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: #f7eef0; /* light red wash */
    border-color: var(--brand-accent);
    color: var(--link-color-hover);
    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); }

/* Header logo: 442×220 → 110×~55 */
.site-header .logo {
    width: 110px;
    height: auto;   /* keeps aspect ratio */
    display: block;
}
