/* Compact footer: frequent actions visible, full directory on demand. */
.site-footer--compact { padding: 2rem 1.5rem 1rem; }
.footer-compact__top, .footer-groups, .footer-compact__bottom { width: min(var(--content-width), 100%); margin-inline: auto; }
.footer-compact__top { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-bottom: 1.4rem; }
.site-footer--compact .brand--footer { margin: 0; flex-wrap: nowrap; gap: .8rem; }
.site-footer--compact .brand__mark { width: 76px; height: 52px; border-radius: 9px; }
.site-footer--compact .brand__name { font-size: 1.08rem; }
.site-footer--compact .brand__tagline { display: block; font-size: .56rem; letter-spacing: .06em; }
.footer-quick-links { display: flex; flex-wrap: wrap; gap: .3rem; }
.footer-quick-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .45rem .8rem; border-radius: 8px; color: #fff4d1; font-size: .9rem; font-weight: 600; text-decoration: none; }
.footer-quick-links a:hover { background: #ffffff12; text-decoration: underline; text-underline-offset: 4px; }
.footer-groups { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; border-top: 1px solid #ffffff30; border-bottom: 1px solid #ffffff30; }
.footer-group { min-width: 0; align-self: start; }
.footer-group summary { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 60px; padding: .75rem .2rem; color: #e9f0ea; font-size: .94rem; font-weight: 600; list-style: none; cursor: pointer; border-radius: 5px; }
.footer-group summary::-webkit-details-marker { display: none; }
.footer-group summary:hover { color: #ffe7a9; }
.footer-group summary svg { flex: 0 0 auto; transition: transform .2s ease; }
.footer-group[open] summary { color: #ffe7a9; }
.footer-group[open] summary svg { transform: rotate(180deg); }
.footer-group__links { display: grid; margin: 0; padding: 0 .2rem 1rem; font-style: normal; }
.footer-group__links a { display: flex; align-items: center; min-height: 44px; padding: .5rem 0; color: #dce8df; font-size: .88rem; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
.footer-group__links a:hover { color: #ffe7a9; text-decoration: underline; text-underline-offset: 4px; }
.footer-group__links p { margin: .4rem 0 .5rem; color: #dce8df; font-size: .88rem; line-height: 1.65; }
.footer-compact__bottom { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .1rem 1.5rem; padding-top: .85rem; color: #d1dfd5; font-size: .75rem; }
.footer-compact__bottom p { margin: .3rem 0; }
.footer-compact__bottom a { color: #f4d68c; text-decoration: none; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; justify-content: flex-end; }
.footer-legal a, .footer-legal button { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: #dce8df; font: inherit; cursor: pointer; }
.footer-legal a:hover, .footer-legal button:hover { color: #ffe7a9; text-decoration: underline; }
.site-footer--compact .back-to-top { justify-self: end; min-height: 44px; padding: .35rem 0 .35rem .7rem; border: 0; font-size: .75rem; }
.footer-compact__bottom a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (prefers-reduced-motion:no-preference) {
    .footer-group[open] .footer-group__links { animation: menu-arrive .18s ease both; }
}
@media (max-width:760px) {
    .site-footer--compact { padding: 1.5rem 1.2rem .8rem; }
    .footer-compact__top { align-items: flex-start; flex-direction: column; gap: .85rem; padding-bottom: .85rem; }
    .footer-quick-links { width: 100%; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; }
    .footer-quick-links a { padding-inline: .3rem; font-size: .86rem; }
    .footer-groups { grid-template-columns: minmax(0,1fr); gap: 0; }
    .footer-group + .footer-group { border-top: 1px solid #ffffff20; }
    .footer-group summary { min-height: 56px; }
    .footer-compact__bottom { gap: 0 .6rem; }
    .footer-compact__bottom > p:first-child { grid-column: 1 / -1; line-height: 1.6; margin-top: .4rem; }
    .footer-legal { grid-column: 1 / -1; justify-content: flex-start; gap: 1.2rem; }
    .site-footer--compact .brand__name { font-size: 1rem; }
}
