/* ==========================================
   Footer CSS — Clean, Safe, Works on All Pages
   ========================================== */

/* Footer container */
#footer {
    background-color: ;
    padding: 1rem 0;
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 0.95rem;         /* readable for main footer text */
    line-height: 1.5;           /* slightly more breathing room */
    color: #333;
    clear: both;
    box-sizing: border-box;
}

/* Footer row */
#footer .container > .row {
    display: flex;
    flex-wrap: wrap;
    gap: 1%;
    margin: 0;
}

/* Link columns */
#footer .col-3 {
    flex: 0 0 18%;
    max-width: 18%;
    margin: 0 1%;
    display: flex;
    flex-direction: column;
}

/* Search box column */
#footer .col-4 {
    flex: 0 0 25%;
    max-width: 25%;
    margin: 0 1%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Footer lists */
#footer ul,
#footer li {
    margin: 0;
    padding: 0;
    list-style: none;
}

#footer .link-list a {
    text-decoration: underline;
    color: #000000;
    font-size: 0.95rem;         /* same as footer body */
}

#footer .link-list a:hover {
    color: #000000;
}

/* Footer quote */
#footer-quote {
    font-style: italic;
    font-size: 1.1rem;           /* slightly bigger for emphasis */
    color: green;
    text-align: center;
    margin: 0.5rem 0 1rem 0;
}

/* Copyright block */
#copyright {
    text-align: center;
    font-size: 0.85rem;         /* smaller, subtle legal text */
    color: #555;
    margin: 0.5rem 0 2rem 0;
}

/* Search box adjustments */
#footer .gcse-searchbox-only {
    width: 100%;
}

#footer .gcse-searchbox-only input.gsc-input {
    width: 100% !important;
    min-height: 2.5rem;         /* easier to tap on phones */
    padding: 0.5rem;
    font-size: 1rem;             /* match readability */
    box-sizing: border-box;
}

#footer .gcse-searchbox-only input.gsc-search-button {
    height: 2.5rem;
    margin-left: 0.25rem;
}

/* Ensure container iframe expands */
#footer .gcse-searchbox-only > div {
    width: 100% !important;
}

/* Responsive: stack columns on smaller screens */
@media (max-width: 992px) {
    #footer .col-3,
    #footer .col-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 1rem;
    }
}

/* Remove legacy Halcyonic list separators in footer */
#footer ul.link-list li {
    border: none !important;
    background: none !important;
}
/* =====================================================
   Footer Layout Protection (Halcyonic-safe)
   ===================================================== */

#footer ul,
#copyright ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Footer rows must NEVER be flex */
#footer .row {
    display: block;
}

/* Footer columns stay aligned */
#footer .col-3,
#footer .col-4,
#footer .col-8 {
    float: left;
}

/* Prevent inherited spacing issues */
#footer li {
    margin: 0;
    padding: 0;
}

/* Footer links */
#footer a {
    text-decoration: underline; /* accessibility win */
}

/* Footer quote stays isolated */
#footer-quote {
    clear: both;
    text-align: center;
}
