/* Cookie banner + footer legal links. Kept out of style.css on purpose:
   non-HTML files are cached for 30 days, so bump ?v= in the HTML when this changes. */

/* Footer links (dark footer, #1a1a1a) */
#footer .cc-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid #333; text-align: center; }
#footer .cc-legal a,
#footer .cc-legal-btn {
    display: inline-block; min-height: 44px; margin: 0 6px; padding: 10px 6px; box-sizing: border-box;
    font: inherit; font-size: 14px; line-height: 24px; color: #e6e6e6; background: none; border: 0;
    text-decoration: underline; cursor: pointer; -webkit-appearance: none; appearance: none;
}
#footer .cc-legal a:hover,
#footer .cc-legal-btn:hover { color: #ff9933; }
#footer .cc-legal a:focus-visible,
#footer .cc-legal-btn:focus-visible { outline: 3px solid #ff9933; outline-offset: 2px; }
/* Needs JS to work, so hide it when JS is off */
#footer .cc-legal-btn { display: none; }
html.cc-js #footer .cc-legal-btn { display: inline-block; }

/* Banner: fixed, non-modal, above the sticky header (z-index 999999) */
#cc-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000000;
    max-height: 85vh; overflow-y: auto; box-sizing: border-box;
    background: #1a1a1a; color: #fff; border-top: 4px solid #ff9933;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.35);
    font-family: "Open Sans", sans-serif; font-size: 15px; line-height: 1.6;
}
#cc-banner[hidden] { display: none; }
#cc-banner:focus { outline: none; }
#cc-banner:focus-visible { outline: 3px solid #ff9933; outline-offset: -3px; }
#cc-banner .cc-inner {
    max-width: 1200px; margin: 0 auto; padding: 16px 15px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
}
#cc-banner .cc-text { flex: 1 1 320px; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
#cc-banner .cc-title { margin: 0 0 4px; font-family: "Montserrat", sans-serif; font-size: 16px; font-weight: 600; line-height: 1.4; color: #fff; }
#cc-banner .cc-text p { margin: 0; color: #fff; }
#cc-banner .cc-text a { color: #fff; text-decoration: underline; }
#cc-banner .cc-text a:hover { color: #ff9933; }
#cc-banner .cc-text a:focus-visible { outline: 3px solid #ff9933; outline-offset: 2px; }
#cc-banner .cc-actions { flex: 0 1 auto; display: flex; flex-wrap: wrap; gap: 12px; }
#cc-banner .cc-btn {
    flex: 1 1 140px; min-width: 44px; min-height: 44px; padding: 10px 22px; box-sizing: border-box;
    font-family: "Montserrat", sans-serif; font-size: 14px; font-weight: 600; line-height: 1.3; text-align: center;
    border: 2px solid #ff9933; border-radius: 3px; cursor: pointer; -webkit-appearance: none; appearance: none;
}
/* Equal prominence: same size and weight; orange/dark text (about 9:1) vs white/dark text (about 17:1) */
#cc-banner .cc-accept { background: #ff9933; color: #1a1a1a; }
#cc-banner .cc-decline { background: #fff; color: #1a1a1a; border-color: #fff; }
#cc-banner .cc-btn:hover { background: #ffd199; border-color: #ffd199; }
#cc-banner .cc-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px #1a1a1a; }

/* Keep content and the scroll-to-top button clear of the banner while it is open */
html.cc-open body { padding-bottom: var(--cc-h, 0px); }
html.cc-open #scroll-top.show { bottom: calc(var(--cc-h, 0px) + 20px); }

@media (prefers-reduced-motion: no-preference) {
    #cc-banner { animation: cc-slide-up 0.3s ease-out; }
    @keyframes cc-slide-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
}
