/* Full directory footer for the tom.cool hub. Kept separate from the hub
   header styles so it can evolve without changing the studio navigation. */
.hub-footer--expanded {
    display: block;
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    padding: 72px 0 34px;
    color: #94909f;
    font-size: .88rem;
}

.hub-footer-main {
    display: grid;
    grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(130px, .8fr));
    gap: clamp(28px, 4vw, 68px);
}

.hub-footer-brand { max-width: 290px; }

.hub-footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #f7f4fc;
    font-size: 1.13rem;
    font-weight: 850;
    letter-spacing: -.045em;
    text-decoration: none;
}

.hub-footer-brand-link img {
    width: 31px;
    height: 31px;
    object-fit: contain;
}

.hub-footer-brand p {
    margin: 18px 0 0;
    color: #92909d;
    line-height: 1.63;
}

.hub-footer-direct {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.hub-footer-direct a {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 99px;
    padding: 8px 11px;
    color: #e4e0eb;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.hub-footer-direct a:hover,
.hub-footer-direct a:focus-visible {
    border-color: #a99dff;
    background: rgba(169,157,255,.12);
    color: #fff;
    outline: none;
}

.hub-footer-column h2 {
    margin: 2px 0 15px;
    color: #f6f2fb;
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.hub-footer-column ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hub-footer-column a {
    color: #aaa5b4;
    line-height: 1.35;
    text-decoration: none;
    transition: color .18s ease;
}

.hub-footer-column a:hover,
.hub-footer-column a:focus-visible {
    color: #fff;
    outline: none;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hub-footer-sitemap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 46px;
    padding: 20px 22px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    background: linear-gradient(102deg, rgba(169,157,255,.13), rgba(255,255,255,.025));
}

.hub-footer-sitemap strong {
    display: block;
    margin-bottom: 4px;
    color: #f4f1fa;
    font-size: .95rem;
}

.hub-footer-sitemap p { margin: 0; color: #aaa5b5; line-height: 1.5; }

.hub-footer-sitemap a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    border-radius: 99px;
    padding: 10px 14px;
    background: #f5f1ff;
    color: #211d2a;
    font-size: .8rem;
    font-weight: 850;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease;
}

.hub-footer-sitemap a:hover,
.hub-footer-sitemap a:focus-visible {
    background: #fff;
    outline: none;
    transform: translateY(-2px);
}

.hub-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: #716d7a;
    font-size: .76rem;
}

.hub-footer-bottom-links { display: flex; flex-wrap: wrap; gap: 16px; }
.hub-footer-bottom a { color: inherit; text-decoration: none; }
.hub-footer-bottom a:hover, .hub-footer-bottom a:focus-visible { color: #f5f1ff; outline: none; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
    .hub-footer--expanded { width: min(100% - 32px, 1240px); padding-top: 55px; }
    .hub-footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 28px; }
    .hub-footer-brand { grid-column: span 2; max-width: 520px; }
}

@media (max-width: 560px) {
    .hub-footer-main { grid-template-columns: 1fr; gap: 28px; }
    .hub-footer-brand { grid-column: span 1; }
    .hub-footer-sitemap { display: block; margin-top: 34px; padding: 18px; }
    .hub-footer-sitemap a { margin-top: 14px; }
    .hub-footer-bottom { display: grid; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .hub-footer-direct a, .hub-footer-sitemap a { transition: none; }
}
