/* =====================================================================
   Stockk footer (templates/_stockk_footer.html)
   Mirrors the stockk.trade footer. Uses the tokens in stockk-theme.css.
   ===================================================================== */

.skf{
    position: relative;
    z-index: 1;
    background: #F9F9FF;
    border-top: 1px solid var(--sk-border);
    color: #6B7280;
    font-size: 14px;
}

.skf a{ color: inherit; font-weight: 400; }
.skf a:hover{ color: var(--sk-primary); text-decoration: none; }

/* ---------- Top: brand + link columns -------------------------------- */

.skf-top{
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 16px 32px;
    display: flex;
    justify-content: space-between;
    gap: 48px;
}

.skf-logo{ height: 40px; width: auto; display: block; margin-bottom: 14px; }

.skf-address{
    font-style: normal;
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 18px;
}

.skf-social{
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.skf-social a{
    display: flex;
    width: 29px;
    height: 29px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: transform .15s ease;
}
.skf-social a:hover{ transform: translateY(-2px); }
.skf-social img{ max-width: 100%; max-height: 100%; display: block; }

.skf-app{
    display: flex;
    align-items: center;
    gap: 14px;
}
.skf-qr{
    width: 76px;
    height: 76px;
    display: block;
    border-radius: 4px;
}
.skf-app-title{
    margin: 0 0 8px;
    color: #1F2937;
    font-size: 16px;
    font-weight: 600;
}
.skf-stores{ display: flex; flex-wrap: wrap; gap: 8px; }
.skf-stores a{ display: block; line-height: 0; }
.skf-stores img{ height: 40px; width: auto; display: block; }

.skf-links{
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, auto));
    gap: 16px 40px;
    align-content: start;
}
.skf-col-title{
    /* Present for screen readers and structure; stockk.trade shows the
       columns without visible headings. */
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.skf-col ul{
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.skf-col a{ font-size: 14px; color: #6B7280; line-height: 1.5; }
.skf-col a:hover{ color: var(--sk-primary); }

/* ---------- Attention investors -------------------------------------- */

.skf-attention{
    background: #F0F0FF;
    padding: 8px 0 20px;
}
.skf-attn{
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 38px;
}
.skf-attn summary{
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}
.skf-attn summary::-webkit-details-marker{ display: none; }
.skf-attn summary h2{
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #4547B0;
}
.skf-attn summary::after{
    content: "\f107"; /* fa-angle-down */
    font-family: FontAwesome;
    font-size: 22px;
    color: #4547B0;
    transition: transform .2s ease;
}
.skf-attn[open] summary::after{ transform: rotate(180deg); }

.skf-attn-body{
    color: #374151;
    font-size: 13px;
    line-height: 2;
}
.skf-attn-body p{ margin: 0 0 14px; }
.skf-attn-body ul{ margin: -6px 0 14px; padding-left: 18px; }
.skf-attn-body li{ line-height: 2; }
.skf-attn-body a{ color: inherit; }
.skf-attn-body .skf-plain-link{ text-decoration: underline; }
.skf-attn-body .skf-gap{ margin-top: 22px; }
.skf-attn-body .skf-strong{ font-weight: 600; color: #1F2937; margin-bottom: 6px; }

.skf-disclaimers{ margin: 0 0 14px; }
.skf-disclaimers > div{
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.skf-disclaimers dt{ font-weight: 700; color: #1F2937; white-space: nowrap; }
.skf-disclaimers dd{ margin: 0; }

/* ---------- Ticker ---------------------------------------------------- */

.skf-ticker{
    max-width: calc(1280px - 76px);
    margin: 4px auto 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #E5E7F5;
    border-radius: 10px;
}
@media (max-width: 1320px){
    .skf-ticker{ margin-left: 38px; margin-right: 38px; }
}
.skf-ticker-btn{
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 0;
    background: #5E60CC;
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.skf-ticker-btn:focus-visible{ outline: 3px solid #5E60CC; outline-offset: 2px; }
.skf-ticker-viewport{
    flex: 1;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.skf-ticker-track{
    display: flex;
    width: max-content;
    animation: skf-ticker 140s linear infinite;
}
.skf-ticker:hover .skf-ticker-track,
.skf-ticker.is-paused .skf-ticker-track{ animation-play-state: paused; }
.skf-ticker-text{
    margin: 0;
    padding-right: 48px;
    white-space: nowrap;
    font-size: 12.5px;
    color: #374151;
}
@keyframes skf-ticker{
    from{ transform: translateX(0); }
    to  { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
    .skf-ticker-track{ animation: none; }
    .skf-ticker-viewport{ overflow-x: auto; }
}

/* ---------- Big wordmark + bottom bar --------------------------------- */

.skf-wordmark{
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 16px;
}
.skf-wordmark img{ width: 100%; height: auto; display: block; }

.skf-bottom{
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 16px 20px;
    border-top: 1px solid #CEBEFE;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #4B5563;
}
.skf-bottom p{ margin: 0; }

/* ---------- Responsive ----------------------------------------------- */

@media (max-width: 1100px){
    .skf-top{ flex-direction: column; gap: 32px; }
    .skf-links{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px){
    .skf-links{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 24px; }
    .skf-attn{ padding: 0 16px; }
    .skf-ticker{ margin-left: 16px; margin-right: 16px; }
    .skf-disclaimers > div{ flex-direction: column; gap: 2px; }
    .skf-disclaimers dt{ white-space: normal; }
}
@media (max-width: 560px){
    .skf-wordmark{ padding: 20px 16px; }
    .skf-bottom{ flex-direction: column; gap: 6px; text-align: center; }
    /* room to scroll the last line clear of the fixed accessibility button */
    .skf{ padding-bottom: 72px; }
}

/* ---------- High contrast -------------------------------------------- */

html.high-contrast .skf,
html.high-contrast .skf-attention,
html.high-contrast .skf-ticker{ background: #fff; color: #000; }
html.high-contrast .skf a,
html.high-contrast .skf-col a,
html.high-contrast .skf-address,
html.high-contrast .skf-attn-body,
html.high-contrast .skf-attn summary h2,
html.high-contrast .skf-attn summary::after,
html.high-contrast .skf-ticker-text,
html.high-contrast .skf-bottom{ color: #000; }
html.high-contrast .skf-ticker{ border: 2px solid #000; }
html.high-contrast .skf-ticker-btn{ background: #000; }
html.high-contrast .skf-bottom{ border-top: 2px solid #000; }
